diff options
author | Stephen Warren <swarren@nvidia.com> | 2016-05-12 12:07:39 -0600 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2016-05-31 09:53:56 -0700 |
commit | 01a97a11db75c1a006da7b40d8ba4a325f05960c (patch) | |
tree | f2c49594d96073ee1f2020edc037f520805c4607 /board/nvidia/nyan-big/nyan-big.c | |
parent | da6e2fab5db000e31187aa4c9495c244011792c1 (diff) |
ARM: tegra: use DT bindings for GPIO naming
There are currently many places that define the list of all Tegra GPIOs;
the DT binding header and custom Tegra-specific header file gpio.h. Fix
the redundancy by replacing everything with the DT binding header file.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board/nvidia/nyan-big/nyan-big.c')
-rw-r--r-- | board/nvidia/nyan-big/nyan-big.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/nvidia/nyan-big/nyan-big.c b/board/nvidia/nyan-big/nyan-big.c index ba96401890..8f68ae9fbe 100644 --- a/board/nvidia/nyan-big/nyan-big.c +++ b/board/nvidia/nyan-big/nyan-big.c @@ -36,8 +36,9 @@ void pinmux_init(void) int tegra_board_id(void) { - static const int vector[] = {GPIO_PQ3, GPIO_PT1, GPIO_PX1, - GPIO_PX4, -1}; + static const int vector[] = {TEGRA_GPIO(Q, 3), TEGRA_GPIO(T, 1), + TEGRA_GPIO(X, 1), TEGRA_GPIO(X, 4), + -1}; gpio_claim_vector(vector, "board_id%d"); return gpio_get_values_as_int(vector); |