diff mbox series

[v2,2/6] ARM: dts: am33xx: Added AM33XX_PADCONF macro

Message ID 20190402160949.14190-3-cquast@hanoverdisplays.com (mailing list archive)
State New, archived
Headers show
Series ARM: dts: am335x: Replace numeric pinmux address with macro defines | expand

Commit Message

Christina Quast April 2, 2019, 4:09 p.m. UTC
AM33XX_PADCONF takes three instead of two parameters, to make
future changes to #pinctrl-cells easier.

For old boards which are not mainlined, we left the AM33XX_IOPAD
macro.

Signed-off-by: Christina Quast <cquast@hanoverdisplays.com>
---
 include/dt-bindings/pinctrl/omap.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Rob Herring April 6, 2019, 6:06 a.m. UTC | #1
On Tue,  2 Apr 2019 18:09:47 +0200, Christina Quast wrote:
> AM33XX_PADCONF takes three instead of two parameters, to make
> future changes to #pinctrl-cells easier.
> 
> For old boards which are not mainlined, we left the AM33XX_IOPAD
> macro.
> 
> Signed-off-by: Christina Quast <cquast@hanoverdisplays.com>
> ---
>  include/dt-bindings/pinctrl/omap.h | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/include/dt-bindings/pinctrl/omap.h b/include/dt-bindings/pinctrl/omap.h
index 49b5dea2b388..625718042413 100644
--- a/include/dt-bindings/pinctrl/omap.h
+++ b/include/dt-bindings/pinctrl/omap.h
@@ -65,6 +65,7 @@ 
 #define DM814X_IOPAD(pa, val)		OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
 #define DM816X_IOPAD(pa, val)		OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
 #define AM33XX_IOPAD(pa, val)		OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
+#define AM33XX_PADCONF(pa, dir, mux)	OMAP_IOPAD_OFFSET((pa), 0x0800) ((dir) | (mux))
 
 /*
  * Macros to allow using the offset from the padconf physical address