drivers: can: rcar: set default according to dt enabled

Set CAN_RCAR to true if renesas,rcar-can status is okay.

Signed-off-by: Julien Massot <julien.massot@iot.bzh>
This commit is contained in:
Julien Massot 2022-01-21 09:42:06 +01:00 committed by Anas Nashif
commit 86a2f81c14

View file

@ -3,9 +3,12 @@
# Copyright (c) 2021 IoT.bzh
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_RENESAS_RCAR_CAN := renesas,rcar-can
config CAN_RCAR
bool "Renesas R-Car CAN Driver"
depends on SOC_FAMILY_RCAR
default $(dt_compat_enabled,$(DT_COMPAT_RENESAS_RCAR_CAN))
help
Enable Renesas R-Car CAN Driver.