arm: nrf: dts: use label to generate NRF uart name
Now that we can utilize label in the device tree we can convert to getting the device name for the NRF UART out of the device tree instead of from Kconfig. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
bb2c32428b
commit
29a6053a0d
15 changed files with 15 additions and 8 deletions
|
@ -16,14 +16,6 @@ menuconfig UART_NRF5
|
|||
family processors. Note that there is only one
|
||||
UART controller on nRF5 ICs.
|
||||
|
||||
config UART_NRF5_NAME
|
||||
string "Device Name for Nordic Semiconductor nRF5 UART"
|
||||
default "UART_0"
|
||||
depends on UART_NRF5
|
||||
help
|
||||
This is the device name for UART, and is included in the device
|
||||
struct.
|
||||
|
||||
config UART_NRF5_CLK_FREQ
|
||||
int
|
||||
default 16000000
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
reg = <0x40002000 0x1000>;
|
||||
interrupts = <2 1>;
|
||||
status = "disabled";
|
||||
label = "UART_0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
reg = <0x40002000 0x1000>;
|
||||
interrupts = <2 1>;
|
||||
status = "disabled";
|
||||
label = "UART_0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
reg = <0x40002000 0x1000>;
|
||||
interrupts = <2 1>;
|
||||
status = "disabled";
|
||||
label = "UART_0";
|
||||
};
|
||||
|
||||
uart1: uart@40028000 {
|
||||
|
@ -29,6 +30,7 @@
|
|||
reg = <0x40028000 0x1000>;
|
||||
interrupts = <40 1>;
|
||||
status = "disabled";
|
||||
label = "UART_1";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_NRF5_IRQ_PRI NORDIC_NRF_UART_40002000_IRQ_0_PRIORITY
|
||||
#define CONFIG_UART_NRF5_BAUD_RATE NORDIC_NRF_UART_40002000_CURRENT_SPEED
|
||||
#define CONFIG_UART_NRF5_NAME NORDIC_NRF_UART_40002000_LABEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue