From 983e6a56fbc9b9443619f8202e7b75632fd6a644 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Tue, 16 May 2017 21:14:09 -0500 Subject: [PATCH] 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 --- drivers/serial/Kconfig.atmel_sam3 | 8 -------- dts/arm/arduino_due.fixup | 1 + dts/arm/atmel/sam3x.dtsi | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/serial/Kconfig.atmel_sam3 b/drivers/serial/Kconfig.atmel_sam3 index d87e92da931..687dcee37a6 100644 --- a/drivers/serial/Kconfig.atmel_sam3 +++ b/drivers/serial/Kconfig.atmel_sam3 @@ -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 diff --git a/dts/arm/arduino_due.fixup b/dts/arm/arduino_due.fixup index 1a411fa78f8..8df0b1c7b96 100644 --- a/dts/arm/arduino_due.fixup +++ b/dts/arm/arduino_due.fixup @@ -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 diff --git a/dts/arm/atmel/sam3x.dtsi b/dts/arm/atmel/sam3x.dtsi index d5d7f561983..3c610c8ed06 100644 --- a/dts/arm/atmel/sam3x.dtsi +++ b/dts/arm/atmel/sam3x.dtsi @@ -29,6 +29,7 @@ reg = <0x400E0800 0x124>; interrupts = <8 0>; status = "disabled"; + label = "UART_0"; }; }; };