From 9e76090fe999a23d1952d894b5ef0e9794bd71e0 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 4 Aug 2014 15:38:42 -0500 Subject: 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: I4f6510c1b6fcdddddbe36ff738299b4439ffc597 Signed-off-by: Patrick Georgi Original-Commit-Id: 4c020c2125b9a2378a7faa17209d1b78e019c7df Original-Change-Id: I0471480e8658de9e534beb859a1f5027a961d73e Original-Signed-off-by: Aaron Durbin Original-Reviewed-on: https://chromium-review.googlesource.com/210908 Original-Reviewed-by: Furquan Shaikh Reviewed-on: http://review.coreboot.org/8907 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/soc/nvidia/tegra132/pinmux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc') 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) \ -- cgit v1.2.3