diff --git a/plat/juno/bl1_plat_setup.c b/plat/juno/bl1_plat_setup.c index 91c0caf..bfbc960 100644 --- a/plat/juno/bl1_plat_setup.c +++ b/plat/juno/bl1_plat_setup.c @@ -77,6 +77,9 @@ const unsigned long bl1_ram_limit = BL1_RAM_LIMIT; const unsigned long tzram_limit = TZRAM_BASE + TZRAM_SIZE; + /* Initialize the console to provide early debug support */ + console_init(PL011_UART0_BASE); + /* * Calculate how much ram is BL1 using & how much remains free. * This also includes a rudimentary mechanism to detect whether @@ -98,9 +101,6 @@ bl1_tzram_layout.free_size = tzram_limit - bl1_ram_limit; } - - /* Initialize the console */ - console_init(PL011_UART0_BASE); } diff --git a/plat/juno/bl2_plat_setup.c b/plat/juno/bl2_plat_setup.c index 20dfc29..3f26dd3 100644 --- a/plat/juno/bl2_plat_setup.c +++ b/plat/juno/bl2_plat_setup.c @@ -37,6 +37,7 @@ #include #include #include +#include /******************************************************************************* * Declarations of linker defined symbols which will help us find the layout @@ -97,6 +98,10 @@ void bl2_early_platform_setup(meminfo *mem_layout, void *data) { + + /* Initialize the console to provide early debug support */ + console_init(PL011_UART0_BASE); + /* Setup the BL2 memory layout */ bl2_tzram_layout.total_base = mem_layout->total_base; bl2_tzram_layout.total_size = mem_layout->total_size; diff --git a/plat/juno/bl31_plat_setup.c b/plat/juno/bl31_plat_setup.c index 620c013..3f29dd4 100644 --- a/plat/juno/bl31_plat_setup.c +++ b/plat/juno/bl31_plat_setup.c @@ -32,6 +32,7 @@ #include #include #include +#include /******************************************************************************* * Declarations of linker defined symbols which will help us find the layout @@ -107,6 +108,9 @@ void bl31_early_platform_setup(bl31_args *from_bl2, void *data) { + /* Initialize the console to provide early debug support */ + console_init(PL011_UART0_BASE); + bl2_to_bl31_args = *from_bl2; /* UEFI expects x0 to be primary CPU MPID */