]> git.sur5r.net Git - u-boot/blob - include/dialog_pmic.h
ColdFire: fix some typoes for CF platform
[u-boot] / include / dialog_pmic.h
1 /*
2  * da9053 register declarations.
3  *
4  * Copyright(c) 2009 Dialog Semiconductor Ltd.
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #ifndef __DIALOG_PMIC_H__
10 #define __DIALOG_PMIC_H__
11
12 enum {
13         DA9053_PAGECON0_REG = 0,
14         DA9053_STATUSA_REG,
15         DA9053_STATUSB_REG,
16         DA9053_STATUSC_REG,
17         DA9053_STATUSD_REG,
18         DA9053_EVENTA_REG,
19         DA9053_EVENTB_REG,
20         DA9053_EVENTC_REG,
21         DA9053_EVENTD_REG,
22         DA9053_FAULTLOG_REG,
23         DA9053_IRQMASKA_REG,
24         DA9053_IRQMASKB_REG,
25         DA9053_IRQMASKC_REG,
26         DA9053_IRQMASKD_REG,
27         DA9053_CONTROLA_REG,
28         DA9053_CONTROLB_REG,
29         DA9053_CONTROLC_REG,
30         DA9053_CONTROLD_REG,
31         DA9053_PDDIS_REG,
32         DA9053_INTERFACE_REG,
33         DA9053_RESET_REG,
34         DA9053_GPIO0001_REG,
35         DA9053_GPIO0203_REG,
36         DA9053_GPIO0405_REG,
37         DA9053_GPIO0607_REG,
38         DA9053_GPIO0809_REG,
39         DA9053_GPIO1011_REG,
40         DA9053_GPIO1213_REG,
41         DA9053_GPIO1415_REG,
42         DA9053_ID01_REG,
43         DA9053_ID23_REG,
44         DA9053_ID45_REG,
45         DA9053_ID67_REG,
46         DA9053_ID89_REG,
47         DA9053_ID1011_REG,
48         DA9053_ID1213_REG,
49         DA9053_ID1415_REG,
50         DA9053_ID1617_REG,
51         DA9053_ID1819_REG,
52         DA9053_ID2021_REG,
53         DA9053_SEQSTATUS_REG,
54         DA9053_SEQA_REG,
55         DA9053_SEQB_REG,
56         DA9053_SEQTIMER_REG,
57         DA9053_BUCKA_REG,
58         DA9053_BUCKB_REG,
59         DA9053_BUCKCORE_REG,
60         DA9053_BUCKPRO_REG,
61         DA9053_BUCKMEM_REG,
62         DA9053_BUCKPERI_REG,
63         DA9053_LDO1_REG,
64         DA9053_LDO2_REG,
65         DA9053_LDO3_REG,
66         DA9053_LDO4_REG,
67         DA9053_LDO5_REG,
68         DA9053_LDO6_REG,
69         DA9053_LDO7_REG,
70         DA9053_LDO8_REG,
71         DA9053_LDO9_REG,
72         DA9053_LDO10_REG,
73         DA9053_SUPPLY_REG,
74         DA9053_PULLDOWN_REG,
75         DA9053_CHGBUCK_REG,
76         DA9053_WAITCONT_REG,
77         DA9053_ISET_REG,
78         DA9053_BATCHG_REG,
79         DA9053_CHGCONT_REG,
80         DA9053_INPUTCONT_REG,
81         DA9053_CHGTIME_REG,
82         DA9053_BBATCONT_REG,
83         DA9053_BOOST_REG,
84         DA9053_LEDCONT_REG,
85         DA9053_LEDMIN123_REG,
86         DA9053_LED1CONF_REG,
87         DA9053_LED2CONF_REG,
88         DA9053_LED3CONF_REG,
89         DA9053_LED1CONT_REG,
90         DA9053_LED2CONT_REG,
91         DA9053_LED3CONT_REG,
92         DA9053_LED4CONT_REG,
93         DA9053_LED5CONT_REG,
94         DA9053_ADCMAN_REG,
95         DA9053_ADCCONT_REG,
96         DA9053_ADCRESL_REG,
97         DA9053_ADCRESH_REG,
98         DA9053_VDDRES_REG,
99         DA9053_VDDMON_REG,
100         DA9053_ICHGAV_REG,
101         DA9053_ICHGTHD_REG,
102         DA9053_ICHGEND_REG,
103         DA9053_TBATRES_REG,
104         DA9053_TBATHIGHP_REG,
105         DA9053_TBATHIGHIN_REG,
106         DA9053_TBATLOW_REG,
107         DA9053_TOFFSET_REG,
108         DA9053_ADCIN4RES_REG,
109         DA9053_AUTO4HIGH_REG,
110         DA9053_AUTO4LOW_REG,
111         DA9053_ADCIN5RES_REG,
112         DA9053_AUTO5HIGH_REG,
113         DA9053_AUTO5LOW_REG,
114         DA9053_ADCIN6RES_REG,
115         DA9053_AUTO6HIGH_REG,
116         DA9053_AUTO6LOW_REG,
117         DA9053_TJUNCRES_REG,
118         DA9053_TSICONTA_REG,
119         DA9053_TSICONTB_REG,
120         DA9053_TSIXMSB_REG,
121         DA9053_TSIYMSB_REG,
122         DA9053_TSILSB_REG,
123         DA9053_TSIZMSB_REG,
124         DA9053_COUNTS_REG,
125         DA9053_COUNTMI_REG,
126         DA9053_COUNTH_REG,
127         DA9053_COUNTD_REG,
128         DA9053_COUNTMO_REG,
129         DA9053_COUNTY_REG,
130         DA9053_ALARMMI_REG,
131         DA9053_ALARMH_REG,
132         DA9053_ALARMD_REG,
133         DA9053_ALARMMO_REG,
134         DA9053_ALARMY_REG,
135         DA9053_SECONDA_REG,
136         DA9053_SECONDB_REG,
137         DA9053_SECONDC_REG,
138         DA9053_SECONDD_REG,
139         DA9053_PAGECON128_REG,
140         DA9053_CHIPID_REG,
141         DA9053_CONFIGID_REG,
142         DA9053_OTPCONT_REG,
143         DA9053_OSCTRIM_REG,
144         DA9053_GPID0_REG,
145         DA9053_GPID1_REG,
146         DA9053_GPID2_REG,
147         DA9053_GPID3_REG,
148         DA9053_GPID4_REG,
149         DA9053_GPID5_REG,
150         DA9053_GPID6_REG,
151         DA9053_GPID7_REG,
152         DA9053_GPID8_REG,
153         DA9053_GPID9_REG,
154         DIALOG_NUM_OF_REGS,
155 };
156
157 #define DA_BUCKCORE_VBCORE_1_250V               0x1E
158
159 /* BUCKCORE REGISTER */
160 #define DA9052_BUCKCORE_BCORECONF               (1 << 7)
161 #define DA9052_BUCKCORE_BCOREEN                 (1 << 6)
162 #define DA9052_BUCKCORE_VBCORE                  63
163
164 /* SUPPLY REGISTER */
165 #define DA9052_SUPPLY_VLOCK                     (1 << 7)
166 #define DA9052_SUPPLY_VMEMSWEN                  (1 << 6)
167 #define DA9052_SUPPLY_VPERISWEN                 (1 << 5)
168 #define DA9052_SUPPLY_VLDO3GO                   (1 << 4)
169 #define DA9052_SUPPLY_VLDO2GO                   (1 << 3)
170 #define DA9052_SUPPLY_VBMEMGO                   (1 << 2)
171 #define DA9052_SUPPLY_VBPROGO                   (1 << 1)
172 #define DA9052_SUPPLY_VBCOREGO                  (1 << 0)
173
174 #endif /* __DIALOG_PMIC_H__ */