summaryrefslogtreecommitdiff
path: root/drivers/net/can/sja1000/sja1000.h
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2022-07-10 14:52:45 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-07-19 21:46:59 +0300
commit2d99bfbf3386962692dcccd73931cb0db07a1a43 (patch)
tree5a1d57beda78b2dac5c4926e710b7312ec99fb4b /drivers/net/can/sja1000/sja1000.h
parent4591c760b79759849b563605132e6afdd0149717 (diff)
downloadlinux-2d99bfbf3386962692dcccd73931cb0db07a1a43.tar.xz
can: sja1000: Add Quirk for RZ/N1 SJA1000 CAN controller
As per Chapter 6.5.16 of the RZ/N1 Peripheral Manual, The SJA1000 CAN controller does not support Clock Divider Register compared to the reference Philips SJA1000 device. This patch adds a device quirk to handle this difference. Link: https://lore.kernel.org/all/20220710115248.190280-4-biju.das.jz@bp.renesas.com Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/sja1000/sja1000.h')
-rw-r--r--drivers/net/can/sja1000/sja1000.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/can/sja1000/sja1000.h b/drivers/net/can/sja1000/sja1000.h
index 9d46398f8154..7f736f1df547 100644
--- a/drivers/net/can/sja1000/sja1000.h
+++ b/drivers/net/can/sja1000/sja1000.h
@@ -145,7 +145,8 @@
/*
* Flags for sja1000priv.flags
*/
-#define SJA1000_CUSTOM_IRQ_HANDLER 0x1
+#define SJA1000_CUSTOM_IRQ_HANDLER BIT(0)
+#define SJA1000_QUIRK_NO_CDR_REG BIT(1)
/*
* SJA1000 private data structure