Skip to content

Commit

Permalink
hikey: Add support for UART2
Browse files Browse the repository at this point in the history
UART2 is console interface provided on the 40-pin Low Speed
Connector in addition to the default UART3.

Reviewed-by: Victor Chong <[email protected]>
Signed-off-by: Michalis Pappas <[email protected]>
  • Loading branch information
michpappas authored and jbech-linaro committed Apr 25, 2019
1 parent d93190a commit 1f9643f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/arch/arm/plat-hikey/platform_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
#if defined(PLATFORM_FLAVOR_hikey)

#define PL011_UART0_BASE 0xF8015000
#define PL011_UART2_BASE 0xF7112000
#define PL011_UART3_BASE 0xF7113000
#if (CFG_CONSOLE_UART == 3)
#define CONSOLE_UART_BASE PL011_UART3_BASE
#elif (CFG_CONSOLE_UART == 2)
#define CONSOLE_UART_BASE PL011_UART2_BASE
#elif (CFG_CONSOLE_UART == 0)
#define CONSOLE_UART_BASE PL011_UART0_BASE
#else
Expand Down

0 comments on commit 1f9643f

Please sign in to comment.