summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8195/include/soc/apusys.h
blob: 287e0f8ee0e91028a99d5d8a6a9bda65f89c6a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef SOC_MEDIATEK_MT8195_APUSYS_H
#define SOC_MEDIATEK_MT8195_APUSYS_H

#include <soc/addressmap.h>
#include <types.h>

struct mt8195_apu_mbox_regs {
	u32 mbox_in[8];
	u32 mbox_out[8];
	u32 mbox_reserved1[28];
	u32 mbox_func_cfg;
	u32 mbox0_reserved2[19];
};

check_member(mt8195_apu_mbox_regs, mbox_func_cfg, 0x0b0);

static struct mt8195_apu_mbox_regs * const mt8195_apu_mbox[] = {
	(void *)APU_MBOX_BASE,
	(void *)(APU_MBOX_BASE + 0x100),
	(void *)(APU_MBOX_BASE + 0x200),
	(void *)(APU_MBOX_BASE + 0x300),
	(void *)(APU_MBOX_BASE + 0x400),
	(void *)(APU_MBOX_BASE + 0x500),
	(void *)(APU_MBOX_BASE + 0x600),
	(void *)(APU_MBOX_BASE + 0x700),
};

void apusys_init(void);
#endif  /* SOC_MEDIATEK_MT8195_APUSYS_H */