mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 17:14:21 +00:00
feat(s32g274a): add console mapping
Add on-demand mapping of the console registers. Change-Id: I146af2306f167602710c57b637deb1845fd95aff Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com>
This commit is contained in:
parent
9ac82c4979
commit
a1e07b399b
2 changed files with 11 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <common/debug.h>
|
||||
#include <lib/xlat_tables/xlat_tables_v2.h>
|
||||
#include <linflex.h>
|
||||
#include <plat_console.h>
|
||||
#include <platform_def.h>
|
||||
|
@ -17,6 +18,12 @@ void console_s32g2_register(void)
|
|||
};
|
||||
int ret;
|
||||
|
||||
ret = mmap_add_dynamic_region(UART_BASE, UART_BASE, PAGE_SIZE,
|
||||
MT_DEVICE | MT_RW | MT_SECURE);
|
||||
if (ret != 0) {
|
||||
panic();
|
||||
}
|
||||
|
||||
ret = console_linflex_register(UART_BASE, UART_CLOCK_HZ,
|
||||
UART_BAUDRATE, &s32g2_console);
|
||||
if (ret == 0) {
|
||||
|
|
|
@ -38,6 +38,9 @@ ERRATA_A53_1530924 := 1
|
|||
ERRATA_SPECULATIVE_AT := 1
|
||||
ERRATA_S32_051700 := 1
|
||||
|
||||
PLAT_XLAT_TABLES_DYNAMIC := 1
|
||||
$(eval $(call add_define,PLAT_XLAT_TABLES_DYNAMIC))
|
||||
|
||||
# Selecting Drivers for SoC
|
||||
$(eval $(call SET_NXP_MAKE_FLAG,CONSOLE_NEEDED,BL_COMM))
|
||||
$(eval $(call SET_NXP_MAKE_FLAG,CLK_NEEDED,BL_COMM))
|
||||
|
@ -47,6 +50,7 @@ include ${PLAT_DRIVERS_PATH}/drivers.mk
|
|||
BL_COMMON_SOURCES += \
|
||||
${PLAT_S32G274ARDB2}/plat_console.c \
|
||||
${PLAT_S32G274ARDB2}/plat_helpers.S \
|
||||
${XLAT_TABLES_LIB_SRCS} \
|
||||
|
||||
BL2_SOURCES += \
|
||||
${BL_COMMON_SOURCES} \
|
||||
|
|
Loading…
Add table
Reference in a new issue