diff mbox series

[4.4.y-cip,2/3] ARM: dts: am33xx: Added AM33XX_PADCONF macro

Message ID HK2PR01MB3281EBB9EF88BA737213BBD5FA850@HK2PR01MB3281.apcprd01.prod.exchangelabs.com (mailing list archive)
State Accepted
Headers show
Series ARM: dts: am335x: Replace numeric pinmux address with macro defines | expand

Commit Message

Johnson CH Chen (陳昭勳) June 8, 2020, 10:33 a.m. UTC
From: Christina Quast <cquast@hanoverdisplays.com>

commit f1ff9be7652b716c7eea67c9ca795027d911f148 upstream.

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

Signed-off-by: Christina Quast <cquast@hanoverdisplays.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
[Johnson: Add SPDX License]
Signed-off-by: Johnson Chen <johnsonch.chen@moxa.com>
 include/dt-bindings/pinctrl/omap.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/include/dt-bindings/pinctrl/omap.h b/include/dt-bindings/pinctrl/omap.h
index 0d4fe32b3ae2..f0d0e757fd9c 100644
--- a/include/dt-bindings/pinctrl/omap.h
+++ b/include/dt-bindings/pinctrl/omap.h
@@ -1,3 +1,4 @@ 
+/* SPDX-License-Identifier: GPL-2.0 */
  * This header provides constants for OMAP pinctrl bindings.
@@ -63,6 +64,7 @@ 
 #define OMAP3_WKUP_IOPAD(pa, val)	OMAP_IOPAD_OFFSET((pa), 0x2a00) (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))
 #define AM4372_IOPAD(pa, val)		OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
 #define DRA7XX_CORE_IOPAD(pa, val)	OMAP_IOPAD_OFFSET((pa), 0x3400) (val)