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/include | |
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/include')
-rw-r--r-- | src/soc/mediatek/mt8186/include/soc/addressmap.h | 1 | ||||
-rw-r--r-- | src/soc/mediatek/mt8186/include/soc/adsp.h | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8186/include/soc/addressmap.h b/src/soc/mediatek/mt8186/include/soc/addressmap.h index 0aaeb9b666..d19a8db17e 100644 --- a/src/soc/mediatek/mt8186/include/soc/addressmap.h +++ b/src/soc/mediatek/mt8186/include/soc/addressmap.h @@ -50,6 +50,7 @@ enum { DRAMC_CHA_AO_BASE = IO_PHYS + 0x00220000, SSPM_SRAM_BASE = IO_PHYS + 0x00400000, SSPM_CFG_BASE = IO_PHYS + 0x00440000, + AUDIODSP_BASE = IO_PHYS + 0x00680000, SFLASH_REG_BASE = IO_PHYS + 0x01000000, AUXADC_BASE = IO_PHYS + 0x01001000, UART0_BASE = IO_PHYS + 0x01002000, diff --git a/src/soc/mediatek/mt8186/include/soc/adsp.h b/src/soc/mediatek/mt8186/include/soc/adsp.h new file mode 100644 index 0000000000..03916964b9 --- /dev/null +++ b/src/soc/mediatek/mt8186/include/soc/adsp.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef SOC_MEDIATEK_MT8186_ADSP_H +#define SOC_MEDIATEK_MT8186_ADSP_H + +#include <soc/addressmap.h> + +struct mt8186_audiodsp_regs { + u32 reserved1[1024]; + u32 audiodsp_adsp_ck_en; +}; +check_member(mt8186_audiodsp_regs, audiodsp_adsp_ck_en, 0x1000); + +static struct mt8186_audiodsp_regs *const mt8186_audiodsp = (void *)AUDIODSP_BASE; + +void mtk_adsp_init(void); + +#endif |