arm: ti: cc32xx: dts: use label to generate TI CC32xx uart name

Now that we can utilize label in the device tree we can convert to
getting the device name for the TI CC32xx UART out of the device
tree instead of from Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-05-16 21:07:38 -05:00 committed by Anas Nashif
commit f13af29741
5 changed files with 5 additions and 8 deletions

View file

@ -6,10 +6,3 @@ menuconfig UART_CC32XX
depends on SOC_FAMILY_TISIMPLELINK
help
This option enables the CC32XX UART driver, for UART_0.
config UART_CC32XX_NAME
string "Device Name for CC32XX UART"
default "UART_0"
depends on UART_CC32XX
help
This is the UART's device name binding.

View file

@ -306,7 +306,7 @@ static const struct uart_driver_api uart_cc32xx_driver_api = {
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
};
DEVICE_AND_API_INIT(uart_cc32xx_0, CONFIG_UART_CONSOLE_ON_DEV_NAME,
DEVICE_AND_API_INIT(uart_cc32xx_0, CONFIG_UART_CC32XX_NAME,
uart_cc32xx_init, &uart_cc32xx_dev_data_0,
&uart_cc32xx_dev_cfg_0,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,

View file

@ -1 +1,2 @@
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#define CONFIG_UART_CC32XX_NAME TI_CC32XX_UART_4000C000_LABEL

View file

@ -1 +1,2 @@
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#define CONFIG_UART_CC32XX_NAME TI_CC32XX_UART_4000C000_LABEL

View file

@ -36,6 +36,7 @@
reg = <0x4000C000 0x4c>;
interrupts = <EXP_UARTA0 3>;
status = "disabled";
label = "UART_0";
};
uart1: uart@4000D000 {
@ -43,6 +44,7 @@
reg = <0x4000D000 0x4c>;
interrupts = <EXP_UARTA1 3>;
status = "disabled";
label = "UART_1";
};
};