stm32: Rework kconfig to use CONFIG_CANSERIAL for both can.c and fdcan.c

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2022-06-01 10:59:10 -04:00
parent 907b47b238
commit 63affd7006
2 changed files with 8 additions and 13 deletions

View File

@@ -278,8 +278,6 @@ config SERIAL
bool
config CANSERIAL
bool
config FDCANSERIAL
bool
choice
prompt "Communication interface"
config STM32_USB_PA11_PA12
@@ -348,13 +346,13 @@ choice
depends on HAVE_STM32_CANBUS
select CANSERIAL
config STM32_CANBUS_PB0_PB1
bool "CAN bus (on PB0/PB1)" if LOW_LEVEL_OPTIONS
bool "CAN bus (on PB0/PB1)"
depends on HAVE_STM32_FDCANBUS
select FDCANSERIAL
select CANSERIAL
endchoice
config CANBUS_FREQUENCY
int "CAN bus speed" if LOW_LEVEL_OPTIONS && (CANSERIAL || FDCANSERIAL)
int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL
default 500000
endif