From 7d8ccfb9b32cbffca1fb36cc775d399ace1b4cca Mon Sep 17 00:00:00 2001 From: Lin Huang Date: Mon, 22 Aug 2016 17:35:40 -0700 Subject: google/gru: pass the gpio power supply enable pin to bl31 We need to disable some regulators when the device goes into suspend. This means that we need to pass some gpios to bl31, and disable these gpios when bl31 runs the suspend function. BRANCH=None BUG=chrome-os-partner:56423 TEST=enter suspend, measure suspend gpio go to low [pg: also update arm-trusted-firmware to match] Change-Id: Ia0835e16f7e65de6dd24a892241f0af542ec5b4b Signed-off-by: Patrick Georgi Original-Commit-Id: 0f3332ef2136fd93f7faad579386ba5af003cf70 Original-Change-Id: I03d0407e0ef035823519a997534dcfea078a7ccd Original-Signed-off-by: Lin Huang Original-Reviewed-on: https://chromium-review.googlesource.com/374046 Original-Commit-Ready: Caesar Wang Original-Tested-by: Caesar Wang Original-Reviewed-by: Julius Werner Reviewed-on: https://review.coreboot.org/16719 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/google/gru/board.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mainboard/google/gru/board.h') diff --git a/src/mainboard/google/gru/board.h b/src/mainboard/google/gru/board.h index 382c462dfa..7880cca70d 100644 --- a/src/mainboard/google/gru/board.h +++ b/src/mainboard/google/gru/board.h @@ -25,6 +25,9 @@ #define GPIO_POWEROFF GPIO(1, A, 6) #define GPIO_RESET GPIO(0, B, 3) #define GPIO_WP GPIO(1, C, 2) +#define GPIO_P15V_EN GPIO(0, B, 2) +#define GPIO_P30V_EN GPIO(0, B, 4) +#define GPIO_P18V_AUDIO_PWREN GPIO(0, A, 2) void setup_chromeos_gpios(void); -- cgit v1.2.3