From 4c020c2125b9a2378a7faa17209d1b78e019c7df Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 4 Aug 2014 15:38:42 -0500 Subject: [PATCH] tegra132: fix gpio constants I erroneously added GPIO_NONE_INDEX at the beginning of the enum block effectively putting every GPIO index off by 1. Instead, move it to the end. BUG=chrome-os-partner:29981 BRANCH=None TEST=Built and ran through to depthcharge on rush. Also printed out banks, port, and bit offsets to validate. Change-Id: I0471480e8658de9e534beb859a1f5027a961d73e Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/210908 Reviewed-by: Furquan Shaikh --- src/soc/nvidia/tegra132/pinmux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/nvidia/tegra132/pinmux.h b/src/soc/nvidia/tegra132/pinmux.h index 4f69dcee8b..f3bab1da01 100644 --- a/src/soc/nvidia/tegra132/pinmux.h +++ b/src/soc/nvidia/tegra132/pinmux.h @@ -32,7 +32,6 @@ GPIO_##port##6_INDEX, GPIO_##port##7_INDEX enum { - GPIO_NONE_INDEX = 0, GPIO_PORT_CONSTANTS(A), GPIO_PORT_CONSTANTS(B), GPIO_PORT_CONSTANTS(C), @@ -64,7 +63,8 @@ enum { GPIO_PORT_CONSTANTS(CC), GPIO_PORT_CONSTANTS(DD), GPIO_PORT_CONSTANTS(EE), - GPIO_PORT_CONSTANTS(FF) + GPIO_PORT_CONSTANTS(FF), + GPIO_NONE_INDEX = 0, }; #define PINMUX_CONSTANTS_GPIO(name, gpio) \