drivers/can: stm32: configure driver thanks to compatible

Remove need to configure from soc/

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-04-15 22:37:45 +02:00 committed by Kumar Gala
commit 826e24ca58
2 changed files with 3 additions and 5 deletions

View file

@ -3,9 +3,11 @@
# Copyright (c) 2018 Alexander Wachter
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ST_STM32_CAN := st,stm32-can
config CAN_STM32
bool "STM32 CAN Driver"
depends on SOC_FAMILY_STM32
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_CAN))
help
Enable STM32 CAN Driver.
Tested on stm32F0, stm32L4 and stm32F7 series.