From 20ffe1944ceb99c2ff11ea20f3343a8adb137639 Mon Sep 17 00:00:00 2001 From: Archana Patni Date: Thu, 8 Oct 2015 01:43:47 +0530 Subject: google/glados: csme: program sml gpios for csme power gating For SMT controllers to power gate, all SMT/SMS clock, data and alert signals should be inactive. The SML0 blocks are not used for any functional purposes and are not configured in the GPIO tables. SMT hardware will not allow the blocks to be power gated in this scenario. The SML* pins are now configured as GPIOs - input and deep. With this change, the SMT blocks are properly power gating. BRANCH=none BUG=chrome-os-partner:45618 TEST=build for Glados. Change-Id: Ie5406f2a1e0c485ac1290e2154755085fa3bb7b9 Signed-off-by: Patrick Georgi Original-Commit-Id: 5b3fe3c2ddea4c5daedb04078b24cff14efa49d5 Original-Change-Id: I8dcc0bfc121e612a174e6fe3152650d0fcd68f39 Original-Signed-off-by: Archana Patni Original-Signed-off-by: Subramony Sesha Original-Reviewed-on: https://chromium-review.googlesource.com/306481 Original-Reviewed-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/12160 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/mainboard/google/glados/gpio.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/glados/gpio.h b/src/mainboard/google/glados/gpio.h index c3d0835ffb..0d335c5d42 100644 --- a/src/mainboard/google/glados/gpio.h +++ b/src/mainboard/google/glados/gpio.h @@ -100,15 +100,15 @@ static const struct pad_config gpio_table[] = { /* GSPI1_CLK */ /* GPP_B20 */ /* GSPI1_MISO */ /* GPP_B21 */ /* GSPI1_MOSI */ /* GPP_B22 */ -/* SM1ALERT# */ /* GPP_B23 */ +/* SM1ALERT# */ PAD_CFG_GPO(GPP_B23, 0, DEEP), /* SMBCLK */ PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1), /* XDP */ /* SMBDATA */ PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1), /* XDP */ /* SMBALERT# */ /* GPP_C2 */ -/* SML0CLK */ /* GPP_C3 */ -/* SML0DATA */ /* GPP_C4 */ -/* SML0ALERT# */ /* GPP_C5 */ +/* SML0CLK */ PAD_CFG_GPI(GPP_C3, NONE, DEEP), +/* SML0DATA */ PAD_CFG_GPI(GPP_C4, NONE, DEEP), +/* SML0ALERT# */ PAD_CFG_GPO(GPP_C5, 0, DEEP), /* SM1CLK */ PAD_CFG_GPI(GPP_C6, 20K_PU, DEEP), /* EC_IN_RW */ -/* SM1DATA */ /* GPP_C7 */ +/* SM1DATA */ PAD_CFG_GPI(GPP_C7, NONE, DEEP), /* UART0_RXD */ /* GPP_C8 */ /* UART0_TXD */ /* GPP_C9 */ /* UART0_RTS# */ /* GPP_C10 */ -- cgit v1.2.3