Debian Codegraph @

src/soc/mediatek/common/dpm.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <soc/dpm_common.h>
4 #include <soc/mcu_common.h>
5 #include <soc/symbols.h>
6
7 int dpm_init_mcu(struct mtk_mcu *mcu_list)
8 {
9 struct mtk_mcu *mcu = mcu_list;
10
11 while (mcu->firmware_name) {
12 mcu->load_buffer = _dram_dma;
13 mcu->buffer_size = REGION_SIZE(dram_dma);
14 if (mtk_init_mcu(mcu))
15 return -1;
16
17 mcu++;
18 }
19
20 return 0;
21 }