arch: arc: em{7,9,11}d: Add initial DTS UART support
Add support for getting some basic params from the DTS for the UART. The ns16550 driver still needs to be updated to get IRQ and address info from DTS. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
311e6b9e3e
commit
8a824356e0
5 changed files with 58 additions and 6 deletions
|
@ -6,4 +6,22 @@
|
|||
#define CONFIG_ICCM_BASE_ADDRESS ARC_ICCM_0_BASE_ADDRESS
|
||||
#define CONFIG_ICCM_SIZE (ARC_ICCM_0_SIZE >> 10)
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_0_BASE_ADDR NS16550_F0008000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE NS16550_F0008000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME NS16550_F0008000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ NS16550_F0008000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI NS16550_F0008000_IRQ_0_PRIORITY
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_1_BASE_ADDR NS16550_F0009000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE NS16550_F0009000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME NS16550_F0009000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ NS16550_F0009000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI NS16550_F0009000_IRQ_0_PRIORITY
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_2_BASE_ADDR NS16550_F000A000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_2_BAUD_RATE NS16550_F000A000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_2_NAME NS16550_F000A000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_2_IRQ NS16550_F000A000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_2_IRQ_PRI NS16550_F000A000_IRQ_0_PRIORITY
|
||||
|
||||
/* End of SoC Level DTS fixup file */
|
||||
|
|
|
@ -6,4 +6,22 @@
|
|||
#define CONFIG_ICCM_BASE_ADDRESS ARC_ICCM_0_BASE_ADDRESS
|
||||
#define CONFIG_ICCM_SIZE (ARC_ICCM_0_SIZE >> 10)
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_0_BASE_ADDR NS16550_F0008000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE NS16550_F0008000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME NS16550_F0008000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ NS16550_F0008000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI NS16550_F0008000_IRQ_0_PRIORITY
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_1_BASE_ADDR NS16550_F0009000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE NS16550_F0009000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME NS16550_F0009000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ NS16550_F0009000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI NS16550_F0009000_IRQ_0_PRIORITY
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_2_BASE_ADDR NS16550_F000A000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_2_BAUD_RATE NS16550_F000A000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_2_NAME NS16550_F000A000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_2_IRQ NS16550_F000A000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_2_IRQ_PRI NS16550_F000A000_IRQ_0_PRIORITY
|
||||
|
||||
/* End of SoC Level DTS fixup file */
|
||||
|
|
|
@ -9,4 +9,22 @@
|
|||
#define CONFIG_SRAM_SIZE 0
|
||||
#define CONFIG_SRAM_BASE_ADDRESS 0
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_0_BASE_ADDR NS16550_F0008000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_0_BAUD_RATE NS16550_F0008000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_0_NAME NS16550_F0008000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ NS16550_F0008000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_0_IRQ_PRI NS16550_F0008000_IRQ_0_PRIORITY
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_1_BASE_ADDR NS16550_F0009000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_1_BAUD_RATE NS16550_F0009000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_1_NAME NS16550_F0009000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ NS16550_F0009000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_1_IRQ_PRI NS16550_F0009000_IRQ_0_PRIORITY
|
||||
|
||||
#define CONFIG_UART_NS16550_PORT_2_BASE_ADDR NS16550_F000A000_BASE_ADDRESS
|
||||
#define CONFIG_UART_NS16550_PORT_2_BAUD_RATE NS16550_F000A000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NS16550_PORT_2_NAME NS16550_F000A000_LABEL
|
||||
#define CONFIG_UART_NS16550_PORT_2_IRQ NS16550_F000A000_IRQ_0
|
||||
#define CONFIG_UART_NS16550_PORT_2_IRQ_PRI NS16550_F000A000_IRQ_0_PRIORITY
|
||||
|
||||
/* End of SoC Level DTS fixup file */
|
||||
|
|
|
@ -134,12 +134,6 @@ config UART_NS16550_PORT_1
|
|||
|
||||
if UART_NS16550_PORT_1
|
||||
|
||||
config UART_NS16550_PORT_1_NAME
|
||||
default "UART_1"
|
||||
config UART_NS16550_PORT_1_IRQ_PRI
|
||||
default 1
|
||||
config UART_NS16550_PORT_1_BAUD_RATE
|
||||
default 115200
|
||||
config UART_NS16550_PORT_1_OPTIONS
|
||||
default 0
|
||||
|
||||
|
|
|
@ -73,12 +73,14 @@ config UART_NS16550_PORT_0_NAME
|
|||
struct.
|
||||
endif
|
||||
|
||||
if !HAS_DTS && !ARC
|
||||
config UART_NS16550_PORT_0_IRQ_PRI
|
||||
int "Port 0 Interrupt Priority"
|
||||
default 0
|
||||
depends on UART_NS16550_PORT_0
|
||||
help
|
||||
The interrupt priority for UART port.
|
||||
endif
|
||||
|
||||
if !HAS_DTS
|
||||
config UART_NS16550_PORT_0_BAUD_RATE
|
||||
|
@ -132,12 +134,14 @@ config UART_NS16550_PORT_1_NAME
|
|||
struct.
|
||||
endif
|
||||
|
||||
if !HAS_DTS && !ARC
|
||||
config UART_NS16550_PORT_1_IRQ_PRI
|
||||
int "Port 1 Interrupt Priority"
|
||||
default 0
|
||||
depends on UART_NS16550_PORT_1
|
||||
help
|
||||
The interrupt priority for UART port.
|
||||
endif
|
||||
|
||||
if !HAS_DTS
|
||||
config UART_NS16550_PORT_1_BAUD_RATE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue