mb/google/guybrush: Update GPIOs settings
- The WWAN card was being disabled later than desired. - The SD card was never being placed into reset on BoardID 1. - Enable Touchscreen power - Enable PCIe_RST1 at the same points as PCIe_RST - Remove Redundant Bootblock settings BUG=b:193036827 TEST=Build & Boot, look at GPIO states through boot process Signed-off-by: Martin Roth <martinroth@chromium.org> Change-Id: I5431da755d98e4ad0b300d01cac562d61db0bc08 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56498 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt Papageorge <matthewpapa07@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
parent
3c3d2cf77f
commit
8baa9dfe1e
|
@ -58,7 +58,7 @@ static const struct soc_amd_gpio base_gpio_table[] = {
|
||||||
/* PCIE_RST0_L */
|
/* PCIE_RST0_L */
|
||||||
PAD_NFO(GPIO_26, PCIE_RST_L, HIGH),
|
PAD_NFO(GPIO_26, PCIE_RST_L, HIGH),
|
||||||
/* PCIE_RST1_L */
|
/* PCIE_RST1_L */
|
||||||
PAD_NF(GPIO_27, PCIE_RST1_L, PULL_NONE),
|
PAD_NFO(GPIO_27, PCIE_RST1_L, HIGH),
|
||||||
/* GPIO_28: Not available */
|
/* GPIO_28: Not available */
|
||||||
/* WLAN_AUX_RESET (Active HIGH)*/
|
/* WLAN_AUX_RESET (Active HIGH)*/
|
||||||
PAD_GPO(GPIO_29, LOW),
|
PAD_GPO(GPIO_29, LOW),
|
||||||
|
@ -78,7 +78,7 @@ static const struct soc_amd_gpio base_gpio_table[] = {
|
||||||
/* SOC_BIOS_WP_L */
|
/* SOC_BIOS_WP_L */
|
||||||
PAD_GPI(GPIO_67, PULL_NONE),
|
PAD_GPI(GPIO_67, PULL_NONE),
|
||||||
/* EN_PP3300_TCHSCR */
|
/* EN_PP3300_TCHSCR */
|
||||||
PAD_GPO(GPIO_68, LOW),
|
PAD_GPO(GPIO_68, HIGH),
|
||||||
/* SD_AUX_RESET_L */
|
/* SD_AUX_RESET_L */
|
||||||
PAD_GPO(GPIO_69, HIGH),
|
PAD_GPO(GPIO_69, HIGH),
|
||||||
/* Unused TP27 */
|
/* Unused TP27 */
|
||||||
|
@ -167,6 +167,7 @@ static const struct soc_amd_gpio base_gpio_table[] = {
|
||||||
|
|
||||||
/* Early GPIO configuration */
|
/* Early GPIO configuration */
|
||||||
static const struct soc_amd_gpio early_gpio_table[] = {
|
static const struct soc_amd_gpio early_gpio_table[] = {
|
||||||
|
/* Assert all AUX reset lines */
|
||||||
/* WWAN_AUX_RESET_L */
|
/* WWAN_AUX_RESET_L */
|
||||||
PAD_GPO(GPIO_18, LOW),
|
PAD_GPO(GPIO_18, LOW),
|
||||||
/* WLAN_AUX_RESET (ACTIVE HIGH) */
|
/* WLAN_AUX_RESET (ACTIVE HIGH) */
|
||||||
|
@ -177,8 +178,12 @@ static const struct soc_amd_gpio early_gpio_table[] = {
|
||||||
PAD_GPO(GPIO_69, LOW),
|
PAD_GPO(GPIO_69, LOW),
|
||||||
/* Guybrush BID>1: Unused TP27; BID==1: SD_AUX_RESET_L */
|
/* Guybrush BID>1: Unused TP27; BID==1: SD_AUX_RESET_L */
|
||||||
PAD_NC(GPIO_70),
|
PAD_NC(GPIO_70),
|
||||||
|
|
||||||
|
/* Deassert PCIe Reset lines */
|
||||||
/* PCIE_RST0_L */
|
/* PCIE_RST0_L */
|
||||||
PAD_NFO(GPIO_26, PCIE_RST_L, HIGH),
|
PAD_NFO(GPIO_26, PCIE_RST_L, HIGH),
|
||||||
|
/* PCIE_RST1_L */
|
||||||
|
PAD_NFO(GPIO_27, PCIE_RST1_L, HIGH),
|
||||||
|
|
||||||
/* Power on WLAN & WWAN */
|
/* Power on WLAN & WWAN */
|
||||||
/* EN_PP3300_WLAN */
|
/* EN_PP3300_WLAN */
|
||||||
|
@ -239,7 +244,7 @@ static const struct soc_amd_gpio early_gpio_table[] = {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const struct soc_amd_gpio bootblock_gpio_table[] = {
|
static const struct soc_amd_gpio bootblock_gpio_table[] = {
|
||||||
/* Enable WWAN & WLAN */
|
/* Enable WWAN & WLAN power, Deassert WWAN reset */
|
||||||
/* EN_PWR_WWAN_X */
|
/* EN_PWR_WWAN_X */
|
||||||
PAD_GPO(GPIO_8, HIGH),
|
PAD_GPO(GPIO_8, HIGH),
|
||||||
/* WWAN_RST_L */
|
/* WWAN_RST_L */
|
||||||
|
@ -257,7 +262,15 @@ static const struct soc_amd_gpio sleep_gpio_table[] = {
|
||||||
|
|
||||||
/* PCIE_RST needs to be brought high before FSP-M runs */
|
/* PCIE_RST needs to be brought high before FSP-M runs */
|
||||||
static const struct soc_amd_gpio pcie_gpio_table[] = {
|
static const struct soc_amd_gpio pcie_gpio_table[] = {
|
||||||
/* Disable all AUX_RESET lines & PCIE_RST */
|
/* Allow WWAN power to be overridden by platform */
|
||||||
|
/* EN_PWR_WWAN_X */
|
||||||
|
PAD_GPO(GPIO_8, HIGH),
|
||||||
|
/* WWAN_RST_L */
|
||||||
|
PAD_GPO(GPIO_24, HIGH),
|
||||||
|
/* WWAN_DISABLE */
|
||||||
|
PAD_GPO(GPIO_85, LOW),
|
||||||
|
|
||||||
|
/* Deassert all AUX_RESET lines & PCIE_RST */
|
||||||
/* WWAN_AUX_RESET_L */
|
/* WWAN_AUX_RESET_L */
|
||||||
PAD_GPO(GPIO_18, HIGH),
|
PAD_GPO(GPIO_18, HIGH),
|
||||||
/* WLAN_AUX_RESET (ACTIVE HIGH) */
|
/* WLAN_AUX_RESET (ACTIVE HIGH) */
|
||||||
|
|
|
@ -23,21 +23,29 @@ static const struct soc_amd_gpio bid1_gpio_table[] = {
|
||||||
/* Use AUX Reset lines instead of PCIE_RST for Board Version 1 */
|
/* Use AUX Reset lines instead of PCIE_RST for Board Version 1 */
|
||||||
static const struct soc_amd_gpio bid1_early_gpio_table[] = {
|
static const struct soc_amd_gpio bid1_early_gpio_table[] = {
|
||||||
/* SD_AUX_RESET_L */
|
/* SD_AUX_RESET_L */
|
||||||
PAD_GPO(GPIO_70, HIGH),
|
PAD_GPO(GPIO_70, LOW),
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This table is used by guybrush variant with board version < 2. */
|
/* This table is used by guybrush variant with board version < 2. */
|
||||||
static const struct soc_amd_gpio bid1_pcie_gpio_table[] = {
|
static const struct soc_amd_gpio bid1_pcie_gpio_table[] = {
|
||||||
|
/* EN_PWR_WWAN_X */
|
||||||
|
PAD_GPO(GPIO_8, LOW),
|
||||||
|
/* WWAN_RST_L */
|
||||||
|
PAD_GPO(GPIO_24, LOW),
|
||||||
|
/* WWAN_DISABLE */
|
||||||
|
PAD_GPO(GPIO_85, HIGH),
|
||||||
/* SD_AUX_RESET_L */
|
/* SD_AUX_RESET_L */
|
||||||
PAD_GPO(GPIO_70, HIGH),
|
PAD_GPO(GPIO_70, HIGH),
|
||||||
};
|
};
|
||||||
|
|
||||||
/* WWAN on USB or no WWAN - Disable the WWAN power line */
|
/* This table is used by guybrush variant with board version >= 2. */
|
||||||
static const struct soc_amd_gpio bootblock_gpio_table_pcie_wwan[] = {
|
static const struct soc_amd_gpio bid2_pcie_gpio_table[] = {
|
||||||
/* EN_PWR_WWAN_X */
|
/* EN_PWR_WWAN_X */
|
||||||
PAD_GPO(GPIO_8, LOW),
|
PAD_GPO(GPIO_8, LOW),
|
||||||
/* WLAN_DISABLE */
|
/* WWAN_RST_L */
|
||||||
PAD_GPO(GPIO_130, LOW),
|
PAD_GPO(GPIO_24, LOW),
|
||||||
|
/* WWAN_DISABLE */
|
||||||
|
PAD_GPO(GPIO_85, HIGH),
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct soc_amd_gpio *variant_override_gpio_table(size_t *size)
|
const struct soc_amd_gpio *variant_override_gpio_table(size_t *size)
|
||||||
|
@ -76,14 +84,6 @@ const struct soc_amd_gpio *variant_pcie_override_gpio_table(size_t *size)
|
||||||
return bid1_pcie_gpio_table;
|
return bid1_pcie_gpio_table;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
*size = ARRAY_SIZE(bid2_pcie_gpio_table);
|
||||||
}
|
return bid2_pcie_gpio_table;
|
||||||
const struct soc_amd_gpio *variant_bootblock_override_gpio_table(size_t *size)
|
|
||||||
{
|
|
||||||
if (variant_has_pcie_wwan()) {
|
|
||||||
*size = ARRAY_SIZE(bootblock_gpio_table_pcie_wwan);
|
|
||||||
return bootblock_gpio_table_pcie_wwan;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue