diff options
author | Nicolas Reinecke <nr@das-labor.org> | 2014-08-22 16:47:07 +0200 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-08-24 10:57:46 +0200 |
commit | 35d5ea97f6b1360ed36acdf0a0a5e608e3682a5c (patch) | |
tree | 35cc1ad01484520c825c0e8616d870393701211b /src/mainboard/lenovo/t520/romstage.c | |
parent | 6ccc3465c3488411e6e743bb9a2822ac5902b6df (diff) | |
download | coreboot-35d5ea97f6b1360ed36acdf0a0a5e608e3682a5c.tar.xz |
lenovo/t520: replace dumped GPIO values with gpio.h
GPIO pin wireing information from schematic
Change-Id: I2d8dca151b6fbc15e0184ea07596039570843cda
Signed-off-by: Nicolas Reinecke <nr@das-labor.org>
Reviewed-on: http://review.coreboot.org/6740
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/mainboard/lenovo/t520/romstage.c')
-rw-r--r-- | src/mainboard/lenovo/t520/romstage.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mainboard/lenovo/t520/romstage.c b/src/mainboard/lenovo/t520/romstage.c index 729b0e7305..c3cd602d45 100644 --- a/src/mainboard/lenovo/t520/romstage.c +++ b/src/mainboard/lenovo/t520/romstage.c @@ -40,6 +40,7 @@ #include <cpu/x86/bist.h> #include <cpu/x86/msr.h> #include <cbfs.h> +#include "gpio.h" static void pch_enable_lpc(void) { @@ -181,18 +182,7 @@ 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); - outl(0x3962a5ff, DEFAULT_GPIOBASE); - outl(0x8ebf6aff, DEFAULT_GPIOBASE + 4); - outl(0x66957f3b, DEFAULT_GPIOBASE + 0xc); - outl(0x00080000, DEFAULT_GPIOBASE + 0x20); - outl(0x00002082, DEFAULT_GPIOBASE + 0x2c); - outl(0x02ff06de, DEFAULT_GPIOBASE + 0x30); - outl(0x1f47f9f5, DEFAULT_GPIOBASE + 0x34); - outl(0xbdbffd47, DEFAULT_GPIOBASE + 0x38); - outl(0x000000f0, DEFAULT_GPIOBASE + 0x40); - outl(0x00000ff0, DEFAULT_GPIOBASE + 0x44); - outl(0x00000f4f, DEFAULT_GPIOBASE + 0x48); - outl(0x01000000, DEFAULT_GPIOBASE + 0x60); + setup_pch_gpios(&t520_gpio_map); /* Initialize console device(s) */ console_init(); |