can: rcar_canfd: Add Classical CAN only mode support
authorRamesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Wed, 22 Jun 2016 12:31:46 +0000 (13:31 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 23 Jun 2016 09:23:49 +0000 (11:23 +0200)
commit6f4c2eea353809fb85386d5ce17a30e37042847d
tree12435f92ba47dc1a23518832f7991379d6cf2bed
parent2781ff5c8fc7722e97503f96686bf6d7093069a9
can: rcar_canfd: Add Classical CAN only mode support

The controller can operate in one of the two global modes
 - CAN FD only mode (default)
 - Classical CAN (CAN2.0) only mode

This patch adds support for Classical CAN only mode. It can be enabled
by defining the optional device tree property "renesas,no-can-fd" of this
node.

Note: R-Car Gen3 h/w manual v0.51E shows bit6 of RSCFDnCFDGCFG as
reserved, which is incorrect. This bit is same as RSCFDnGCFG.

Signed-off-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Documentation/devicetree/bindings/net/can/rcar_canfd.txt
drivers/net/can/rcar/rcar_canfd.c