Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5670071

Browse files
Eren PengMrChromebox
authored andcommitted
mb/google/trulo/var/kaladin: Disable eMMC GPIOs via firmware config
Disable eMMC related GPIO pins via firmware config on non-eMMC skus BUG=b:443202137 TEST=flash and boot successfully on all kaladin SKU Change-Id: Ia98702368208649fc0891417c7e8c6c3685d40be Signed-off-by: Eren Peng <[email protected]> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89069 Reviewed-by: Eric Lai <[email protected]> Tested-by: build bot (Jenkins) <[email protected]>
1 parent 93c147c commit 5670071

File tree

1 file changed

+31
-0
lines changed
  • src/mainboard/google/brya/variants/kaladin

1 file changed

+31
-0
lines changed

src/mainboard/google/brya/variants/kaladin/variant.c

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@ const char *get_wifi_sar_cbfs_filename(void)
1111
return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR));
1212
}
1313

14+
static const struct pad_config emmc_disable_pads[] = {
15+
/* I7 : EMMC_CMD */
16+
PAD_NC(GPP_I7, NONE),
17+
/* I8 : EMMC_D0 */
18+
PAD_NC(GPP_I8, NONE),
19+
/* I9 : EMMC_D1 */
20+
PAD_NC(GPP_I9, NONE),
21+
/* I10 : EMMC_D2 */
22+
PAD_NC(GPP_I10, NONE),
23+
/* I11 : EMMC_D3 */
24+
PAD_NC(GPP_I11, NONE),
25+
/* I12 : EMMC_D4 */
26+
PAD_NC(GPP_I12, NONE),
27+
/* I13 : EMMC_D5 */
28+
PAD_NC(GPP_I13, NONE),
29+
/* I14 : EMMC_D6 */
30+
PAD_NC(GPP_I14, NONE),
31+
/* I15 : EMMC_D7 */
32+
PAD_NC(GPP_I15, NONE),
33+
/* I16 : EMMC_RCLK */
34+
PAD_NC(GPP_I16, NONE),
35+
/* I17 : EMMC_CLK */
36+
PAD_NC(GPP_I17, NONE),
37+
/* I18 : EMMC_RST_L */
38+
PAD_NC(GPP_I18, NONE),
39+
};
40+
1441
static const struct pad_config ish_disable_pads[] = {
1542
/* B3 : ISH_IMU_INT_L ==>NC */
1643
PAD_NC(GPP_B3, NONE),
@@ -34,6 +61,10 @@ void fw_config_gpio_padbased_override(struct pad_config *padbased_table)
3461
printk(BIOS_INFO, "Disable ISH GPIO pins.\n");
3562
gpio_padbased_override(padbased_table, ish_disable_pads, ARRAY_SIZE(ish_disable_pads));
3663
}
64+
if (!fw_config_probe(FW_CONFIG(STORAGE, STORAGE_EMMC)) && !fw_config_probe(FW_CONFIG(STORAGE, STORAGE_UNKNOWN))) {
65+
printk(BIOS_INFO, "Disable eMMC GPIO pins.\n");
66+
gpio_padbased_override(padbased_table, emmc_disable_pads, ARRAY_SIZE(emmc_disable_pads));
67+
}
3768
}
3869

3970
void variant_configure_pads(void)

0 commit comments

Comments
 (0)