aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/sandybridge/chip.h
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2019-03-25 10:12:14 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-05-13 09:28:39 +0000
commit5709e03613b342f9dc00a659b6474c6ee510fcc3 (patch)
treec4f5474ca13042126ca8e4d1fd00c4be405636e2 /src/northbridge/intel/sandybridge/chip.h
parent59b4255c63b54739b9a095021508a13eab86c2a1 (diff)
nb/intel/sandybridge: Migrate MRC settings to devicetree
* Add more chip register to move PEI data to devicetree.cb. * Set northbridge/southbridge and runtime detectable settings. * Fill in values from devicetree. This change is still a noop as the pei structure is completely overwritten with the exsting mainboard pei structure. The followup commit will migrate to devicetree.cb. Tested on Lenovo T520, boots MRC path with the new devicetree settings. Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Change-Id: Ic6d9f0fd6a2b792ac693d6016ed9ce44945c900c Reviewed-on: https://review.coreboot.org/c/coreboot/+/32069 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/northbridge/intel/sandybridge/chip.h')
-rw-r--r--src/northbridge/intel/sandybridge/chip.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/chip.h b/src/northbridge/intel/sandybridge/chip.h
index d002824287..7dddb8abd0 100644
--- a/src/northbridge/intel/sandybridge/chip.h
+++ b/src/northbridge/intel/sandybridge/chip.h
@@ -52,6 +52,72 @@ struct northbridge_intel_sandybridge_config {
* Maximum PCI mmio size in MiB.
*/
u16 pci_mmio_size;
+
+ /* Data for RAM init */
+
+ /* DIMM SPD address. Use 8bit notation where BIT0 is always zero. */
+ u8 spd_addresses[4];
+
+ /* PEI data for RAM init and early silicon init */
+ u8 ts_addresses[4];
+
+ bool ec_present;
+ bool ddr3lv_support;
+
+ /* N mode functionality. Leave this setting at 0.
+ * 0 Auto
+ * 1 1N
+ * 2 2N
+ */
+ enum {
+ DDR_NMODE_AUTO = 0,
+ DDR_NMODE_1N,
+ DDR_NMODE_2N,
+ } nmode;
+
+ /* DDR refresh rate config. JEDEC Standard No.21-C Annex K allows
+ * for DIMM SPD data to specify whether double-rate is required for
+ * extended operating temperature range.
+ * 0 Enable double rate based upon temperature thresholds
+ * 1 Normal rate
+ * 2 Always enable double rate
+ */
+ enum {
+ DDR_REFRESH_RATE_TEMP_THRES = 0,
+ DDR_REFRESH_REATE_NORMAL,
+ DDR_REFRESH_RATE_DOUBLE,
+ } ddr_refresh_rate_config;
+
+ /*
+ * USB Port Configuration:
+ * [0] = enable
+ * [1] = overcurrent pin
+ * [2] = length
+ *
+ * Ports 0-7 can be mapped to OC0-OC3
+ * Ports 8-13 can be mapped to OC4-OC7
+ *
+ * Port Length
+ * MOBILE:
+ * < 0x050 = Setting 1 (back panel, 1-5in, lowest tx amplitude)
+ * < 0x140 = Setting 2 (back panel, 5-14in, highest tx amplitude)
+ * DESKTOP:
+ * < 0x080 = Setting 1 (front/back panel, <8in, lowest tx amplitude)
+ * < 0x130 = Setting 2 (back panel, 8-13in, higher tx amplitude)
+ * < 0x150 = Setting 3 (back panel, 13-15in, highest tx amplitude)
+ */
+ u16 usb_port_config[16][3];
+
+ struct {
+ /* 0: Disable, 1: Enable, 2: Auto, 3: Smart Auto */
+ u8 mode : 2;
+ /* 4 bit mask, 1: switchable, 0: not switchable */
+ u8 hs_port_switch_mask : 4;
+ /* 0: No xHCI preOS driver, 1: xHCI preOS driver */
+ u8 preboot_support : 1;
+ /* 0: Disable, 1: Enable */
+ u8 xhci_streams : 1;
+ } usb3;
};
#endif /* NORTHBRIDGE_INTEL_SANDYBRIDGE_CHIP_H */