sb/intel/ibexpeak: Move some early PCH init after console init
Some of the initialization isn't necessary before console INIT is done. EHCI debug still works fine on the Lenovo Thinkpad X201. Change-Id: I0c33efd98844f7188e0258cf9f90049d45145e7c Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35949 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
b33d8ce5c7
commit
b9c9cd75e7
|
@ -45,11 +45,13 @@ void mainboard_romstage_entry(void)
|
||||||
/* TODO, make this configurable */
|
/* TODO, make this configurable */
|
||||||
nehalem_early_initialization(NEHALEM_MOBILE);
|
nehalem_early_initialization(NEHALEM_MOBILE);
|
||||||
|
|
||||||
early_pch_init();
|
pch_pre_console_init();
|
||||||
|
|
||||||
/* Initialize console device(s) */
|
/* Initialize console device(s) */
|
||||||
console_init();
|
console_init();
|
||||||
|
|
||||||
|
early_pch_init();
|
||||||
|
|
||||||
/* Read PM1_CNT, DON'T CLEAR IT or raminit will fail! */
|
/* Read PM1_CNT, DON'T CLEAR IT or raminit will fail! */
|
||||||
reg32 = inl(DEFAULT_PMBASE + 0x04);
|
reg32 = inl(DEFAULT_PMBASE + 0x04);
|
||||||
printk(BIOS_DEBUG, "PM1_CNT: %08x\n", reg32);
|
printk(BIOS_DEBUG, "PM1_CNT: %08x\n", reg32);
|
||||||
|
|
|
@ -80,10 +80,14 @@ static void pch_default_disable(void)
|
||||||
RCBA32(FD2) = 1;
|
RCBA32(FD2) = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void early_pch_init(void)
|
void pch_pre_console_init(void)
|
||||||
{
|
{
|
||||||
early_lpc_init();
|
early_lpc_init();
|
||||||
mainboard_lpc_init();
|
mainboard_lpc_init();
|
||||||
|
}
|
||||||
|
|
||||||
|
void early_pch_init(void)
|
||||||
|
{
|
||||||
early_gpio_init();
|
early_gpio_init();
|
||||||
/* TODO, make this configurable */
|
/* TODO, make this configurable */
|
||||||
pch_setup_cir(NEHALEM_MOBILE);
|
pch_setup_cir(NEHALEM_MOBILE);
|
||||||
|
|
|
@ -62,6 +62,7 @@ int smbus_block_read(unsigned device, unsigned cmd, u8 bytes, u8 *buf);
|
||||||
int smbus_block_write(unsigned device, unsigned cmd, u8 bytes, const u8 *buf);
|
int smbus_block_write(unsigned device, unsigned cmd, u8 bytes, const u8 *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void pch_pre_console_init(void);
|
||||||
void early_pch_init(void);
|
void early_pch_init(void);
|
||||||
|
|
||||||
void early_thermal_init(void);
|
void early_thermal_init(void);
|
||||||
|
|
Loading…
Reference in New Issue