mb/google/zork: Drop unnecessary PULL_UPs for trembyle reference

This change drops internal pulls for trembyle reference configured on pads
which already have external pull-ups in hardware.

GPIO_0(PWR_BTN_L): Pulled up to PP3300_A
GPIO_2(WAKE_L): Pulled up to PP3300_A
GPIO_10: Unused. Changed to PAD_NC.
GPIO_12(USI_INT_ODL): Pulled up to PP3300_A
GPIO_16(USB_OC0_L): Pulled up to PP3300_A
GPIO_17(USB_OC1_L): Pulled up to PP3300_A
GPIO_21(EMMC_CMD): Pulled up to PP3300_A
GPIO_22(EC_FCH_SCI_ODL): Pulled up to PP3300_A
GPIO_31(EC_AP_INT_ODL): Pulled up to PP1800_A
GPIO_90: Unused. Changed to PAD_NC.
GPIO_113(I2C2_SCL): Pulled up to PP3300_S0
GPIO_114(I2C2_SDA): Pulled up to PP3300_S0
GPIO_129(KBRST_L): Pulled up to PP1800_S0
GPIO_130(EC_IN_RW_OD): Pulled up to PP3300_S0
GPIO_92(CLK_REQ0_L): Pulled up to PP3300_S0
GPIO_115(CLK_REQ1_L): Pulled up to PP3300_S0
GPIO_132(CLK_REQ4_L): Pulled up to PP3300_S0

BUG=b:154351731

Change-Id: Id84b801e019eede7ef543c24aac968f3ef99b3fd
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43526
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Furquan Shaikh 2020-07-16 11:26:10 -07:00 committed by Felix Held
parent 12a4d05b9e
commit 7571110d78
1 changed files with 17 additions and 18 deletions

View File

