soc/qc/sc7280: Relocate SHRM firmware load to common Qualcomm path
This patch moves the shrm_fw_load_reset() API from the SC7280 specific implementation to the Qualcomm common directory. This change enables reuse of the API across multiple Qualcomm chipsets. Change-Id: Ifab870b9aea7396e29fa93c999c29cf11ab0d199 Signed-off-by: Sasirekaa Madhesu <smadhesu@qualcomm.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/88545 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
88b10e09b6
commit
dd76bcc4c3
4 changed files with 10 additions and 7 deletions
|
|
@ -15,6 +15,4 @@ void aop_fw_load_reset(void)
|
|||
die("SOC image: AOP load failed");
|
||||
|
||||
clock_reset_aop();
|
||||
|
||||
printk(BIOS_DEBUG, "SOC:AOP brought out of reset.\n");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,4 @@ void shrm_fw_load_reset(void)
|
|||
mmu_config_range((void *)_shrm, REGION_SIZE(shrm), DEV_MEM);
|
||||
|
||||
clock_reset_shrm();
|
||||
|
||||
printk(BIOS_DEBUG, "SOC:SHRM brought out of reset.\n");
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ verstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c
|
|||
|
||||
################################################################################
|
||||
romstage-y += cbmem.c
|
||||
romstage-y += shrm_load_reset.c
|
||||
romstage-y += ../common/shrm_load_reset.c
|
||||
romstage-y += cpucp_load_reset.c
|
||||
romstage-y += ../common/qclib.c
|
||||
romstage-y += ../common/mmu.c
|
||||
|
|
|
|||
|
|
@ -397,8 +397,15 @@ static struct aoss *const aoss = (void *)AOSS_CC_BASE;
|
|||
static struct shrm *const shrm = (void *)SHRM_SPROC_BASE;
|
||||
|
||||
#define clock_reset_aop() \
|
||||
clock_reset_subsystem(&aoss->aoss_cc_apcs_misc, AOP_RESET_SHFT)
|
||||
do { \
|
||||
clock_reset_subsystem(&aoss->aoss_cc_apcs_misc, AOP_RESET_SHFT); \
|
||||
printk(BIOS_DEBUG, "SOC:AOP brought out of reset.\n"); \
|
||||
} while (0)
|
||||
|
||||
#define clock_reset_shrm() \
|
||||
clock_reset_subsystem(&shrm->shrm_sproc_ctrl, SHRM_RUN_STALL)
|
||||
do { \
|
||||
clock_reset_subsystem(&shrm->shrm_sproc_ctrl, SHRM_RUN_STALL); \
|
||||
printk(BIOS_DEBUG, "SOC:SHRM brought out of reset.\n"); \
|
||||
} while (0)
|
||||
|
||||
#endif // __SOC_QUALCOMM_SC7280_CLOCK_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue