coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
apusys.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef SOC_MEDIATEK_MT8195_APUSYS_H
4
#define SOC_MEDIATEK_MT8195_APUSYS_H
5
6
#include <soc/addressmap.h>
7
#include <types.h>
8
9
struct
mt8195_apu_mbox_regs
{
10
u32
mbox_in
[8];
11
u32
mbox_out
[8];
12
u32
mbox_reserved1
[28];
13
u32
mbox_func_cfg
;
14
u32
mbox0_reserved2
[19];
15
};
16
17
check_member
(
mt8195_apu_mbox_regs
, mbox_func_cfg, 0x0b0);
18
19
static
struct
mt8195_apu_mbox_regs
*
const
mt8195_apu_mbox
[] = {
20
(
void
*)
APU_MBOX_BASE
,
21
(
void
*)(
APU_MBOX_BASE
+ 0x100),
22
(
void
*)(
APU_MBOX_BASE
+ 0x200),
23
(
void
*)(
APU_MBOX_BASE
+ 0x300),
24
(
void
*)(
APU_MBOX_BASE
+ 0x400),
25
(
void
*)(
APU_MBOX_BASE
+ 0x500),
26
(
void
*)(
APU_MBOX_BASE
+ 0x600),
27
(
void
*)(
APU_MBOX_BASE
+ 0x700),
28
};
29
30
void
apusys_init
(
void
);
31
#endif
/* SOC_MEDIATEK_MT8195_APUSYS_H */
check_member
check_member(mt8192_apu_mbox_regs, mbox_func_cfg, 0x0b0)
apusys_init
void apusys_init(void)
Definition:
apusys.c:30
mt8195_apu_mbox
static struct mt8195_apu_mbox_regs *const mt8195_apu_mbox[]
Definition:
apusys.h:19
APU_MBOX_BASE
@ APU_MBOX_BASE
Definition:
addressmap.h:94
u32
uint32_t u32
Definition:
stdint.h:51
mt8195_apu_mbox_regs
Definition:
apusys.h:9
mt8195_apu_mbox_regs::mbox_out
u32 mbox_out[8]
Definition:
apusys.h:11
mt8195_apu_mbox_regs::mbox0_reserved2
u32 mbox0_reserved2[19]
Definition:
apusys.h:14
mt8195_apu_mbox_regs::mbox_reserved1
u32 mbox_reserved1[28]
Definition:
apusys.h:12
mt8195_apu_mbox_regs::mbox_in
u32 mbox_in[8]
Definition:
apusys.h:10
mt8195_apu_mbox_regs::mbox_func_cfg
u32 mbox_func_cfg
Definition:
apusys.h:13
src
soc
mediatek
mt8195
include
soc
apusys.h
Generated by
1.9.1