2020-10-21 12:36:54

by Joakim Zhang

[permalink] [raw]
Subject: [PATCH V4 5/6] dt-bindings: firmware: add IMX_SC_R_CAN(x) macro for CAN

Add IMX_SC_R_CAN(x) macro for CAN.

Suggested-by: Marc Kleine-Budde <[email protected]>
Signed-off-by: Joakim Zhang <[email protected]>
---
include/dt-bindings/firmware/imx/rsrc.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/dt-bindings/firmware/imx/rsrc.h b/include/dt-bindings/firmware/imx/rsrc.h
index 54278d5c1856..43885056557c 100644
--- a/include/dt-bindings/firmware/imx/rsrc.h
+++ b/include/dt-bindings/firmware/imx/rsrc.h
@@ -111,6 +111,7 @@
#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
--
2.17.1


2020-11-02 23:31:26

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH V4 5/6] dt-bindings: firmware: add IMX_SC_R_CAN(x) macro for CAN

On Wed, Oct 21, 2020 at 01:24:36PM +0800, Joakim Zhang wrote:
> Add IMX_SC_R_CAN(x) macro for CAN.
>
> Suggested-by: Marc Kleine-Budde <[email protected]>
> Signed-off-by: Joakim Zhang <[email protected]>

Acked-by: Shawn Guo <[email protected]>

> ---
> include/dt-bindings/firmware/imx/rsrc.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/dt-bindings/firmware/imx/rsrc.h b/include/dt-bindings/firmware/imx/rsrc.h
> index 54278d5c1856..43885056557c 100644
> --- a/include/dt-bindings/firmware/imx/rsrc.h
> +++ b/include/dt-bindings/firmware/imx/rsrc.h
> @@ -111,6 +111,7 @@
> #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
> --
> 2.17.1
>