From c587b971ddef8270d7fbd06f5801a6fc75efe3e5 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 6 Jul 2017 15:02:48 +0200 Subject: soc/intel/skylake: Set generic I/O decode ranges early Move the generic I/O decode range setup before the console init. TEST=Run on kontron/bsl6 which requires 0xa80/0xa81 decoded to initialize serial ports. Serial console works from boot- block on. Change-Id: I9829f188c80eb73f6cd91b0c22e1c07da5745ad6 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/20478 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Paul Menzel --- src/soc/intel/skylake/bootblock/pch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/soc') diff --git a/src/soc/intel/skylake/bootblock/pch.c b/src/soc/intel/skylake/bootblock/pch.c index 780c4aa235..0b212b11b0 100644 --- a/src/soc/intel/skylake/bootblock/pch.c +++ b/src/soc/intel/skylake/bootblock/pch.c @@ -241,6 +241,9 @@ void pch_early_iorange_init(void) lpc_en = CNF1_LPC_EN | COMA_LPC_EN | KBC_LPC_EN | MC_LPC_EN; pci_write_config16(PCH_DEV_LPC, LPC_EN, lpc_en); pcr_write16(PID_DMI, PCR_DMI_LPCIOE, lpc_en); + + /* Program generic IO Decode Range */ + pch_enable_lpc(); } void pch_early_init(void) @@ -266,9 +269,6 @@ void pch_early_init(void) */ pch_interrupt_init(); - /* Program generic IO Decode Range */ - pch_enable_lpc(); - /* Program SMBUS_BASE_ADDRESS and Enable it */ smbus_common_init(); -- cgit v1.2.3