drivers: serial: rcar: set default according to dt enabled
Set UART_RCAR to true if renesas,rcar-scif status is okay. Signed-off-by: Julien Massot <julien.massot@iot.bzh>
This commit is contained in:
parent
59840b1a7b
commit
2d6ed8c083
1 changed files with 3 additions and 0 deletions
|
@ -3,10 +3,13 @@
|
||||||
# Copyright (c) 2021 IoT.bzh
|
# Copyright (c) 2021 IoT.bzh
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
DT_COMPAT_RENESAS_RCAR_SCIF := renesas,rcar-scif
|
||||||
|
|
||||||
config UART_RCAR
|
config UART_RCAR
|
||||||
bool "Renesas R-Car UART Driver"
|
bool "Renesas R-Car UART Driver"
|
||||||
select SERIAL_HAS_DRIVER
|
select SERIAL_HAS_DRIVER
|
||||||
select SERIAL_SUPPORT_INTERRUPT
|
select SERIAL_SUPPORT_INTERRUPT
|
||||||
depends on SOC_FAMILY_RCAR
|
depends on SOC_FAMILY_RCAR
|
||||||
|
default $(dt_compat_enabled,$(DT_COMPAT_RENESAS_RCAR_SCIF))
|
||||||
help
|
help
|
||||||
Enable Renesas R-Car UART Driver.
|
Enable Renesas R-Car UART Driver.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue