dts: Convert CONFIG_ to DT_ symbols for chosen props

Replace generating CONFIG_ symbols with DT_ symbols for chosen
properties like 'zephyr,console' or 'zephyr,bt-mon-uart'.  We now use a
kconfigfunctions (dt_str_val) to extract the info from dts into Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-02-08 08:32:46 -06:00 committed by Kumar Gala
commit ff70b3444f
6 changed files with 18 additions and 24 deletions

View file

@ -62,15 +62,14 @@ config BT_NO_DRIVER
endchoice
if !HAS_DTS
config BT_UART_ON_DEV_NAME
string "Device Name of UART Device for Bluetooth"
default "$(dt_str_val,DT_BT_UART_ON_DEV_NAME)" if HAS_DTS
default "UART_0"
depends on BT_UART
help
This option specifies the name of UART device to be used
for Bluetooth.
endif
if BT_SPI