summaryrefslogtreecommitdiff
path: root/include/dt-bindings/pinctrl/dra.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dt-bindings/pinctrl/dra.h')
-rw-r--r--include/dt-bindings/pinctrl/dra.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dt-bindings/pinctrl/dra.h b/include/dt-bindings/pinctrl/dra.h
index 4379e29f0..5c75e8091 100644
--- a/include/dt-bindings/pinctrl/dra.h
+++ b/include/dt-bindings/pinctrl/dra.h
@@ -67,5 +67,11 @@
#define PIN_INPUT_PULLUP (PULL_ENA | INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (PULL_ENA | INPUT_EN)
+/*
+ * Macro to allow using the absolute physical address instead of the
+ * padconf registers instead of the offset from padconf base.
+ */
+#define DRA7XX_CORE_IOPAD(pa, val) (((pa) & 0xffff) - 0x3400) (val)
+
#endif