From b81a5bd15a2979ee009b9f7bc4a39a304e6a759a Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 25 Nov 2013 17:53:38 -0800 Subject: [PATCH] nyan: Set up the SOC and TPM reset pin. This pin is active low and resets the SOC and TPM. It leaves the memory alone so that panic info can be discovered by the kernel once the reboot is complete. BUG=chrome-os-partner:24098 TEST=With a corresponding change in depthcharge, verified that depthcharge can reboot the SOC using this GPIO. BRANCH=None Change-Id: I101dbb712c458b88213e2254fd1893a1284d1491 Signed-off-by: Gabe Black Reviewed-on: https://chromium-review.googlesource.com/177965 Reviewed-by: Julius Werner Tested-by: Gabe Black Commit-Queue: Gabe Black --- src/mainboard/google/nyan/mainboard.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mainboard/google/nyan/mainboard.c b/src/mainboard/google/nyan/mainboard.c index 1116c001f1..2e19f2ccc0 100644 --- a/src/mainboard/google/nyan/mainboard.c +++ b/src/mainboard/google/nyan/mainboard.c @@ -82,6 +82,9 @@ static void setup_pinmux(void) // EC in RW. gpio_input_pullup(GPIO(U4)); + // SOC and TPM reset GPIO, active low. + gpio_output(GPIO(I5), 1); + // SPI1 MOSI pinmux_set_config(PINMUX_ULPI_CLK_INDEX, PINMUX_ULPI_CLK_FUNC_SPI1 | PINMUX_PULL_UP |