drivers: can: stm32: fdcan: fold Kconfig file into stm32 Kconfig file
Fold the Kconfig options for the STM32 FDCAN driver into the main Kconfig.stm32 file. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
913e59c5ea
commit
ff85523d04
3 changed files with 28 additions and 33 deletions
|
@ -88,7 +88,6 @@ config CAN_QEMU_IFACE_NAME
|
|||
source "drivers/can/Kconfig.sam"
|
||||
source "drivers/can/Kconfig.sam0"
|
||||
source "drivers/can/Kconfig.stm32"
|
||||
source "drivers/can/Kconfig.stm32fd"
|
||||
source "drivers/can/Kconfig.stm32h7"
|
||||
source "drivers/can/Kconfig.mcux"
|
||||
source "drivers/can/Kconfig.mcp2515"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# STM32 CAN configuration options
|
||||
|
||||
# Copyright (c) 2018 Alexander Wachter
|
||||
# Copyright (c) 2018-2020 Alexander Wachter
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config CAN_STM32_BXCAN
|
||||
|
@ -45,3 +45,30 @@ config CAN_MAX_EXT_ID_FILTER
|
|||
CAN_MAX_STD_ID_FILTER + CAN_MAX_EXT_ID_FILTER * 2 <= 28
|
||||
|
||||
endif # CAN_STM32_BXCAN
|
||||
|
||||
config CAN_STM32FD
|
||||
bool "STM32 FDCAN driver"
|
||||
default y
|
||||
depends on DT_HAS_ST_STM32_FDCAN_ENABLED
|
||||
select CAN_MCAN
|
||||
select USE_STM32_LL_RCC
|
||||
|
||||
if CAN_STM32FD
|
||||
|
||||
config CAN_MAX_STD_ID_FILTER
|
||||
int "Maximum number of std ID filters"
|
||||
default 28
|
||||
range 0 28
|
||||
help
|
||||
Defines the maximum number of filters with standard ID (11-bit)
|
||||
that can be attached.
|
||||
|
||||
config CAN_MAX_EXT_ID_FILTER
|
||||
int "Maximum number of ext ID filters"
|
||||
default 8
|
||||
range 0 8
|
||||
help
|
||||
Defines the maximum number of filters with extended ID (29-bit)
|
||||
that can be attached.
|
||||
|
||||
endif # CAN_STM32FD
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
# STM32 CAN configuration options
|
||||
|
||||
# Copyright (c) 2020 Alexander Wachter
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config CAN_STM32FD
|
||||
bool "STM32 FDCAN driver"
|
||||
default y
|
||||
depends on DT_HAS_ST_STM32_FDCAN_ENABLED
|
||||
select CAN_MCAN
|
||||
select USE_STM32_LL_RCC
|
||||
|
||||
if CAN_STM32FD
|
||||
|
||||
config CAN_MAX_STD_ID_FILTER
|
||||
int "Maximum number of std ID filters"
|
||||
default 28
|
||||
range 0 28
|
||||
help
|
||||
Defines the maximum number of filters with standard ID (11-bit)
|
||||
that can be attached.
|
||||
|
||||
config CAN_MAX_EXT_ID_FILTER
|
||||
int "Maximum number of ext ID filters"
|
||||
default 8
|
||||
range 0 8
|
||||
help
|
||||
Defines the maximum number of filters with extended ID (29-bit)
|
||||
that can be attached.
|
||||
|
||||
endif # CAN_STM32FD
|
Loading…
Add table
Add a link
Reference in a new issue