From 672be9a02862c659d9d2f53963dee8d09d09dcea Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Wed, 24 Feb 2016 19:02:58 -0600 Subject: soc/intel/apollolake: implement bootblock_soc_early_init() Provide a bootblock_soc_early_init() to that takes care of initializing the UART on behalf of the mainboard when serial console is enabled. Change-Id: I2d3875110b6f58a9e0b4c113084b85817aa05a87 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/13793 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Andrey Petrov --- src/soc/intel/apollolake/bootblock/bootblock.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/soc/intel/apollolake/bootblock') diff --git a/src/soc/intel/apollolake/bootblock/bootblock.c b/src/soc/intel/apollolake/bootblock/bootblock.c index 500761315b..4ea3f7060b 100644 --- a/src/soc/intel/apollolake/bootblock/bootblock.c +++ b/src/soc/intel/apollolake/bootblock/bootblock.c @@ -17,6 +17,7 @@ #include #include #include +#include void asmlinkage bootblock_c_entry(void) { @@ -42,3 +43,10 @@ void platform_prog_run(struct prog *prog) msr.lo |= (1 << 8); wrmsr(MSR_POWER_MISC, msr); } + +void bootblock_soc_early_init(void) +{ + /* Prepare UART for serial console. */ + if (IS_ENABLED(CONFIG_SOC_UART_DEBUG)) + soc_console_uart_init(); +} -- cgit v1.2.3