Skip to content

Commit

Permalink
drivers: cc13xx_cc26xx: use DT_INST_FOREACH to reduce code duplication
Browse files Browse the repository at this point in the history
Use DT_INST_FOREACH macro to combine code used for multiple instances.
Remove unnecessary Kconfig options for UART instances.

Signed-off-by: Vincent Wan <[email protected]>
  • Loading branch information
vanti authored and galak committed Apr 23, 2020
1 parent 9849882 commit 0915ccc
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 341 deletions.
17 changes: 1 addition & 16 deletions drivers/serial/Kconfig.cc13xx_cc26xx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,10 @@
# Copyright (c) 2019 Brett Witherspoon
# SPDX-License-Identifier: Apache-2.0

menuconfig UART_CC13XX_CC26XX
config UART_CC13XX_CC26XX
bool "TI SimpleLink CC13xx / CC26xx UART driver"
depends on SOC_SERIES_CC13X2_CC26X2
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
Enable the TI SimpleLink CC13xx / CC26xx UART driver.

if UART_CC13XX_CC26XX

config UART_CC13XX_CC26XX_0
bool "UART 0"
default y
help
Enable UART 0.

config UART_CC13XX_CC26XX_1
bool "UART 1"
help
Enable UART 1.

endif # UART_CC13XX_CC26XX
Loading

0 comments on commit 0915ccc

Please sign in to comment.