From 68724fd1e327d3e33c93bceec56973c0a4f7f505 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 7 Dec 2012 09:47:16 -0600 Subject: basking ridge: update gpio, spd addresses, and OC Even though this is under the graysreef board it really applies to the Basking Ridge board. A subsequent patch will rename graysreef to baskingridge. The GPIO pins were updated to reflect the Basking Ridge schematics as well as the DIMM spd addresses and USB over current pins. Change-Id: Ice4e05f5203de3024cd463dfccf0bcfec1e247c1 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/2632 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/mainboard/intel/graysreef/gpio.h | 29 ++++++++++++------------ src/mainboard/intel/graysreef/romstage.c | 38 ++++++++++++++------------------ 2 files changed, 32 insertions(+), 35 deletions(-) diff --git a/src/mainboard/intel/graysreef/gpio.h b/src/mainboard/intel/graysreef/gpio.h index 44f1efd25d..f5ee547d09 100644 --- a/src/mainboard/intel/graysreef/gpio.h +++ b/src/mainboard/intel/graysreef/gpio.h @@ -26,24 +26,24 @@ const struct pch_gpio_set1 pch_gpio_set1_mode = { .gpio0 = GPIO_MODE_GPIO, /* PCH_GPIO0_R -> S_GPIO -> J9F5 */ .gpio1 = GPIO_MODE_GPIO, /* SMC_EXTSMI_N */ .gpio2 = GPIO_MODE_GPIO, /* TP_RSVD_TESTMODE - float */ - .gpio3 = GPIO_MODE_NATIVE, /* SATA_ODD_DA_N -> PIRQF# */ + .gpio3 = GPIO_MODE_NATIVE, /* PCH_PCI_IRQ_N -> SIO GPIO12/SMI# */ .gpio4 = GPIO_MODE_GPIO, /* EXTTS_SNI_DRV0_PCH - float */ .gpio5 = GPIO_MODE_GPIO, /* EXTTS_SNI_DRV1_PCH - float */ .gpio6 = GPIO_MODE_GPIO, /* DGPU_HPD_INTR_N */ .gpio7 = GPIO_MODE_GPIO, /* SMC_RUNTIME_SCI_N */ .gpio8 = GPIO_MODE_GPIO, /* PCH_GPIO8 -> DDR Voltage Select Bit 0 */ - .gpio9 = GPIO_MODE_NATIVE, /* USB_OC_10_11_R_N */ + .gpio9 = GPIO_MODE_NATIVE, /* USB_OC_10_11_R_N */ .gpio10 = GPIO_MODE_NATIVE, /* USB_OC_12_13_R_N */ .gpio11 = GPIO_MODE_GPIO, /* PCH_GPIO11 -> HOST_ALERT2_N -> PCIE_RSVD_2_N (3GIO_X1) slot 4 */ .gpio12 = GPIO_MODE_GPIO, /* PM_LANPHY_ENABLE */ .gpio13 = GPIO_MODE_NATIVE, /* HDA_DOCK_RST_N */ - .gpio14 = GPIO_MODE_GPIO, /* SMC_WAKE_SCI_R_N */ + .gpio14 = GPIO_MODE_GPIO, /* SMC_WAKE_SCI_N (not stuffed) & USB_8_9_PWR */ .gpio15 = GPIO_MODE_GPIO, /* Always GPIO: HOST_ALERT1_R_N -> PCIE_RSV_1_N */ .gpio16 = GPIO_MODE_NATIVE, /* SATA_DET4_R_N */ .gpio17 = GPIO_MODE_GPIO, /* DGPU_PWROK */ .gpio18 = GPIO_MODE_NATIVE, /* CK_SLOT1_OE_N_R */ .gpio19 = GPIO_MODE_GPIO, /* BBS_BIT0_R - STRAP */ - .gpio20 = GPIO_MODE_GPIO, /* CK_SLOT2_OE_N_R */ + .gpio20 = GPIO_MODE_NATIVE, /* CK_SLOT2_OE_N_R */ .gpio21 = GPIO_MODE_GPIO, /* SATA_DET0_R_N -> J9H4 */ .gpio22 = GPIO_MODE_GPIO, /* BIOS_REC -> J8G1 */ .gpio23 = GPIO_MODE_NATIVE, /* PCH_DRQ1_N */ @@ -51,7 +51,7 @@ const struct pch_gpio_set1 pch_gpio_set1_mode = { .gpio25 = GPIO_MODE_NATIVE, /* CK_SLOT3_OE_N */ .gpio26 = GPIO_MODE_NATIVE, /* CK_SLOT4_OE_N */ .gpio27 = GPIO_MODE_GPIO, /* Always GPIO: PCH_GPIO_27 -> SMC_WAKE_SCI_N & LANWAKE_N */ - .gpio28 = GPIO_MODE_GPIO, /* Always GPIO: PLL_ODVR_EN */ + .gpio28 = GPIO_MODE_GPIO, /* Always GPIO: PLL_ODVR_EN -> PCH_AUDIO_PWR_N */ .gpio29 = GPIO_MODE_NATIVE, /* PCH_SLP_WLAN_N */ .gpio30 = GPIO_MODE_NATIVE, /* SUS_PWR_ACK_R */ .gpio31 = GPIO_MODE_NATIVE, /* AC_PRESENT_R */ @@ -108,13 +108,13 @@ const struct pch_gpio_set2 pch_gpio_set2_mode = { .gpio32 = GPIO_MODE_NATIVE, /* Always GPIO on desktop. Mobile Native. PM_CLKRUN_N */ .gpio33 = GPIO_MODE_NATIVE, /* HDADOCKEN_R_N */ .gpio34 = GPIO_MODE_GPIO, /* PCH_GPIO34 -> SATA_PWR_EN0_N */ - .gpio35 = GPIO_MODE_GPIO, /* Always GPIO. SATA_PWR_EN1_R_N */ + .gpio35 = GPIO_MODE_GPIO, /* SATA_PWR_EN1_R_N */ .gpio36 = GPIO_MODE_NATIVE, /* SATA_ODD_PRSNT_R_N */ - .gpio37 = GPIO_MODE_GPIO, /* FDI_OVRVLTG */ + .gpio37 = GPIO_MODE_NATIVE, /* SATA_ODD_DA_N_R */ .gpio38 = GPIO_MODE_GPIO, /* MFG_MODE */ .gpio39 = GPIO_MODE_GPIO, /* GFX_CRB_DET */ - .gpio40 = GPIO_MODE_NATIVE, /* USB_OC_2_R_N */ - .gpio41 = GPIO_MODE_NATIVE, /* USB_OC_5_R_N */ + .gpio40 = GPIO_MODE_NATIVE, /* USB_OC_2_5_R_N */ + .gpio41 = GPIO_MODE_GPIO, /* USB_0_1_PWR */ .gpio42 = GPIO_MODE_NATIVE, /* USB_OC_6_7_R_N */ .gpio43 = GPIO_MODE_NATIVE, /* USB_OSC_8_9_R_N */ .gpio44 = GPIO_MODE_NATIVE, /* CK_SLOT5_OE_N */ @@ -145,11 +145,11 @@ const struct pch_gpio_set2 pch_gpio_set2_direction = { .gpio34 = GPIO_DIR_OUTPUT, .gpio35 = GPIO_DIR_OUTPUT, /* .gpio36 NATIVE */ - .gpio37 = GPIO_DIR_INPUT, + /* .gpio37 NATIVE */ .gpio38 = GPIO_DIR_INPUT, .gpio39 = GPIO_DIR_INPUT, /* .gpio40 NATIVE */ - /* .gpio41 NATIVE */ + .gpio41 = GPIO_DIR_OUTPUT, /* .gpio42 NATIVE */ /* .gpio43 NATIVE */ /* .gpio44 NATIVE */ @@ -176,6 +176,7 @@ const struct pch_gpio_set2 pch_gpio_set2_direction = { const struct pch_gpio_set2 pch_gpio_set2_level = { .gpio34 = GPIO_LEVEL_LOW, + .gpio41 = GPIO_LEVEL_HIGH, .gpio35 = GPIO_LEVEL_LOW, .gpio46 = GPIO_LEVEL_HIGH, .gpio49 = GPIO_LEVEL_HIGH, @@ -189,9 +190,9 @@ const struct pch_gpio_set2 pch_gpio_set2_level = { }; const struct pch_gpio_set3 pch_gpio_set3_mode = { - .gpio64 = GPIO_MODE_GPIO, /* CK_PCH_SIO_DOCK_R -> TP_CK_PCI_SIO_DOCK */ + .gpio64 = GPIO_MODE_NATIVE, /* CK_PCH_SIO_DOCK_R -> TP_CK_PCI_SIO_DOCK */ .gpio65 = GPIO_MODE_NATIVE, /* CK_FLEX1 */ - .gpio66 = GPIO_MODE_GPIO, /* TP_CK_FLEX2 */ + .gpio66 = GPIO_MODE_GPIO, /* CK_FLEX2 */ .gpio67 = GPIO_MODE_GPIO, /* DGPU_PRSNT_N -> PEG_RSVD3 */ .gpio68 = GPIO_MODE_GPIO, /* SATA_ODD_PWRGT */ .gpio69 = GPIO_MODE_GPIO, /* SV_DET -> J8E5 */ @@ -199,7 +200,7 @@ const struct pch_gpio_set3 pch_gpio_set3_mode = { .gpio71 = GPIO_MODE_GPIO, /* USB3_DET_P3_N */ .gpio72 = GPIO_MODE_NATIVE, /* PM_BATLOW_R_N */ .gpio73 = GPIO_MODE_NATIVE, /* CK_REQ_DOCK_N */ - .gpio74 = GPIO_MODE_NATIVE, /* PCH_GPIO74_R -> AMB_THM2_R_N */ + .gpio74 = GPIO_MODE_NATIVE, /* PCH_GPIO74_R -> AMB_THM2_R_N (PCHHOT) */ .gpio75 = GPIO_MODE_NATIVE, /* SM1_DATA */ }; diff --git a/src/mainboard/intel/graysreef/romstage.c b/src/mainboard/intel/graysreef/romstage.c index bc29c0a1f2..2431d946f2 100644 --- a/src/mainboard/intel/graysreef/romstage.c +++ b/src/mainboard/intel/graysreef/romstage.c @@ -146,30 +146,30 @@ void main(unsigned long bist) temp_mmio_base: 0xfed08000, system_type: 0, // 0 Mobile, 1 Desktop/Server tseg_size: CONFIG_SMM_TSEG_SIZE, - spd_addresses: { 0xa0, 0x00, 0xa4, 0x00 }, + spd_addresses: { 0xa0, 0xa2, 0xa4, 0xa6 }, ec_present: 0, // 0 = leave channel enabled // 1 = disable dimm 0 on channel // 2 = disable dimm 1 on channel // 3 = disable dimm 0+1 on channel - dimm_channel0_disabled: 2, - dimm_channel1_disabled: 2, + dimm_channel0_disabled: 0, + dimm_channel1_disabled: 0, max_ddr3_freq: 1600, usb_port_config: { - { 1, 0, 0x0040 }, /* P0: Front port (OC0) */ - { 1, 1, 0x0040 }, /* P1: Back port (OC1) */ - { 1, 0, 0x0040 }, /* P2: MINIPCIE1 (no OC) */ - { 1, 0, 0x0040 }, /* P3: MMC (no OC) */ - { 1, 2, 0x0040 }, /* P4: Front port (OC2) */ - { 0, 0, 0x0000 }, /* P5: Empty */ - { 0, 0, 0x0000 }, /* P6: Empty */ - { 0, 0, 0x0000 }, /* P7: Empty */ - { 1, 4, 0x0040 }, /* P8: Back port (OC4) */ - { 1, 4, 0x0040 }, /* P9: MINIPCIE3 (no OC) */ - { 1, 4, 0x0040 }, /* P10: BLUETOOTH (no OC) */ - { 0, 4, 0x0000 }, /* P11: Empty */ - { 1, 6, 0x0040 }, /* P12: Back port (OC6) */ - { 1, 5, 0x0040 }, /* P13: Back port (OC5) */ + { 1, 0, 0x0040 }, /* P0: Back USB3 port (OC0) */ + { 1, 0, 0x0040 }, /* P1: Back USB3 port (OC0) */ + { 1, 1, 0x0040 }, /* P2: Flex Port on bottom (OC1) */ + { 1, 8, 0x0040 }, /* P3: Docking connector (no OC) */ + { 1, 8, 0x0040 }, /* P4: Mini PCIE (no OC) */ + { 1, 1, 0x0040 }, /* P5: USB eSATA header (OC1) */ + { 1, 3, 0x0040 }, /* P6: Front Header J8H2 (OC3) */ + { 1, 3, 0x0040 }, /* P7: Front Header J8H2 (OC3) */ + { 1, 4, 0x0040 }, /* P8: USB/LAN Jack (OC4) */ + { 1, 4, 0x0040 }, /* P9: USB/LAN Jack (OC4) */ + { 1, 5, 0x0040 }, /* P10: Front Header J7H3 (OC5) */ + { 1, 5, 0x0040 }, /* P11: Front Header J7H3 (OC5) */ + { 1, 6, 0x0040 }, /* P12: USB/DP Jack (OC6) */ + { 1, 6, 0x0040 }, /* P13: USB/DP Jack (OC6) */ }, }; @@ -249,10 +249,6 @@ void main(unsigned long bist) #endif sdram_initialize(&pei_data); - while (1) { - asm("hlt\n"); - } - #if CONFIG_COLLECT_TIMESTAMPS after_dram_time = rdtsc(); #endif -- cgit v1.2.3