Merge "fix(versal2): rename console build arg to generic" into integration

This commit is contained in:
Joanna Farley 2025-03-19 10:48:49 +01:00 committed by TrustedFirmware Code Review
commit c03884e51f
2 changed files with 11 additions and 11 deletions
plat/amd/versal2

View file

@ -15,14 +15,14 @@
#define MAX_INTR_EL3 2U
/* List all consoles */
#define VERSAL2_CONSOLE_ID_none 0
#define VERSAL2_CONSOLE_ID_pl011 1
#define VERSAL2_CONSOLE_ID_pl011_0 1
#define VERSAL2_CONSOLE_ID_pl011_1 2
#define VERSAL2_CONSOLE_ID_dcc 3
#define VERSAL2_CONSOLE_ID_dtb 4
#define CONSOLE_ID_none 0
#define CONSOLE_ID_pl011 1
#define CONSOLE_ID_pl011_0 1
#define CONSOLE_ID_pl011_1 2
#define CONSOLE_ID_dcc 3
#define CONSOLE_ID_dtb 4
#define CONSOLE_IS(con) (VERSAL2_CONSOLE_ID_ ## con == VERSAL2_CONSOLE)
#define CONSOLE_IS(con) (CONSOLE_ID_ ## con == CONSOLE)
/* Runtime console */
#define RT_CONSOLE_ID_pl011 1

View file

@ -71,13 +71,13 @@ endif
USE_COHERENT_MEM := 0
HW_ASSISTED_COHERENCY := 1
VERSAL2_CONSOLE ?= pl011
ifeq (${VERSAL2_CONSOLE}, $(filter ${VERSAL2_CONSOLE},pl011 pl011_0 pl011_1 dcc dtb none))
CONSOLE ?= pl011
ifeq (${CONSOLE}, $(filter ${CONSOLE},pl011 pl011_0 pl011_1 dcc dtb none))
else
$(error "Please define VERSAL2_CONSOLE")
$(error "Please define CONSOLE")
endif
$(eval $(call add_define_val,VERSAL2_CONSOLE,VERSAL2_CONSOLE_ID_${VERSAL2_CONSOLE}))
$(eval $(call add_define_val,CONSOLE,CONSOLE_ID_${CONSOLE}))
# Runtime console in default console in DEBUG build
ifeq ($(DEBUG), 1)