summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8192/include/soc/iocfg.h
blob: 6f14c6bd903b6b55275923878eac560a5fd3fc52 (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
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __SOC_MEDIATEK_MT8192_IOCFG_H__
#define __SOC_MEDIATEK_MT8192_IOCFG_H__

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

struct mt8192_iocfg_lm_regs {
	u32 reserved[4];
	u32 drv_cfg1;
};
check_member(mt8192_iocfg_lm_regs, drv_cfg1, 0x10);

enum {
	IO_4_MA = 0x1,
};

#define mtk_iocfg_lm    ((struct mt8192_iocfg_lm_regs *)IOCFG_LM_BASE)

struct mt8192_iocfg_bm_regs {
	u32 reserved[8];
	u32 drv_cfg2;
};
check_member(mt8192_iocfg_bm_regs, drv_cfg2, 0x20);

#define mtk_iocfg_bm	((struct mt8192_iocfg_bm_regs *)IOCFG_BM_BASE)

#endif /* __SOC_MEDIATEK_MT8192_IOCFG_H__ */