diff options
author | Tinghan Shen <tinghan.shen@mediatek.com> | 2022-10-11 13:42:44 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-10-14 16:02:29 +0000 |
commit | a9e595770f4ab4f8142fd88f157758dbaf085daa (patch) | |
tree | 36ff742c01b093402e899e8d6800566ae7cd5cca /src/soc/mediatek/mt8186/soc.c | |
parent | 55a1ba30437c546763dee2476b0f0fbccc3530c3 (diff) |
soc/mediatek/mt8186: Inititalize ADSP
To use SOF correctly, we need to initialize ADSP in coreboot stage.
TEST=SOF driver is functional.
BUG=b:204229221
Change-Id: I45db587252ccdcdf75e0be2029743034a79925c5
Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68289
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8186/soc.c')
-rw-r--r-- | src/soc/mediatek/mt8186/soc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8186/soc.c b/src/soc/mediatek/mt8186/soc.c index d2e7a1e03e..a55e2ee2cb 100644 --- a/src/soc/mediatek/mt8186/soc.c +++ b/src/soc/mediatek/mt8186/soc.c @@ -2,10 +2,12 @@ #include <bootmem.h> #include <device/device.h> +#include <soc/adsp.h> #include <soc/devapc.h> #include <soc/dfd.h> #include <soc/emi.h> #include <soc/mmu_operations.h> +#include <soc/mtcmos.h> #include <soc/sspm.h> #include <symbols.h> @@ -24,6 +26,12 @@ static void soc_init(struct device *dev) { mtk_mmu_disable_l2c_sram(); sspm_init(); + + /* ADSP is required for all MT8186 projects, so it's initialized in soc.c */ + mtcmos_adsp_power_on(); + mtcmos_protect_adsp_bus(); + mtk_adsp_init(); + dapc_init(); if (CONFIG(MTK_DFD)) |