Commit 5b6ebeec authored by Ambroise Vincent's avatar Ambroise Vincent
Browse files

Remove MULTI_CONSOLE_API flag and references to it



The new API becomes the default one.

Change-Id: Ic1d602da3dff4f4ebbcc158b885295c902a24fec
Signed-off-by: default avatarAmbroise Vincent <ambroise.vincent@arm.com>
parent 51e24ec2
...@@ -17,7 +17,6 @@ else ...@@ -17,7 +17,6 @@ else
$(error "Currently unsupported HIKEY960_TSP_RAM_LOCATION value") $(error "Currently unsupported HIKEY960_TSP_RAM_LOCATION value")
endif endif
MULTI_CONSOLE_API := 1
CRASH_CONSOLE_BASE := PL011_UART6_BASE CRASH_CONSOLE_BASE := PL011_UART6_BASE
COLD_BOOT_SINGLE_CPU := 1 COLD_BOOT_SINGLE_CPU := 1
PLAT_PL061_MAX_GPIOS := 176 PLAT_PL061_MAX_GPIOS := 176
......
...@@ -46,7 +46,6 @@ ERRATA_A53_855873 := 1 ...@@ -46,7 +46,6 @@ ERRATA_A53_855873 := 1
ERRATA_A53_835769 := 1 ERRATA_A53_835769 := 1
ERRATA_A53_843419 := 1 ERRATA_A53_843419 := 1
ENABLE_SVE_FOR_NS := 0 ENABLE_SVE_FOR_NS := 0
MULTI_CONSOLE_API := 1
WORKAROUND_CVE_2017_5715 := 0 WORKAROUND_CVE_2017_5715 := 0
PLAT_PL061_MAX_GPIOS := 104 PLAT_PL061_MAX_GPIOS := 104
......
...@@ -119,9 +119,6 @@ SEPARATE_CODE_AND_RODATA := 1 ...@@ -119,9 +119,6 @@ SEPARATE_CODE_AND_RODATA := 1
# Use Coherent memory # Use Coherent memory
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
# Use multi console API
MULTI_CONSOLE_API := 1
# PLAT_WARP7_UART # PLAT_WARP7_UART
PLAT_WARP7_UART :=1 PLAT_WARP7_UART :=1
$(eval $(call add_define,PLAT_WARP7_UART)) $(eval $(call add_define,PLAT_WARP7_UART))
......
...@@ -39,7 +39,6 @@ BL31_SOURCES += plat/imx/common/imx8_helpers.S \ ...@@ -39,7 +39,6 @@ BL31_SOURCES += plat/imx/common/imx8_helpers.S \
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
RESET_TO_BL31 := 1 RESET_TO_BL31 := 1
A53_DISABLE_NON_TEMPORAL_HINT := 0 A53_DISABLE_NON_TEMPORAL_HINT := 0
MULTI_CONSOLE_API := 1
ERRATA_A53_835769 := 1 ERRATA_A53_835769 := 1
ERRATA_A53_843419 := 1 ERRATA_A53_843419 := 1
......
...@@ -39,7 +39,6 @@ BL31_SOURCES += plat/imx/common/imx8_helpers.S \ ...@@ -39,7 +39,6 @@ BL31_SOURCES += plat/imx/common/imx8_helpers.S \
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
RESET_TO_BL31 := 1 RESET_TO_BL31 := 1
A53_DISABLE_NON_TEMPORAL_HINT := 0 A53_DISABLE_NON_TEMPORAL_HINT := 0
MULTI_CONSOLE_API := 1
ERRATA_A53_835769 := 1 ERRATA_A53_835769 := 1
ERRATA_A53_843419 := 1 ERRATA_A53_843419 := 1
......
...@@ -36,7 +36,6 @@ include plat/imx/common/sci/sci_api.mk ...@@ -36,7 +36,6 @@ include plat/imx/common/sci/sci_api.mk
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
RESET_TO_BL31 := 1 RESET_TO_BL31 := 1
A53_DISABLE_NON_TEMPORAL_HINT := 0 A53_DISABLE_NON_TEMPORAL_HINT := 0
MULTI_CONSOLE_API := 1
ERRATA_A72_859971 := 1 ERRATA_A72_859971 := 1
ERRATA_A53_835769 := 1 ERRATA_A53_835769 := 1
......
...@@ -33,4 +33,3 @@ include plat/imx/common/sci/sci_api.mk ...@@ -33,4 +33,3 @@ include plat/imx/common/sci/sci_api.mk
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
RESET_TO_BL31 := 1 RESET_TO_BL31 := 1
MULTI_CONSOLE_API := 1
...@@ -67,5 +67,4 @@ BL31_SOURCES += drivers/arm/cci/cci.c \ ...@@ -67,5 +67,4 @@ BL31_SOURCES += drivers/arm/cci/cci.c \
PROGRAMMABLE_RESET_ADDRESS := 0 PROGRAMMABLE_RESET_ADDRESS := 0
BL2_AT_EL3 := 1 BL2_AT_EL3 := 1
MULTI_CONSOLE_API := 1
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
...@@ -56,9 +56,6 @@ BL31_SOURCES += plat/layerscape/board/ls1043/ls1043_bl31_setup.c \ ...@@ -56,9 +56,6 @@ BL31_SOURCES += plat/layerscape/board/ls1043/ls1043_bl31_setup.c \
${LS1043_INTERCONNECT_SOURCES} \ ${LS1043_INTERCONNECT_SOURCES} \
${LS1043_SECURITY_SOURCES} ${LS1043_SECURITY_SOURCES}
# Disable the PSCI platform compatibility layer
MULTI_CONSOLE_API := 1
# Enable workarounds for selected Cortex-A53 erratas. # Enable workarounds for selected Cortex-A53 erratas.
ERRATA_A53_855873 := 1 ERRATA_A53_855873 := 1
......
...@@ -78,7 +78,6 @@ init_fail: ...@@ -78,7 +78,6 @@ init_fail:
ret ret
endfunc console_ls_16550_core_init endfunc console_ls_16550_core_init
#if MULTI_CONSOLE_API
.globl console_ls_16550_register .globl console_ls_16550_register
/* ----------------------------------------------- /* -----------------------------------------------
...@@ -111,16 +110,6 @@ func console_ls_16550_register ...@@ -111,16 +110,6 @@ func console_ls_16550_register
register_fail: register_fail:
ret x7 ret x7
endfunc console_ls_16550_register endfunc console_ls_16550_register
#else
.globl console_core_init
.globl console_core_putc
.globl console_core_getc
.globl console_core_flush
.equ console_core_init,console_ls_16550_core_init
.equ console_core_putc,console_ls_16550_core_putc
.equ console_core_getc,console_ls_16550_core_getc
.equ console_core_flush,console_ls_16550_core_flush
#endif
/* -------------------------------------------------------- /* --------------------------------------------------------
* int console_ls_16550_core_putc(int c, uintptr_t base_addr) * int console_ls_16550_core_putc(int c, uintptr_t base_addr)
......
...@@ -49,7 +49,6 @@ endfunc plat_ls_calc_core_pos ...@@ -49,7 +49,6 @@ endfunc plat_ls_calc_core_pos
* --------------------------------------------- * ---------------------------------------------
*/ */
#if MULTI_CONSOLE_API
/* ----------------------------------------------------- /* -----------------------------------------------------
* int plat_crash_console_init(void) * int plat_crash_console_init(void)
* Use normal console by default. Switch it to crash * Use normal console by default. Switch it to crash
...@@ -101,45 +100,6 @@ func plat_crash_console_flush ...@@ -101,45 +100,6 @@ func plat_crash_console_flush
b console_flush b console_flush
endfunc plat_crash_console_flush endfunc plat_crash_console_flush
#else /* MULTI_CONSOLE_API */
/* -----------------------------------------------------
* In the old API these are all no-op stubs that need to
* be overridden by the platform to be useful.
* -----------------------------------------------------
*/
func plat_crash_console_init
mov_imm x0, PLAT_LS1043_UART_BASE
mov_imm x1, PLAT_LS1043_UART_CLOCK
mov_imm x2, PLAT_LS1043_UART_BAUDRATE
b console_core_init
endfunc plat_crash_console_init
/* ---------------------------------------------
* int plat_crash_console_putc(int c)
* Function to print a character on the crash
* console without a C Runtime.
* Clobber list : x1, x2
* ---------------------------------------------
*/
func plat_crash_console_putc
mov_imm x1, PLAT_LS1043_UART_BASE
b console_core_putc
endfunc plat_crash_console_putc
/* ---------------------------------------------
* int plat_crash_console_flush()
* Function to force a write of all buffered
* data that hasn't been output.
* Out : return -1 on error else return 0.
* Clobber list : r0 - r1
* ---------------------------------------------
*/
func plat_crash_console_flush
mov_imm x1, PLAT_LS1043_UART_BASE
b console_core_flush
endfunc plat_crash_console_flush
#endif
/* --------------------------------------------------------------------- /* ---------------------------------------------------------------------
* We don't need to carry out any memory initialization on LS * We don't need to carry out any memory initialization on LS
* platforms. The Secure SRAM is accessible straight away. * platforms. The Secure SRAM is accessible straight away.
......
...@@ -11,8 +11,6 @@ include $(MARVELL_PLAT_BASE)/marvell.mk ...@@ -11,8 +11,6 @@ include $(MARVELL_PLAT_BASE)/marvell.mk
VERSION_STRING +=(Marvell-${SUBVERSION}) VERSION_STRING +=(Marvell-${SUBVERSION})
MULTI_CONSOLE_API := 1
SEPARATE_CODE_AND_RODATA := 1 SEPARATE_CODE_AND_RODATA := 1
# flag to switch from PLL to ARO # flag to switch from PLL to ARO
......
...@@ -57,16 +57,9 @@ SEPARATE_CODE_AND_RODATA := 1 ...@@ -57,16 +57,9 @@ SEPARATE_CODE_AND_RODATA := 1
# Use Coherent memory # Use Coherent memory
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
# Use multi console API
MULTI_CONSOLE_API := 1
# Verify build config # Verify build config
# ------------------- # -------------------
ifneq (${MULTI_CONSOLE_API}, 1)
$(error Error: gxbb needs MULTI_CONSOLE_API=1)
endif
ifneq (${RESET_TO_BL31}, 0) ifneq (${RESET_TO_BL31}, 0)
$(error Error: gxbb needs RESET_TO_BL31=0) $(error Error: gxbb needs RESET_TO_BL31=0)
endif endif
......
...@@ -62,16 +62,9 @@ SEPARATE_CODE_AND_RODATA := 1 ...@@ -62,16 +62,9 @@ SEPARATE_CODE_AND_RODATA := 1
# Use Coherent memory # Use Coherent memory
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
# Use multi console API
MULTI_CONSOLE_API := 1
# Verify build config # Verify build config
# ------------------- # -------------------
ifneq (${MULTI_CONSOLE_API}, 1)
$(error Error: gxl needs MULTI_CONSOLE_API=1)
endif
ifneq (${RESET_TO_BL31}, 0) ifneq (${RESET_TO_BL31}, 0)
$(error Error: gxl needs RESET_TO_BL31=0) $(error Error: gxl needs RESET_TO_BL31=0)
endif endif
......
...@@ -151,12 +151,6 @@ ifneq ($(ENABLE_STACK_PROTECTOR), 0) ...@@ -151,12 +151,6 @@ ifneq ($(ENABLE_STACK_PROTECTOR), 0)
PLAT_BL_COMMON_SOURCES += plat/qemu/qemu_stack_protector.c PLAT_BL_COMMON_SOURCES += plat/qemu/qemu_stack_protector.c
endif endif
# Use MULTI_CONSOLE_API by default only on AArch64
# as it is not yet supported on AArch32
ifeq ($(ARCH),aarch64)
MULTI_CONSOLE_API := 1
endif
BL32_RAM_LOCATION := tdram BL32_RAM_LOCATION := tdram
ifeq (${BL32_RAM_LOCATION}, tsram) ifeq (${BL32_RAM_LOCATION}, tsram)
BL32_RAM_LOCATION_ID = SEC_SRAM_ID BL32_RAM_LOCATION_ID = SEC_SRAM_ID
......
...@@ -9,23 +9,15 @@ ...@@ -9,23 +9,15 @@
#include <drivers/console.h> #include <drivers/console.h>
#include <drivers/arm/pl011.h> #include <drivers/arm/pl011.h>
#if MULTI_CONSOLE_API
static console_pl011_t console; static console_pl011_t console;
#endif /* MULTI_CONSOLE_API */
void qemu_console_init(void) void qemu_console_init(void)
{ {
#if MULTI_CONSOLE_API
(void)console_pl011_register(PLAT_QEMU_BOOT_UART_BASE, (void)console_pl011_register(PLAT_QEMU_BOOT_UART_BASE,
PLAT_QEMU_BOOT_UART_CLK_IN_HZ, PLAT_QEMU_BOOT_UART_CLK_IN_HZ,
PLAT_QEMU_CONSOLE_BAUDRATE, &console); PLAT_QEMU_CONSOLE_BAUDRATE, &console);
console_set_scope(&console.console, CONSOLE_FLAG_BOOT | console_set_scope(&console.console, CONSOLE_FLAG_BOOT |
CONSOLE_FLAG_RUNTIME); CONSOLE_FLAG_RUNTIME);
#else
console_init(PLAT_QEMU_BOOT_UART_BASE,
PLAT_QEMU_BOOT_UART_CLK_IN_HZ,
PLAT_QEMU_CONSOLE_BAUDRATE);
#endif /* MULTI_CONSOLE_API */
} }
...@@ -51,8 +51,6 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \ ...@@ -51,8 +51,6 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \
${RK_PLAT_SOC}/drivers/pmu/pmu.c \ ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
${RK_PLAT_SOC}/drivers/soc/soc.c ${RK_PLAT_SOC}/drivers/soc/soc.c
MULTI_CONSOLE_API := 1
include lib/coreboot/coreboot.mk include lib/coreboot/coreboot.mk
include lib/libfdt/libfdt.mk include lib/libfdt/libfdt.mk
......
...@@ -50,8 +50,6 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \ ...@@ -50,8 +50,6 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \
${RK_PLAT_SOC}/drivers/soc/soc.c \ ${RK_PLAT_SOC}/drivers/soc/soc.c \
${RK_PLAT_SOC}/drivers/ddr/ddr_rk3368.c \ ${RK_PLAT_SOC}/drivers/ddr/ddr_rk3368.c \
MULTI_CONSOLE_API := 1
include lib/coreboot/coreboot.mk include lib/coreboot/coreboot.mk
include lib/libfdt/libfdt.mk include lib/libfdt/libfdt.mk
......
...@@ -67,8 +67,6 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \ ...@@ -67,8 +67,6 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \
${RK_PLAT_SOC}/drivers/dram/dram_spec_timing.c \ ${RK_PLAT_SOC}/drivers/dram/dram_spec_timing.c \
${RK_PLAT_SOC}/drivers/dram/suspend.c ${RK_PLAT_SOC}/drivers/dram/suspend.c
MULTI_CONSOLE_API := 1
include lib/coreboot/coreboot.mk include lib/coreboot/coreboot.mk
include lib/libfdt/libfdt.mk include lib/libfdt/libfdt.mk
......
...@@ -102,9 +102,6 @@ SEPARATE_CODE_AND_RODATA := 1 ...@@ -102,9 +102,6 @@ SEPARATE_CODE_AND_RODATA := 1
# Use Coherent memory # Use Coherent memory
USE_COHERENT_MEM := 1 USE_COHERENT_MEM := 1
# Use multi console API
MULTI_CONSOLE_API := 1
# Platform build flags # Platform build flags
# -------------------- # --------------------
...@@ -152,10 +149,6 @@ ifneq (${RPI3_DIRECT_LINUX_BOOT}, 0) ...@@ -152,10 +149,6 @@ ifneq (${RPI3_DIRECT_LINUX_BOOT}, 0)
endif endif
endif endif
ifneq (${MULTI_CONSOLE_API}, 1)
$(error Error: rpi3 needs MULTI_CONSOLE_API=1)
endif
ifneq (${RESET_TO_BL31}, 0) ifneq (${RESET_TO_BL31}, 0)
$(error Error: rpi3 needs RESET_TO_BL31=0) $(error Error: rpi3 needs RESET_TO_BL31=0)
endif endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment