ARM: at91: make DBGU soc independent
we will select now the DBGU used by the soc at Kconfig level For the DEBUG_LL and early_printk this will allow to select which DBGU to use this will also allow to select them when multiple SOC are enabled Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
This commit is contained in:
@@ -24,8 +24,10 @@
|
||||
#include <linux/io.h>
|
||||
#include <linux/atmel_serial.h>
|
||||
|
||||
#if defined(CONFIG_AT91_EARLY_DBGU)
|
||||
#define UART_OFFSET (AT91_DBGU + AT91_BASE_SYS)
|
||||
#if defined(CONFIG_AT91_EARLY_DBGU0)
|
||||
#define UART_OFFSET AT91_BASE_DBGU0
|
||||
#elif defined(CONFIG_AT91_EARLY_DBGU1)
|
||||
#define UART_OFFSET AT91_BASE_DBGU1
|
||||
#elif defined(CONFIG_AT91_EARLY_USART0)
|
||||
#define UART_OFFSET AT91_USART0
|
||||
#elif defined(CONFIG_AT91_EARLY_USART1)
|
||||
|
Reference in New Issue
Block a user