summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/flexcan/flexcan.h
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@nxp.com>2022-11-22 19:32:30 +0800
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-12-12 11:39:12 +0100
commit8cb53b485f18732c1e0671a0e826063de47650a6 (patch)
treebba8f046d17601d22c0a888c24f0d9f09807ec19 /drivers/net/can/flexcan/flexcan.h
parent8fd9323ef7210b90d1d209dd4f0d65a8411b60e1 (diff)
downloadlinux-8cb53b485f18732c1e0671a0e826063de47650a6.tar.bz2
can: flexcan: add auto stop mode for IMX93 to support wakeup
IMX93 do not contain a GPR to config the stop mode, it will set the flexcan into stop mode automatically once the ARM core go into low power mode (WFI instruct) and gate off the flexcan related clock automatically. But to let these logic work as expect, before ARM core go into low power mode, need to make sure the flexcan related clock keep on. To support stop mode and wakeup feature on imx93, this patch add a new fsl_imx93_devtype_data to separate from imx8mp. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Link: https://lore.kernel.org/all/1669116752-4260-1-git-send-email-haibo.chen@nxp.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/flexcan/flexcan.h')
-rw-r--r--drivers/net/can/flexcan/flexcan.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/flexcan/flexcan.h b/drivers/net/can/flexcan/flexcan.h
index 025c3417031f..91402977780b 100644
--- a/drivers/net/can/flexcan/flexcan.h
+++ b/drivers/net/can/flexcan/flexcan.h
@@ -68,6 +68,8 @@
#define FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR BIT(15)
/* Device supports RX via FIFO */
#define FLEXCAN_QUIRK_SUPPORT_RX_FIFO BIT(16)
+/* auto enter stop mode to support wakeup */
+#define FLEXCAN_QUIRK_AUTO_STOP_MODE BIT(17)
struct flexcan_devtype_data {
u32 quirks; /* quirks needed for different IP cores */