diff options
author | Ravi Kumar Bokka <rbokka@codeaurora.org> | 2021-10-21 20:18:12 +0530 |
---|---|---|
committer | Shelley Chen <shchen@google.com> | 2021-10-25 21:14:46 +0000 |
commit | 5fa09cb17f4c99c5736c63f71f812dd6fe62e846 (patch) | |
tree | cf072927c48afd05740c3e3d2ba155cfba97082b /src | |
parent | 64f7eaafa7ca8e5908e6e1dd1be6f6df6cae06d9 (diff) |
sc7280: Add AOP FW download support
AOP firmware support from sc7280.
BUG=b:182963902
TEST=Validated on qualcomm sc7280 development board
Signed-off-by: Ravi Kumar Bokka <rbokka@codeaurora.org>
Change-Id: Ib7027cdf78a9cdcccc8cfff7eef3cc540fb4093e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58371
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/qualcomm/sc7280/Makefile.inc | 9 | ||||
-rw-r--r-- | src/soc/qualcomm/sc7280/soc.c | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/soc/qualcomm/sc7280/Makefile.inc b/src/soc/qualcomm/sc7280/Makefile.inc index 9c02826ae0..37ed21eaa3 100644 --- a/src/soc/qualcomm/sc7280/Makefile.inc +++ b/src/soc/qualcomm/sc7280/Makefile.inc @@ -36,6 +36,7 @@ romstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c ramstage-y += soc.c ramstage-y += cbmem.c ramstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c +ramstage-y += ../common/aop_load_reset.c ################################################################################ @@ -103,6 +104,14 @@ $(I2C_FW_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG) cbfs-files-y += $(I2C_FW_CBFS) ################################################################################ +AOP_FILE := $(SC7280_BLOB)/aop/aop.mbn +AOP_CBFS := $(CONFIG_CBFS_PREFIX)/aop +$(AOP_CBFS)-file := $(AOP_FILE) +$(AOP_CBFS)-type := payload +$(AOP_CBFS)-compression := $(CBFS_COMPRESS_FLAG) +cbfs-files-y += $(AOP_CBFS) + +################################################################################ SHRM_FILE := $(SC7280_BLOB)/shrm/shrm.elf SHRM_CBFS := $(CONFIG_CBFS_PREFIX)/shrm $(SHRM_CBFS)-file := $(SHRM_FILE) diff --git a/src/soc/qualcomm/sc7280/soc.c b/src/soc/qualcomm/sc7280/soc.c index 96a4d5a2b2..ff2b7cc650 100644 --- a/src/soc/qualcomm/sc7280/soc.c +++ b/src/soc/qualcomm/sc7280/soc.c @@ -4,6 +4,7 @@ #include <soc/mmu.h> #include <soc/mmu_common.h> #include <soc/symbols_common.h> +#include <soc/aop_common.h> static void soc_read_resources(struct device *dev) { @@ -21,6 +22,7 @@ static void soc_read_resources(struct device *dev) static void soc_init(struct device *dev) { + aop_fw_load_reset(); } static struct device_operations soc_ops = { |