MLK-21412 can: flexcan: add ISO CAN FD feature support
ISO CAN FD is introduced to increase the failture detection capability
than non-ISO CAN FD. The non-ISO CAN FD is still supported by FlexCAN so
that it can be used mainly during an intermediate phase, for evaluation
and development purposes.
Therefore, it is strongly recommended to configure FlexCAN to the ISO
CAN FD protocol by setting the ISOCANFDEN field in the CTRL2 register.
Test Command:
ISO FD MODE:
ip link set can0 type can bitrate
1000000 dbitrate
4000000 fd on
fd-non-iso off
non-ISO FD MODE:
ip link set can0 type can bitrate
1000000 dbitrate
4000000 fd on
fd-non-iso on
NOTE: if you only set fd on, driver will use ISO FD MODE by default.
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>