Debian Codegraph @

src/soc/mediatek/mt8189/dvfs.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
2
3 #include <arch/cache.h>
4 #include <device/mmio.h>
5 #include <soc/cpu_id.h>
6 #include <soc/dvfs.h>
7 #include <soc/symbols.h>
8
9 void dvfs_init(void)
10 {
11 u32 id, val;
12
13 id = get_cpu_segment_id();
14 val = (id << 8) | BIT(0);
15
16 write32(_dvfs2_reserved + 0x8, 0x55AA55AA);
17 write32(_dvfs2_reserved + 0xC, val);
18
19 dcache_clean_invalidate_by_mva(_dvfs2_reserved, 0x10);
20 }