Skip to content

Commit

Permalink
hikey: Set default value for CONSOLE_UART_BASE in conf.mk
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Chong <[email protected]>
Reviewed-by: Jerome Forissier <[email protected]>
  • Loading branch information
Victor Chong committed Jul 17, 2017
1 parent c4b29c2 commit e0bb0be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions core/arch/arm/plat-hikey/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ CFG_SECURE_DATA_PATH ?= y
CFG_TEE_SDP_MEM_BASE ?= 0x3E800000
CFG_TEE_SDP_MEM_SIZE ?= 0x00400000

ifeq ($(PLATFORM_FLAVOR),hikey)
CFG_CONSOLE_UART ?= 3
endif

ifeq ($(PLATFORM_FLAVOR),hikey960)
CFG_CONSOLE_UART ?= 6
endif
6 changes: 3 additions & 3 deletions core/arch/arm/plat-hikey/platform_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@

#define PL011_UART0_BASE 0xF8015000
#define PL011_UART3_BASE 0xF7113000
#if defined(CFG_CONSOLE_UART) && (CFG_CONSOLE_UART == 0)
#define CONSOLE_UART_BASE PL011_UART0_BASE
#elif !defined(CFG_CONSOLE_UART) || (CFG_CONSOLE_UART == 3)
#if (CFG_CONSOLE_UART == 3)
#define CONSOLE_UART_BASE PL011_UART3_BASE
#elif (CFG_CONSOLE_UART == 0)
#define CONSOLE_UART_BASE PL011_UART0_BASE
#else
#error Unknown console UART
#endif
Expand Down

0 comments on commit e0bb0be

Please sign in to comment.