summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8173/include/soc/pericfg.h
blob: ea5b7102b23b1ab9dac2a1bd58e36dc0feb27596 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
 * This file is part of the coreboot project.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef __SOC_MEDIATEK_MT8173_PERICFG_H__
#define __SOC_MEDIATEK_MT8173_PERICFG_H__

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

struct mt8173_pericfg_regs {
	u32 rst0;
	u32 rst1;
	u32 pdn0_set;
	u32 pdn1_set;
	u32 pdn0_clr;
	u32 pdn1_clr;
	u32 pdn0_sta;
	u32 pdn1_sta;
	u32 pdn_md1_set;
	u32 pdn_md2_set;
	u32 pdn_md1_clr;
	u32 pdn_md2_clr;
	u32 pdn_md1_sta;
	u32 pdn_md2_sta;
	u32 pdn_md_mask;
	u32 reserved0[5];
	u32 dcmctl;
	u32 dcmdbc;
	u32 dcmfsel;
	u32 cksel;
	u32 reserved1[104];
	u32 axi_bus_ctl1;
	u32 axi_bus_ctl2;
	u32 axi_bus_ctl3;
	u32 axi_si0_ctl;
	u32 axi_si1_ctl;
	u32 axi_mi_sta;
	u32 reserved2[58];
	u32 axi_ahb_lmt_con1;
	u32 axi_ahb_lmt_con2;
	u32 axi_ahb_lmt_con3;
	u32 axi_ahb_lmt_con4;
	u32 axi_ahb_lmt_con5;
	u32 axi_ahb_lmt_con6;
	u32 reserved3[2];
	u32 axi_axi_lmt_con1;
	u32 axi_axi_lmt_con2;
	u32 axi_axi_lmt_con3;
	u32 axi_axi_lmt_con4;
	u32 axi_axi_lmt_con5;
	u32 axi_axi_lmt_con6;
	u32 axi_axi_lmt_con7;
	u32 axi_axi_lmt_con8;
	u32 axi_axi_lmt_con9;
	u32 reserved4[47];
	u32 usb_wakeup_dec_con0;
	u32 usb_wakeup_dec_con1;
	u32 usb_wakeup_dec_con2;
	u32 uart_ck_source_sel;
	u32 reserved5[1];
	u32 usb_wakeup_dec_con3a;
	u32 reserved6[58];
	u32 ssusb_rst;
	u32 ssusb_pdn_set;
	u32 ssusb_pdn_clr;
	u32 ssusb_pdn_sta;
};

static struct mt8173_pericfg_regs *const mt8173_pericfg =
					(void *)PERI_CON_BASE;

/*
 * UART power down control
 */

enum {
        PERICFG_UART0_PDN = 1 << 19
};

/*
 * PERI 4GB control
 */

enum {
        PERISYS_4G_SUPPORT = 1 << 15
};

#endif	/* __SOC_MEDIATEK_MT8173_PERICFG_H__ */