]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
net: can: c_can: Add support for TI am4372 DCAN
authorRoger Quadros <rogerq@ti.com>
Mon, 17 Nov 2014 12:09:03 +0000 (14:09 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 17 Nov 2014 14:32:10 +0000 (15:32 +0100)
AM4372 SoC has 2 DCAN modules. Add compatible id and
raminit driver data for it. The driver data is same as AM3352
but this gives us flexibility to add AM4372 specific quirks
if required later.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Documentation/devicetree/bindings/net/can/c_can.txt
drivers/net/can/c_can/c_can_platform.c

index 6731730eec0d4b5ba10ad4ee07332f251b058208..5a1d8b0c39e97af6d3ef56589f0196541d912a51 100644 (file)
@@ -4,7 +4,8 @@ Bosch C_CAN/D_CAN controller Device Tree Bindings
 Required properties:
 - compatible           : Should be "bosch,c_can" for C_CAN controllers and
                          "bosch,d_can" for D_CAN controllers.
-                         Can be "ti,dra7-d_can" or "ti,am3352-d_can".
+                         Can be "ti,dra7-d_can", "ti,am3352-d_can" or
+                         "ti,am4372-d_can".
 - reg                  : physical base address and size of the C_CAN/D_CAN
                          registers map
 - interrupts           : property with a value describing the interrupt
index f4488e5d5d6884eb88ee0fcabb020c1e958dcc14..a4535d2142a727718036c5c7deab949c960c53dc 100644 (file)
@@ -235,6 +235,7 @@ static const struct of_device_id c_can_of_table[] = {
        { .compatible = "bosch,d_can", .data = &d_can_drvdata },
        { .compatible = "ti,dra7-d_can", .data = &dra7_dcan_drvdata },
        { .compatible = "ti,am3352-d_can", .data = &am3352_dcan_drvdata },
+       { .compatible = "ti,am4372-d_can", .data = &am3352_dcan_drvdata },
        { /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, c_can_of_table);