@ -10,13 +10,12 @@
#include <variant/gpio.h> #include <variant/gpio.h>
static const struct soc_amd_gpio gpio_set_stage_ram[] = { static const struct soc_amd_gpio gpio_set_stage_ram[] = {
/* PWR_BTN_L */ /* PWR_BTN_L */
PAD_NF(GPIO_0, PWR_BTN_L, PULL_UP), PAD_NF(GPIO_0, PWR_BTN_L, PULL_NONE),
/* SYS_RESET_L */ /* SYS_RESET_L */
PAD_NF(GPIO_1, SYS_RESET_L, PULL_NONE), PAD_NF(GPIO_1, SYS_RESET_L, PULL_NONE),
/* PCIE_WAKE_L */ /* PCIE_WAKE_L */
PAD_NF(GPIO_2, WAKE_L, PULL_UP), PAD_NF(GPIO_2, WAKE_L, PULL_NONE),
/* PEN_DETECT_ODL */ /* PEN_DETECT_ODL */
PAD_WAKE(GPIO_4, PULL_NONE, EDGE_HIGH, S3), PAD_WAKE(GPIO_4, PULL_NONE, EDGE_HIGH, S3),
/* PEN_POWER_EN - Enabled*/ /* PEN_POWER_EN - Enabled*/
@ -30,31 +29,31 @@ static const struct soc_amd_gpio gpio_set_stage_ram[] = {
/* TOUCHPAD_INT_ODL */ /* TOUCHPAD_INT_ODL */
PAD_SCI(GPIO_9, PULL_NONE, EDGE_LOW), PAD_SCI(GPIO_9, PULL_NONE, EDGE_LOW),
/* S0iX SLP - (unused - goes to EC & FPMCU */ /* S0iX SLP - (unused - goes to EC & FPMCU */
PAD_GPI(GPIO_10, PULL_UP), PAD_NC(GPIO_10),
/* FPMCU_RST_L */ /* FPMCU_RST_L */
PAD_GPO(GPIO_11, HIGH), PAD_GPO(GPIO_11, HIGH),
/* USI_INT_ODL */ /* USI_INT_ODL */
PAD_GPI(GPIO_12, PULL_UP), PAD_GPI(GPIO_12, PULL_NONE),
/* EN_PWR_TOUCHPAD_PS2 */ /* EN_PWR_TOUCHPAD_PS2 */
PAD_GPO(GPIO_13, HIGH), PAD_GPO(GPIO_13, HIGH),
/* BT_DISABLE */ /* BT_DISABLE */
PAD_GPO(GPIO_14, LOW), PAD_GPO(GPIO_14, LOW),
/* USB_OC0_L - USB C0 + USB A0 */ /* USB_OC0_L - USB C0 + USB A0 */
PAD_NF(GPIO_16, USB_OC0_L, PULL_UP), PAD_NF(GPIO_16, USB_OC0_L, PULL_NONE),
/* USB_OC1_L - USB C1 + USB A1 */ /* USB_OC1_L - USB C1 + USB A1 */
PAD_NF(GPIO_17, USB_OC1_L, PULL_UP), PAD_NF(GPIO_17, USB_OC1_L, PULL_NONE),
/* WIFI_DISABLE */ /* WIFI_DISABLE */
PAD_GPO(GPIO_18, LOW), PAD_GPO(GPIO_18, LOW),
/* EMMC_CMD */ /* EMMC_CMD */
PAD_NF(GPIO_21, EMMC_CMD, PULL_UP), PAD_NF(GPIO_21, EMMC_CMD, PULL_NONE),
/* EC_FCH_SCI_ODL */ /* EC_FCH_SCI_ODL */
PAD_SCI(GPIO_22, PULL_UP, EDGE_LOW), PAD_SCI(GPIO_22, PULL_NONE, EDGE_LOW),
/* AC_PRES */ /* AC_PRES */
PAD_NF(GPIO_23, AC_PRES, PULL_UP), PAD_NF(GPIO_23, AC_PRES, PULL_UP),
/* EC_FCH_WAKE_L */ /* EC_FCH_WAKE_L */
PAD_SCI(GPIO_24, PULL_NONE, EDGE_LOW), PAD_SCI(GPIO_24, PULL_NONE, EDGE_LOW),
/* EC_AP_INT_ODL (Sensor Framesync) */ /* EC_AP_INT_ODL (Sensor Framesync) */
PAD_GPI(GPIO_31, PULL_UP), PAD_GPI(GPIO_31, PULL_NONE),
/* EN_PWR_FP */ /* EN_PWR_FP */
PAD_GPO(GPIO_32, HIGH), PAD_GPO(GPIO_32, HIGH),
/* DMIC SEL */ /* DMIC SEL */
@ -84,7 +83,7 @@ static const struct soc_amd_gpio gpio_set_stage_ram[] = {
/* EN_DEV_BEEP_L */ /* EN_DEV_BEEP_L */
PAD_GPO(GPIO_89, HIGH), PAD_GPO(GPIO_89, HIGH),
/* Testpoint */ /* Testpoint */
PAD_GPI(GPIO_90, PULL_UP), PAD_NC(GPIO_90),
/* EN_SPKR TODO: Verify driver enables this (add to ACPI) */ /* EN_SPKR TODO: Verify driver enables this (add to ACPI) */
PAD_GPO(GPIO_91, LOW), PAD_GPO(GPIO_91, LOW),
/* EMMC_DATA0 */ /* EMMC_DATA0 */
@ -98,13 +97,13 @@ static const struct soc_amd_gpio gpio_set_stage_ram[] = {
/* EMMC_DS */ /* EMMC_DS */
PAD_NF(GPIO_109, EMMC_DS, PULL_NONE), PAD_NF(GPIO_109, EMMC_DS, PULL_NONE),
/* I2C2_SCL - USI/Touchpad */ /* I2C2_SCL - USI/Touchpad */
PAD_NF(GPIO_113, I2C2_SCL, PULL_UP), PAD_NF(GPIO_113, I2C2_SCL, PULL_NONE),
/* I2C2_SDA - USI/Touchpad */ /* I2C2_SDA - USI/Touchpad */
PAD_NF(GPIO_114, I2C2_SDA, PULL_UP), PAD_NF(GPIO_114, I2C2_SDA, PULL_NONE),
/* KBRST_L */ /* KBRST_L */
PAD_NF(GPIO_129, KBRST_L, PULL_UP), PAD_NF(GPIO_129, KBRST_L, PULL_NONE),
/* EC_IN_RW_OD */ /* EC_IN_RW_OD */
PAD_GPI(GPIO_130, PULL_UP), PAD_GPI(GPIO_130, PULL_NONE),
/* DEV_BEEP_CODEC_IN (Dev beep Data out) */ /* DEV_BEEP_CODEC_IN (Dev beep Data out) */
PAD_GPI(GPIO_135, PULL_NONE), PAD_GPI(GPIO_135, PULL_NONE),
/* BIOS_FLASH_WP_ODL */ /* BIOS_FLASH_WP_ODL */
@ -229,11 +228,11 @@ __weak void variant_pcie_gpio_configure(void)
/* NVME_AUX_RESET_L */ /* NVME_AUX_RESET_L */
PAD_GPO(GPIO_40, HIGH), PAD_GPO(GPIO_40, HIGH),
/* CLK_REQ0_L - WIFI */ /* CLK_REQ0_L - WIFI */
PAD_NF(GPIO_92, CLK_REQ0_L, PULL_UP), PAD_NF(GPIO_92, CLK_REQ0_L, PULL_NONE),
/* CLK_REQ1_L - SD Card */ /* CLK_REQ1_L - SD Card */
PAD_NF(GPIO_115, CLK_REQ1_L, PULL_UP), PAD_NF(GPIO_115, CLK_REQ1_L, PULL_NONE),
/* CLK_REQ4_L - SSD */ /* CLK_REQ4_L - SSD */
PAD_NF(GPIO_132, CLK_REQ4_L, PULL_UP), PAD_NF(GPIO_132, CLK_REQ4_L, PULL_NONE),
/* SD_AUX_RESET_L */ /* SD_AUX_RESET_L */
PAD_GPO(GPIO_142, HIGH), PAD_GPO(GPIO_142, HIGH),
}; };