From 35cfefd1a468565c7321badd8a23ca21fed88d20 Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Fri, 19 Apr 2024 12:04:01 +0800 Subject: mb/google/rauru: Pass reset gpio parameter to BL31 Pass the reset gpio parameter to BL31 to support SoC reset. BUG=b:334753311 TEST=run reboot command Change-Id: I4ddecfb8f36a8f721b57ca16e6a861f933b058b4 Signed-off-by: Yidi Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84933 Reviewed-by: Yu-Ping Wu Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/mainboard/google/rauru/mainboard.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/mainboard/google/rauru/mainboard.c b/src/mainboard/google/rauru/mainboard.c index a2d725a79f..c2d24e1228 100644 --- a/src/mainboard/google/rauru/mainboard.c +++ b/src/mainboard/google/rauru/mainboard.c @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -23,6 +24,9 @@ static void mainboard_init(struct device *dev) { setup_usb_host(); power_on_fpmcu(); + + if (CONFIG(ARM64_USE_ARM_TRUSTED_FIRMWARE)) + register_reset_to_bl31(GPIO_AP_EC_WARM_RST_REQ.id, true); } static void mainboard_enable(struct device *dev) -- cgit v1.2.3