kconfig: serial: sam0: Convert to use new kconfigfunctions
Convert use of dt_int_val to dt_compat_enabled. As we want to remove dt_int_val. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
54f81a670b
commit
8a50048b2b
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,9 @@
|
||||||
# Copyright (c) 2017 Google LLC.
|
# Copyright (c) 2017 Google LLC.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
# Workaround for not being able to have commas in macro arguments
|
||||||
|
DT_COMPAT_ATMEL_SAM0_DMAC := atmel,sam0-dmac
|
||||||
|
|
||||||
menuconfig UART_SAM0
|
menuconfig UART_SAM0
|
||||||
bool "Atmel SAM0 series SERCOM USART driver"
|
bool "Atmel SAM0 series SERCOM USART driver"
|
||||||
default y
|
default y
|
||||||
|
@ -10,7 +13,7 @@ menuconfig UART_SAM0
|
||||||
select SERIAL_HAS_DRIVER
|
select SERIAL_HAS_DRIVER
|
||||||
select SERIAL_SUPPORT_INTERRUPT
|
select SERIAL_SUPPORT_INTERRUPT
|
||||||
# the ASYNC implementation requires a DMA controller
|
# the ASYNC implementation requires a DMA controller
|
||||||
select SERIAL_SUPPORT_ASYNC if ($(dt_int_val,DT_INST_0_ATMEL_SAM0_DMAC) != 0)
|
select SERIAL_SUPPORT_ASYNC if $(dt_compat_enabled,$(DT_COMPAT_ATMEL_SAM0_DMAC))
|
||||||
select DMA if UART_ASYNC_API
|
select DMA if UART_ASYNC_API
|
||||||
help
|
help
|
||||||
This option enables the SERCOMx USART driver for Atmel SAM0 MCUs.
|
This option enables the SERCOMx USART driver for Atmel SAM0 MCUs.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue