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 <rex-bc.chen@mediatek.com> Change-Id: Ifdfbd6bd82f64b084f6349cb617443053c89a3f1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67357 Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
a01f8bc450
commit
bc18fb3e1a
|
@ -1,14 +1,20 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
#include <soc/bl31.h>
|
||||||
#include <soc/msdc.h>
|
#include <soc/msdc.h>
|
||||||
#include <soc/usb.h>
|
#include <soc/usb.h>
|
||||||
|
|
||||||
|
#include "gpio.h"
|
||||||
|
|
||||||
static void mainboard_init(struct device *dev)
|
static void mainboard_init(struct device *dev)
|
||||||
{
|
{
|
||||||
mtk_msdc_configure_emmc(true);
|
mtk_msdc_configure_emmc(true);
|
||||||
mtk_msdc_configure_sdcard();
|
mtk_msdc_configure_sdcard();
|
||||||
setup_usb_host();
|
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)
|
static void mainboard_enable(struct device *dev)
|
||||||
|
|
|
@ -29,6 +29,7 @@ romstage-y += ../common/pmif_spmi.c pmif_spmi.c
|
||||||
romstage-y += ../common/rtc.c ../common/rtc_osc_init.c ../common/rtc_mt6359p.c
|
romstage-y += ../common/rtc.c ../common/rtc_osc_init.c ../common/rtc_mt6359p.c
|
||||||
|
|
||||||
ramstage-y += ../common/auxadc.c
|
ramstage-y += ../common/auxadc.c
|
||||||
|
ramstage-$(CONFIG_ARM64_USE_ARM_TRUSTED_FIRMWARE) += ../common/bl31.c
|
||||||
ramstage-y += ../common/devapc.c devapc.c
|
ramstage-y += ../common/devapc.c devapc.c
|
||||||
ramstage-y += ../common/dfd.c
|
ramstage-y += ../common/dfd.c
|
||||||
ramstage-y += ../common/dpm.c
|
ramstage-y += ../common/dpm.c
|
||||||
|
|
Loading…
Reference in New Issue