]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
can: flexcan: add documentation about mailbox organization
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 17 Sep 2014 10:50:48 +0000 (12:50 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 6 May 2015 20:57:26 +0000 (22:57 +0200)
This patch adds a short documentation snippet about the mailbox organization as
it's regularly not correct in freescale's datasheets.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c

index 0f5965cc3fbc125f23543bcfd61a45004867d373..eb3ebfb4744218361ae0a7ab9b5453b230b35d1c 100644 (file)
@@ -230,6 +230,16 @@ struct flexcan_regs {
        u32 rxfir;              /* 0x4c */
        u32 _reserved3[12];     /* 0x50 */
        struct flexcan_mb cantxfg[64];  /* 0x80 */
+       /* FIFO-mode:
+        *                      MB
+        * 0x080...0x08f        0       RX message buffer
+        * 0x090...0x0df        1-5     reserverd
+        * 0x0e0...0x0ff        6-7     8 entry ID table
+        *                              (mx25, mx28, mx35, mx53)
+        * 0x0e0...0x2df        6-7..37 8..128 entry ID table
+        *                              size conf'ed via ctrl2::RFFN
+        *                              (mx6, vf610)
+        */
        u32 _reserved4[408];
        u32 mecr;               /* 0xae0 */
        u32 erriar;             /* 0xae4 */