summaryrefslogtreecommitdiffstats
path: root/dts/include/dt-bindings/pinctrl/am43xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'dts/include/dt-bindings/pinctrl/am43xx.h')
-rw-r--r--dts/include/dt-bindings/pinctrl/am43xx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dts/include/dt-bindings/pinctrl/am43xx.h b/dts/include/dt-bindings/pinctrl/am43xx.h
index 774dc1e843..344bd1eb33 100644
--- a/dts/include/dt-bindings/pinctrl/am43xx.h
+++ b/dts/include/dt-bindings/pinctrl/am43xx.h
@@ -31,5 +31,11 @@
#define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (INPUT_EN)
+/*
+ * Macro to allow using the absolute physical address instead of the
+ * padconf registers instead of the offset from padconf base.
+ */
+#define AM4372_IOPAD(pa, val) (((pa) & 0xffff) - 0x0800) (val)
+
#endif