drivers: can: remove CAN_HAS_RX_TIMESTAMP Kconfig helper

Remove the CAN_HAS_RX_TIMESTAMP Kconfig helper symbol in order to allow
enabling CAN RX timestamps in the API regardless of driver support.

This simplifies application prj.conf settings across board supporting/not
supporting RX timestamps considerably.

CAN drivers not supporting RX timestamps already initialize the timestamp
to 0 for received frames.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2023-01-24 12:02:34 +01:00 committed by Fabio Baltieri
parent d9662d1706
commit f1a7ec96db
5 changed files with 1 additions and 11 deletions

View File

@ -60,11 +60,6 @@ config CAN_HAS_CANFD
help
driver supports CAN-FD
config CAN_HAS_RX_TIMESTAMP
bool
help
driver supports RX timestamps
config CAN_FD_MODE
bool "CAN-FD"
default y
@ -74,11 +69,10 @@ config CAN_FD_MODE
config CAN_RX_TIMESTAMP
bool "Receiving timestamps"
depends on CAN_HAS_RX_TIMESTAMP
help
This option enables a timestamp value of the CAN free running timer.
The value is incremented every bit time and starts when the controller
is initialized.
is initialized. Not all CAN controllers support timestamps.
config CAN_AUTO_BUS_OFF_RECOVERY
bool "Automatic recovery from bus-off"

View File

@ -8,6 +8,5 @@ config CAN_FAKE
default y
depends on DT_HAS_ZEPHYR_FAKE_CAN_ENABLED
select CAN_HAS_CANFD
select CAN_HAS_RX_TIMESTAMP
help
Enable support for the FFF-based fake CAN driver.

View File

@ -6,7 +6,6 @@
config CAN_MCAN
bool
select CAN_HAS_CANFD
select CAN_HAS_RX_TIMESTAMP
help
Enable Bosch m_can driver.
This driver supports the Bosch m_can IP. This IP is built into the

View File

@ -8,7 +8,6 @@ config CAN_MCUX_FLEXCAN
default y
depends on DT_HAS_NXP_KINETIS_FLEXCAN_ENABLED
depends on CLOCK_CONTROL
select CAN_HAS_RX_TIMESTAMP
help
Enable support for mcux flexcan driver.

View File

@ -7,7 +7,6 @@ config CAN_STM32
bool "STM32 CAN Driver"
default y
depends on DT_HAS_ST_STM32_CAN_ENABLED
select CAN_HAS_RX_TIMESTAMP
help
Enable STM32 CAN Driver.
Tested on STM32F0, STM32F4, STM32L4 and STM32F7 series.