From bc18fb3e1a47dbed229d3737b2200246fd46e7ee Mon Sep 17 00:00:00 2001 From: Bo-Chen Chen Date: Tue, 6 Sep 2022 14:41:57 +0800 Subject: mb/google/geralt: Pass reset gpio parameter to BL31 Pass the reset gpio parameter to BL31 to support SoC reset. TEST=build pass. BUG=b:233720142 Signed-off-by: Bo-Chen Chen Change-Id: Ifdfbd6bd82f64b084f6349cb617443053c89a3f1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67357 Reviewed-by: Yidi Lin Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/mainboard/google/geralt/mainboard.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainboard') diff --git a/src/mainboard/google/geralt/mainboard.c b/src/mainboard/google/geralt/mainboard.c index 75b8bb5e4b..ddcb1bb000 100644 --- a/src/mainboard/google/geralt/mainboard.c +++ b/src/mainboard/google/geralt/mainboard.c @@ -1,14 +1,20 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include +#include #include #include +#include "gpio.h" + static void mainboard_init(struct device *dev) { mtk_msdc_configure_emmc(true); mtk_msdc_configure_sdcard(); setup_usb_host(); + + 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