From c4fe5e2483706544fa964d6a21db4c7897033e59 Mon Sep 17 00:00:00 2001 From: Vince Liu Date: Mon, 17 Feb 2025 15:07:10 +0800 Subject: [PATCH] mb/google/skywalker: Pass reset GPIO parameter to BL31 Pass the reset GPIO parameter to BL31 to support SoC reset. BUG=b:395795640 BRANCH=none TEST=run reboot command in depthcharge Signed-off-by: Vince Liu Change-Id: I87063d58d04ea6437195a59abab9c54f2da7eac0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/87814 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin --- src/mainboard/google/skywalker/mainboard.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mainboard/google/skywalker/mainboard.c b/src/mainboard/google/skywalker/mainboard.c index d786f473d0..686fd55e2e 100644 --- a/src/mainboard/google/skywalker/mainboard.c +++ b/src/mainboard/google/skywalker/mainboard.c @@ -1,15 +1,21 @@ /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ #include +#include #include #include #include +#include "gpio.h" + static void mainboard_init(struct device *dev) { dpm_init(); setup_usb_host(); spm_init(); + + 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)