dts: mps2_an385: Initial device tree support
This patch adds the intial device tree support to V2M MPS2 AN385 platform. Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
parent
6256c99703
commit
255f19891a
6 changed files with 109 additions and 21 deletions
|
@ -9,26 +9,10 @@ if SOC_SERIES_MPS2
|
|||
config SOC_SERIES
|
||||
default mps2
|
||||
|
||||
config NUM_IRQ_PRIO_BITS
|
||||
int
|
||||
default 3
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
int
|
||||
default 25000000
|
||||
|
||||
config SRAM_BASE_ADDRESS
|
||||
default 0x20000000
|
||||
|
||||
config SRAM_SIZE
|
||||
default 4096
|
||||
|
||||
config FLASH_BASE_ADDRESS
|
||||
default 0x00000000
|
||||
|
||||
config FLASH_SIZE
|
||||
default 4096
|
||||
|
||||
source "arch/arm/soc/arm/mps2/Kconfig.defconfig.mps2*"
|
||||
|
||||
endif # SOC_SERIES_MPS2
|
||||
|
|
|
@ -25,20 +25,22 @@
|
|||
#if defined(CONFIG_UART_CMSDK_APB)
|
||||
/* CMSDK APB Universal Asynchronous Receiver-Transmitter (UART) */
|
||||
#define CMSDK_APB_UART0 UART_0_BASE_ADDR
|
||||
#define CMSDK_APB_UART1 UART_1_BASE_ADDR
|
||||
#define CMSDK_APB_UART2 UART_2_BASE_ADDR
|
||||
#define CMSDK_APB_UART3 UART_3_BASE_ADDR
|
||||
#define CMSDK_APB_UART4 UART_4_BASE_ADDR
|
||||
#ifndef CONFIG_HAS_DTS
|
||||
#define CMSDK_APB_UART_0_IRQ_TX IRQ_UART_0_TX
|
||||
#define CMSDK_APB_UART_0_IRQ_RX IRQ_UART_0_RX
|
||||
#define CMSDK_APB_UART1 UART_1_BASE_ADDR
|
||||
#define CMSDK_APB_UART_1_IRQ_TX IRQ_UART_1_TX
|
||||
#define CMSDK_APB_UART_1_IRQ_RX IRQ_UART_1_RX
|
||||
#define CMSDK_APB_UART2 UART_2_BASE_ADDR
|
||||
#define CMSDK_APB_UART_2_IRQ_TX IRQ_UART_2_TX
|
||||
#define CMSDK_APB_UART_2_IRQ_RX IRQ_UART_2_RX
|
||||
#define CMSDK_APB_UART3 UART_3_BASE_ADDR
|
||||
#define CMSDK_APB_UART_3_IRQ_TX IRQ_UART_3_TX
|
||||
#define CMSDK_APB_UART_3_IRQ_RX IRQ_UART_3_RX
|
||||
#define CMSDK_APB_UART4 UART_4_BASE_ADDR
|
||||
#define CMSDK_APB_UART_4_IRQ_TX IRQ_UART_4_TX
|
||||
#define CMSDK_APB_UART_4_IRQ_RX IRQ_UART_4_RX
|
||||
#endif
|
||||
#endif /* CONFIG_UART_CMSDK_APB */
|
||||
|
||||
#if defined(CONFIG_WATCHDOG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue