summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra124/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/nvidia/tegra124/gpio.h')
-rw-r--r--src/soc/nvidia/tegra124/gpio.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/soc/nvidia/tegra124/gpio.h b/src/soc/nvidia/tegra124/gpio.h
index 83d727d979..f7d1c3006a 100644
--- a/src/soc/nvidia/tegra124/gpio.h
+++ b/src/soc/nvidia/tegra124/gpio.h
@@ -23,11 +23,14 @@
#include <soc/nvidia/tegra/gpio.h>
#include <stdint.h>
+#include "pinmux.h" /* for pinmux constants in GPIO macro */
+
/* GPIO index constants. */
#define GPIO_PORT_CONSTANTS(port) \
- GPIO_##port##0, GPIO_##port##1, GPIO_##port##2, GPIO_##port##3, \
- GPIO_##port##4, GPIO_##port##5, GPIO_##port##6, GPIO_##port##7
+ GPIO_##port##0_INDEX, GPIO_##port##1_INDEX, GPIO_##port##2_INDEX, \
+ GPIO_##port##3_INDEX, GPIO_##port##4_INDEX, GPIO_##port##5_INDEX, \
+ GPIO_##port##6_INDEX, GPIO_##port##7_INDEX
enum {
GPIO_PORT_CONSTANTS(A),