dt-bindings: firmware: add IMX_SC_R_CAN(x) macro for CAN
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Fri, 6 Nov 2020 10:56:26 +0000 (18:56 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 20 Nov 2020 11:06:45 +0000 (12:06 +0100)
Add IMX_SC_R_CAN(x) macro for CAN.

Suggested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Link: https://lore.kernel.org/r/20201106105627.31061-5-qiangqing.zhang@nxp.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/dt-bindings/firmware/imx/rsrc.h

index 54278d5..4388505 100644 (file)
 #define IMX_SC_R_CAN_0                 105
 #define IMX_SC_R_CAN_1                 106
 #define IMX_SC_R_CAN_2                 107
+#define IMX_SC_R_CAN(x)                        (IMX_SC_R_CAN_0 + (x))
 #define IMX_SC_R_DMA_1_CH0             108
 #define IMX_SC_R_DMA_1_CH1             109
 #define IMX_SC_R_DMA_1_CH2             110