0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef _DT_BINDINGS_GPIO_TEGRA186_GPIO_H
0012 #define _DT_BINDINGS_GPIO_TEGRA186_GPIO_H
0013
0014 #include <dt-bindings/gpio/gpio.h>
0015
0016
0017 #define TEGRA186_MAIN_GPIO_PORT_A 0
0018 #define TEGRA186_MAIN_GPIO_PORT_B 1
0019 #define TEGRA186_MAIN_GPIO_PORT_C 2
0020 #define TEGRA186_MAIN_GPIO_PORT_D 3
0021 #define TEGRA186_MAIN_GPIO_PORT_E 4
0022 #define TEGRA186_MAIN_GPIO_PORT_F 5
0023 #define TEGRA186_MAIN_GPIO_PORT_G 6
0024 #define TEGRA186_MAIN_GPIO_PORT_H 7
0025 #define TEGRA186_MAIN_GPIO_PORT_I 8
0026 #define TEGRA186_MAIN_GPIO_PORT_J 9
0027 #define TEGRA186_MAIN_GPIO_PORT_K 10
0028 #define TEGRA186_MAIN_GPIO_PORT_L 11
0029 #define TEGRA186_MAIN_GPIO_PORT_M 12
0030 #define TEGRA186_MAIN_GPIO_PORT_N 13
0031 #define TEGRA186_MAIN_GPIO_PORT_O 14
0032 #define TEGRA186_MAIN_GPIO_PORT_P 15
0033 #define TEGRA186_MAIN_GPIO_PORT_Q 16
0034 #define TEGRA186_MAIN_GPIO_PORT_R 17
0035 #define TEGRA186_MAIN_GPIO_PORT_T 18
0036 #define TEGRA186_MAIN_GPIO_PORT_X 19
0037 #define TEGRA186_MAIN_GPIO_PORT_Y 20
0038 #define TEGRA186_MAIN_GPIO_PORT_BB 21
0039 #define TEGRA186_MAIN_GPIO_PORT_CC 22
0040
0041 #define TEGRA186_MAIN_GPIO(port, offset) \
0042 ((TEGRA186_MAIN_GPIO_PORT_##port * 8) + offset)
0043
0044
0045 #define TEGRA186_AON_GPIO_PORT_S 0
0046 #define TEGRA186_AON_GPIO_PORT_U 1
0047 #define TEGRA186_AON_GPIO_PORT_V 2
0048 #define TEGRA186_AON_GPIO_PORT_W 3
0049 #define TEGRA186_AON_GPIO_PORT_Z 4
0050 #define TEGRA186_AON_GPIO_PORT_AA 5
0051 #define TEGRA186_AON_GPIO_PORT_EE 6
0052 #define TEGRA186_AON_GPIO_PORT_FF 7
0053
0054 #define TEGRA186_AON_GPIO(port, offset) \
0055 ((TEGRA186_AON_GPIO_PORT_##port * 8) + offset)
0056
0057 #endif