/******************************************************************************* * Initialize the UART ******************************************************************************/ void ls_tsp_early_platform_setup(void) { static console_ls_16550_t console; /* * Initialize a different console than already in use to display * messages from TSP */ console_ls_16550_register(PLAT_LS1043_UART2_BASE, PLAT_LS1043_UART_CLOCK, PLAT_LS1043_UART_BAUDRATE, &console); NOTICE(FIRMWARE_WELCOME_STR_LS1043_BL32); }
/******************************************************************************* * BL1 has passed the extents of the trusted SRAM that should be visible to BL2 * in x0. This memory layout is sitting at the base of the free trusted SRAM. * Copy it to a safe location before its reclaimed by later BL2 functionality. ******************************************************************************/ void ls_bl2_early_platform_setup(meminfo_t *mem_layout) { static console_ls_16550_t console; /* Initialize the console to provide early debug support */ console_ls_16550_register(LS_TF_UART_BASE, LS_TF_UART_CLOCK, LS_TF_UART_BAUDRATE, &console); /* Setup the BL2 memory layout */ bl2_tzram_layout = *mem_layout; /* Initialise the IO layer and register platform IO devices */ plat_ls_io_setup(); }