arm: atmel: sam3: dts: use label to generate Atmel SAM3 uart name
Now that we can utilize label in the device tree we can convert to getting the device name for the Atmel SAM3 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
22874ef301
commit
983e6a56fb
3 changed files with 2 additions and 8 deletions
|
@ -10,14 +10,6 @@ menuconfig UART_ATMEL_SAM3
|
|||
for RX and TX, and does not have other pins
|
||||
(such as CTS and RTS).
|
||||
|
||||
config UART_ATMEL_SAM3_NAME
|
||||
string "Device Name for Atmel SAM3 UART"
|
||||
default "UART_0"
|
||||
depends on UART_ATMEL_SAM3
|
||||
help
|
||||
This is the device name for UART, and is included in the device
|
||||
struct.
|
||||
|
||||
config UART_ATMEL_SAM3_IRQ_PRI
|
||||
int "Atmel SAM3 UART Interrupt Priority"
|
||||
default 0
|
||||
|
|
|
@ -6,3 +6,4 @@
|
|||
|
||||
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
#define CONFIG_UART_ATMEL_SAM3_NAME ATMEL_SAM3X_UART_400E0800_LABEL
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
reg = <0x400E0800 0x124>;
|
||||
interrupts = <8 0>;
|
||||
status = "disabled";
|
||||
label = "UART_0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue