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
/* Initialize the platform config for future decision making */
platform_config_setup();
-
- /* Initialize the console */
- console_init(PL011_UART0_BASE);
}
/*******************************************************************************
void bl2_early_platform_setup(meminfo_t *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;
/* Initialize the platform config for future decision making */
platform_config_setup();
-
- console_init(PL011_UART0_BASE);
-
- return;
}
/*******************************************************************************
{
bl2_to_bl31_args = from_bl2;
+ /* Initialize the console to provide early debug support */
+ console_init(PL011_UART0_BASE);
+
/* Initialize the platform config for future decision making */
platform_config_setup();
-
- console_init(PL011_UART0_BASE);
}
/*******************************************************************************
/*******************************************************************************
* BL1 has passed the extents of the trusted SRAM that's at BL32's disposal.
- * Initialize the BL32 data structure with the memory extends
+ * Initialize the BL32 data structure with the memory extends and initialize
+ * the UART
******************************************************************************/
void bl32_early_platform_setup(meminfo_t *mem_layout,
void *data)
{
+ /*
+ * Initialize a different console than already in use to display
+ * messages from TSP
+ */
+ console_init(PL011_UART1_BASE);
+
/* Setup the BL32 memory layout */
bl32_tzdram_layout.total_base = mem_layout->total_base;
bl32_tzdram_layout.total_size = mem_layout->total_size;
bl32_tzdram_layout.attr = mem_layout->attr;
bl32_tzdram_layout.next = 0;
- return;
}
/*******************************************************************************
- * Perform platform specific setup
+ * Perform platform specific setup placeholder
******************************************************************************/
void bl32_platform_setup()
{
- /*
- * Initialize a different console than already in use to display
- * messages from TSP
- */
- console_init(PL011_UART1_BASE);
+
}
/*******************************************************************************