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


From: Christina Quast <cquast@...>

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@...>
Reviewed-by: Rob Herring <robh@...>
Signed-off-by: Tony Lindgren <tony@...>
[Johnson: Add SPDX License]
Signed-off-by: Johnson Chen <johnsonch.chen@...>
include/dt-bindings/pinctrl/omap.h | 2 ++
1 file changed, 2 insertions(+)

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)


Join {cip-dev@lists.cip-project.org to automatically receive all group messages.