summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t530/romstage.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-03-16 17:24:18 +1100
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-09 16:41:14 +0200
commitfe365ac7e8c01cff46c593e80ca20ae3cb3362e7 (patch)
tree6ec308e0f4864606e65dd099beb5f65c37c33d06 /src/mainboard/lenovo/t530/romstage.c
parent956c29823328b37506fce7bfefe7e53e58706dd2 (diff)
downloadcoreboot-fe365ac7e8c01cff46c593e80ca20ae3cb3362e7.tar.xz
mainboard/lenovo: [2/2] implement initial T530 support
Step 2: change the Lenovo X230 code to adapt it to the new board's hardware with the great guidance from Vladimir (phcoder) to find the correct GPIO's. The machine has: - Chipset: Intel QM77 - GPU's: Intel Integrated HD Graphics : Discrete NVIDIA NVS 5400M (1 GB VRAM) with Optimus Technology Change-Id: Iee12c3edc22df4a7935b7fb7ff4a320c21c4239b Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5391 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/mainboard/lenovo/t530/romstage.c')
-rw-r--r--src/mainboard/lenovo/t530/romstage.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mainboard/lenovo/t530/romstage.c b/src/mainboard/lenovo/t530/romstage.c
index 6e4e685e65..96b52054ec 100644
--- a/src/mainboard/lenovo/t530/romstage.c
+++ b/src/mainboard/lenovo/t530/romstage.c
@@ -180,7 +180,17 @@ void main(unsigned long bist)
pci_write_config32(PCH_LPC_DEV, GPIO_BASE, DEFAULT_GPIOBASE|1);
pci_write_config8(PCH_LPC_DEV, GPIO_CNTL, 0x10);
- setup_pch_gpios(&x230_gpio_map);
+// setup_pch_gpios(&t530_gpio_map);
+ outl(0x3962a5ff, DEFAULT_GPIOBASE);
+ outl(0x8ebf6aff, DEFAULT_GPIOBASE + 4);
+ outl(0x66917ebb, DEFAULT_GPIOBASE + 0xc);
+ outl(0x00002002, DEFAULT_GPIOBASE + 0x2c);
+ outl(0x02ff08fe, DEFAULT_GPIOBASE + 0x30);
+ outl(0x1f47f7fd, DEFAULT_GPIOBASE + 0x34);
+ outl(0xffbeff43, DEFAULT_GPIOBASE + 0x38);
+ outl(0x000000ff, DEFAULT_GPIOBASE + 0x40);
+ outl(0x00000fff, DEFAULT_GPIOBASE + 0x44);
+ outl(0x00000f4f, DEFAULT_GPIOBASE + 0x48);
/* Initialize console device(s) */
console_init();