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 <yidilin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84933
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Yidi Lin 2024-04-19 12:04:01 +08:00 committed by Yu-Ping Wu
commit 35cfefd1a4

View file

@ -2,6 +2,7 @@
#include <device/device.h>
#include <gpio.h>
#include <soc/bl31.h>
#include <soc/pcie.h>
#include <soc/usb.h>
@ -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)