summaryrefslogtreecommitdiff
path: root/src/mainboard/google/guybrush/variants/baseboard/helpers.c
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@chromium.org>2021-10-25 22:50:33 -0600
committerRaul Rangel <rrangel@chromium.org>2021-10-27 22:03:42 +0000
commit750abb1fe7ffcc9e90c60617cd42bb108a82168b (patch)
treec672063734618f21f5b5c38695c8974d64967cb3 /src/mainboard/google/guybrush/variants/baseboard/helpers.c
parent1bdf09d91aebbd4aca80fe9ee2a75368662f3dc6 (diff)
mb/google/guybrush: Update SD_AUX_RESET_L signal
On all upcoming variants and board versions of existing variants, SD_AUX_RESET_L signal moves from GPIO_69 to GPIO_5. This means all boards except: * All board versions of Guybrush * Nipperkin Board Version 1. Also in Nipperkin, LCD_PRIVACY_PCH signal moves from GPIO_5 to GPIO_18. Configure the gpios accordingly in baseboard, guybrush and nipperkin variants accordingly. Also update the DXIO port descriptor for SD PCIe engine with the corresponding AUX reset GPIO. BUG=b:202992077 TEST=Build and boot to OS in Guybrush & Nipperkin. Ensure that the SD Controller and SD Card are enumerated fine. Ensure that the enumeration is successful after a suspend/resume cycle. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Change-Id: If28810747e6b4eaae2a693a98e1adc830f80bcf6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58598 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'src/mainboard/google/guybrush/variants/baseboard/helpers.c')
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/helpers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/guybrush/variants/baseboard/helpers.c b/src/mainboard/google/guybrush/variants/baseboard/helpers.c
index 248e7a98ab..04c05bbcc1 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/helpers.c
+++ b/src/mainboard/google/guybrush/variants/baseboard/helpers.c
@@ -2,6 +2,7 @@
#include <baseboard/variants.h>
#include <device/device.h>
+#include <soc/gpio.h>
WEAK_DEV_PTR(fpmcu);
@@ -14,3 +15,8 @@ bool __weak variant_has_pcie_wwan(void)
{
return false;
}
+
+uint8_t __weak variant_sd_aux_reset_gpio(void)
+{
+ return GPIO_5;
+}