• Home
  • Raw
  • Download

Lines Matching refs:spi

21 static int spi_write_tag_val(struct spi_slave *spi, unsigned char tag,  in spi_write_tag_val()  argument
29 ret = spi_xfer(spi, 8, buf, NULL, flags); in spi_write_tag_val()
32 ret = spi_xfer(spi, 8, buf, NULL, flags); in spi_write_tag_val()
44 static void spi_write_dat(struct spi_slave *spi, unsigned int val) in spi_write_dat() argument
46 spi_write_tag_val(spi, TAG_WRITE|TAG_DATA, val); in spi_write_dat()
49 static void spi_write_com(struct spi_slave *spi, unsigned int addr) in spi_write_com() argument
51 spi_write_tag_val(spi, TAG_WRITE|TAG_COMMAND|TAG_ADDR_H, in spi_write_com()
53 spi_write_tag_val(spi, TAG_WRITE|TAG_COMMAND|TAG_ADDR_L, in spi_write_com()
60 struct spi_slave *spi; in kwh043st20_f01_spi_startup() local
63 spi = spi_setup_slave(bus, cs, max_hz, spi_mode); in kwh043st20_f01_spi_startup()
64 if (!spi) { in kwh043st20_f01_spi_startup()
69 ret = spi_claim_bus(spi); in kwh043st20_f01_spi_startup()
77 spi_write_com(spi, 0xF000); spi_write_dat(spi, 0x55); in kwh043st20_f01_spi_startup()
78 spi_write_com(spi, 0xF001); spi_write_dat(spi, 0xAA); in kwh043st20_f01_spi_startup()
79 spi_write_com(spi, 0xF002); spi_write_dat(spi, 0x52); in kwh043st20_f01_spi_startup()
80 spi_write_com(spi, 0xF003); spi_write_dat(spi, 0x08); in kwh043st20_f01_spi_startup()
81 spi_write_com(spi, 0xF004); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
84 spi_write_com(spi, 0xB000); spi_write_dat(spi, 0x0D); in kwh043st20_f01_spi_startup()
85 spi_write_com(spi, 0xB001); spi_write_dat(spi, 0x0D); in kwh043st20_f01_spi_startup()
86 spi_write_com(spi, 0xB002); spi_write_dat(spi, 0x0D); in kwh043st20_f01_spi_startup()
89 spi_write_com(spi, 0xB600); spi_write_dat(spi, 0x34); in kwh043st20_f01_spi_startup()
90 spi_write_com(spi, 0xB601); spi_write_dat(spi, 0x34); in kwh043st20_f01_spi_startup()
91 spi_write_com(spi, 0xB602); spi_write_dat(spi, 0x34); in kwh043st20_f01_spi_startup()
94 spi_write_com(spi, 0xB100); spi_write_dat(spi, 0x0D); in kwh043st20_f01_spi_startup()
95 spi_write_com(spi, 0xB101); spi_write_dat(spi, 0x0D); in kwh043st20_f01_spi_startup()
96 spi_write_com(spi, 0xB102); spi_write_dat(spi, 0x0D); in kwh043st20_f01_spi_startup()
99 spi_write_com(spi, 0xB700); spi_write_dat(spi, 0x35); in kwh043st20_f01_spi_startup()
100 spi_write_com(spi, 0xB701); spi_write_dat(spi, 0x35); in kwh043st20_f01_spi_startup()
101 spi_write_com(spi, 0xB702); spi_write_dat(spi, 0x35); in kwh043st20_f01_spi_startup()
104 spi_write_com(spi, 0xB200); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
105 spi_write_com(spi, 0xB201); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
106 spi_write_com(spi, 0xB202); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
109 spi_write_com(spi, 0xB800); spi_write_dat(spi, 0x24); in kwh043st20_f01_spi_startup()
110 spi_write_com(spi, 0xB801); spi_write_dat(spi, 0x24); in kwh043st20_f01_spi_startup()
111 spi_write_com(spi, 0xB802); spi_write_dat(spi, 0x24); in kwh043st20_f01_spi_startup()
114 spi_write_com(spi, 0xBF00); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
115 spi_write_com(spi, 0xB300); spi_write_dat(spi, 0x08); in kwh043st20_f01_spi_startup()
116 spi_write_com(spi, 0xB301); spi_write_dat(spi, 0x08); in kwh043st20_f01_spi_startup()
117 spi_write_com(spi, 0xB302); spi_write_dat(spi, 0x08); in kwh043st20_f01_spi_startup()
120 spi_write_com(spi, 0xB900); spi_write_dat(spi, 0x34); in kwh043st20_f01_spi_startup()
121 spi_write_com(spi, 0xB901); spi_write_dat(spi, 0x34); in kwh043st20_f01_spi_startup()
122 spi_write_com(spi, 0xB902); spi_write_dat(spi, 0x34); in kwh043st20_f01_spi_startup()
125 spi_write_com(spi, 0xBA00); spi_write_dat(spi, 0x24); in kwh043st20_f01_spi_startup()
126 spi_write_com(spi, 0xBA01); spi_write_dat(spi, 0x24); in kwh043st20_f01_spi_startup()
127 spi_write_com(spi, 0xBA02); spi_write_dat(spi, 0x24); in kwh043st20_f01_spi_startup()
130 spi_write_com(spi, 0xBC00); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
131 spi_write_com(spi, 0xBC01); spi_write_dat(spi, 0x88); in kwh043st20_f01_spi_startup()
132 spi_write_com(spi, 0xBC02); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
135 spi_write_com(spi, 0xBD00); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
136 spi_write_com(spi, 0xBD01); spi_write_dat(spi, 0x88); in kwh043st20_f01_spi_startup()
137 spi_write_com(spi, 0xBD02); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
140 spi_write_com(spi, 0xBE00); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
141 spi_write_com(spi, 0xBE01); spi_write_dat(spi, 0x7A); in kwh043st20_f01_spi_startup()
144 spi_write_com(spi, 0xD100); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
145 spi_write_com(spi, 0xD101); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
146 spi_write_com(spi, 0xD102); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
147 spi_write_com(spi, 0xD103); spi_write_dat(spi, 0x15); in kwh043st20_f01_spi_startup()
148 spi_write_com(spi, 0xD104); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
149 spi_write_com(spi, 0xD105); spi_write_dat(spi, 0x30); in kwh043st20_f01_spi_startup()
150 spi_write_com(spi, 0xD106); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
151 spi_write_com(spi, 0xD107); spi_write_dat(spi, 0x47); in kwh043st20_f01_spi_startup()
152 spi_write_com(spi, 0xD108); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
153 spi_write_com(spi, 0xD109); spi_write_dat(spi, 0x5B); in kwh043st20_f01_spi_startup()
154 spi_write_com(spi, 0xD10A); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
155 spi_write_com(spi, 0xD10B); spi_write_dat(spi, 0x7D); in kwh043st20_f01_spi_startup()
156 spi_write_com(spi, 0xD10C); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
157 spi_write_com(spi, 0xD10D); spi_write_dat(spi, 0x9D); in kwh043st20_f01_spi_startup()
158 spi_write_com(spi, 0xD10E); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
159 spi_write_com(spi, 0xD10F); spi_write_dat(spi, 0xCC); in kwh043st20_f01_spi_startup()
160 spi_write_com(spi, 0xD110); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
161 spi_write_com(spi, 0xD111); spi_write_dat(spi, 0xF3); in kwh043st20_f01_spi_startup()
162 spi_write_com(spi, 0xD112); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
163 spi_write_com(spi, 0xD113); spi_write_dat(spi, 0x32); in kwh043st20_f01_spi_startup()
164 spi_write_com(spi, 0xD114); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
165 spi_write_com(spi, 0xD115); spi_write_dat(spi, 0x63); in kwh043st20_f01_spi_startup()
166 spi_write_com(spi, 0xD116); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
167 spi_write_com(spi, 0xD117); spi_write_dat(spi, 0xB1); in kwh043st20_f01_spi_startup()
168 spi_write_com(spi, 0xD118); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
169 spi_write_com(spi, 0xD119); spi_write_dat(spi, 0xF0); in kwh043st20_f01_spi_startup()
170 spi_write_com(spi, 0xD11A); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
171 spi_write_com(spi, 0xD11B); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
172 spi_write_com(spi, 0xD11C); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
173 spi_write_com(spi, 0xD11D); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
174 spi_write_com(spi, 0xD11E); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
175 spi_write_com(spi, 0xD11F); spi_write_dat(spi, 0x67); in kwh043st20_f01_spi_startup()
176 spi_write_com(spi, 0xD120); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
177 spi_write_com(spi, 0xD121); spi_write_dat(spi, 0x90); in kwh043st20_f01_spi_startup()
178 spi_write_com(spi, 0xD122); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
179 spi_write_com(spi, 0xD123); spi_write_dat(spi, 0xCB); in kwh043st20_f01_spi_startup()
180 spi_write_com(spi, 0xD124); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
181 spi_write_com(spi, 0xD125); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
182 spi_write_com(spi, 0xD126); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
183 spi_write_com(spi, 0xD127); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
184 spi_write_com(spi, 0xD128); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
185 spi_write_com(spi, 0xD129); spi_write_dat(spi, 0x51); in kwh043st20_f01_spi_startup()
186 spi_write_com(spi, 0xD12A); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
187 spi_write_com(spi, 0xD12B); spi_write_dat(spi, 0x80); in kwh043st20_f01_spi_startup()
188 spi_write_com(spi, 0xD12C); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
189 spi_write_com(spi, 0xD12D); spi_write_dat(spi, 0x9F); in kwh043st20_f01_spi_startup()
190 spi_write_com(spi, 0xD12E); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
191 spi_write_com(spi, 0xD12F); spi_write_dat(spi, 0xBE); in kwh043st20_f01_spi_startup()
192 spi_write_com(spi, 0xD130); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
193 spi_write_com(spi, 0xD131); spi_write_dat(spi, 0xF9); in kwh043st20_f01_spi_startup()
194 spi_write_com(spi, 0xD132); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
195 spi_write_com(spi, 0xD133); spi_write_dat(spi, 0xFF); in kwh043st20_f01_spi_startup()
197 spi_write_com(spi, 0xD200); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
198 spi_write_com(spi, 0xD201); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
199 spi_write_com(spi, 0xD202); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
200 spi_write_com(spi, 0xD203); spi_write_dat(spi, 0x15); in kwh043st20_f01_spi_startup()
201 spi_write_com(spi, 0xD204); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
202 spi_write_com(spi, 0xD205); spi_write_dat(spi, 0x30); in kwh043st20_f01_spi_startup()
203 spi_write_com(spi, 0xD206); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
204 spi_write_com(spi, 0xD207); spi_write_dat(spi, 0x47); in kwh043st20_f01_spi_startup()
205 spi_write_com(spi, 0xD208); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
206 spi_write_com(spi, 0xD209); spi_write_dat(spi, 0x5B); in kwh043st20_f01_spi_startup()
207 spi_write_com(spi, 0xD20A); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
208 spi_write_com(spi, 0xD20B); spi_write_dat(spi, 0x7D); in kwh043st20_f01_spi_startup()
209 spi_write_com(spi, 0xD20C); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
210 spi_write_com(spi, 0xD20D); spi_write_dat(spi, 0x9D); in kwh043st20_f01_spi_startup()
211 spi_write_com(spi, 0xD20E); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
212 spi_write_com(spi, 0xD20F); spi_write_dat(spi, 0xCC); in kwh043st20_f01_spi_startup()
213 spi_write_com(spi, 0xD210); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
214 spi_write_com(spi, 0xD211); spi_write_dat(spi, 0xF3); in kwh043st20_f01_spi_startup()
215 spi_write_com(spi, 0xD212); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
216 spi_write_com(spi, 0xD213); spi_write_dat(spi, 0x32); in kwh043st20_f01_spi_startup()
217 spi_write_com(spi, 0xD214); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
218 spi_write_com(spi, 0xD215); spi_write_dat(spi, 0x63); in kwh043st20_f01_spi_startup()
219 spi_write_com(spi, 0xD216); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
220 spi_write_com(spi, 0xD217); spi_write_dat(spi, 0xB1); in kwh043st20_f01_spi_startup()
221 spi_write_com(spi, 0xD218); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
222 spi_write_com(spi, 0xD219); spi_write_dat(spi, 0xF0); in kwh043st20_f01_spi_startup()
223 spi_write_com(spi, 0xD21A); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
224 spi_write_com(spi, 0xD21B); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
225 spi_write_com(spi, 0xD21C); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
226 spi_write_com(spi, 0xD21D); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
227 spi_write_com(spi, 0xD21E); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
228 spi_write_com(spi, 0xD21F); spi_write_dat(spi, 0x67); in kwh043st20_f01_spi_startup()
229 spi_write_com(spi, 0xD220); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
230 spi_write_com(spi, 0xD221); spi_write_dat(spi, 0x90); in kwh043st20_f01_spi_startup()
231 spi_write_com(spi, 0xD222); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
232 spi_write_com(spi, 0xD223); spi_write_dat(spi, 0xCB); in kwh043st20_f01_spi_startup()
233 spi_write_com(spi, 0xD224); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
234 spi_write_com(spi, 0xD225); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
235 spi_write_com(spi, 0xD226); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
236 spi_write_com(spi, 0xD227); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
237 spi_write_com(spi, 0xD228); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
238 spi_write_com(spi, 0xD229); spi_write_dat(spi, 0x51); in kwh043st20_f01_spi_startup()
239 spi_write_com(spi, 0xD22A); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
240 spi_write_com(spi, 0xD22B); spi_write_dat(spi, 0x80); in kwh043st20_f01_spi_startup()
241 spi_write_com(spi, 0xD22C); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
242 spi_write_com(spi, 0xD22D); spi_write_dat(spi, 0x9F); in kwh043st20_f01_spi_startup()
243 spi_write_com(spi, 0xD22E); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
244 spi_write_com(spi, 0xD22F); spi_write_dat(spi, 0xBE); in kwh043st20_f01_spi_startup()
245 spi_write_com(spi, 0xD230); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
246 spi_write_com(spi, 0xD231); spi_write_dat(spi, 0xF9); in kwh043st20_f01_spi_startup()
247 spi_write_com(spi, 0xD232); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
248 spi_write_com(spi, 0xD233); spi_write_dat(spi, 0xFF); in kwh043st20_f01_spi_startup()
250 spi_write_com(spi, 0xD300); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
251 spi_write_com(spi, 0xD301); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
252 spi_write_com(spi, 0xD302); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
253 spi_write_com(spi, 0xD303); spi_write_dat(spi, 0x15); in kwh043st20_f01_spi_startup()
254 spi_write_com(spi, 0xD304); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
255 spi_write_com(spi, 0xD305); spi_write_dat(spi, 0x30); in kwh043st20_f01_spi_startup()
256 spi_write_com(spi, 0xD306); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
257 spi_write_com(spi, 0xD307); spi_write_dat(spi, 0x47); in kwh043st20_f01_spi_startup()
258 spi_write_com(spi, 0xD308); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
259 spi_write_com(spi, 0xD309); spi_write_dat(spi, 0x5B); in kwh043st20_f01_spi_startup()
260 spi_write_com(spi, 0xD30A); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
261 spi_write_com(spi, 0xD30B); spi_write_dat(spi, 0x7D); in kwh043st20_f01_spi_startup()
262 spi_write_com(spi, 0xD30C); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
263 spi_write_com(spi, 0xD30D); spi_write_dat(spi, 0x9D); in kwh043st20_f01_spi_startup()
264 spi_write_com(spi, 0xD30E); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
265 spi_write_com(spi, 0xD30F); spi_write_dat(spi, 0xCC); in kwh043st20_f01_spi_startup()
266 spi_write_com(spi, 0xD310); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
267 spi_write_com(spi, 0xD311); spi_write_dat(spi, 0xF3); in kwh043st20_f01_spi_startup()
268 spi_write_com(spi, 0xD312); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
269 spi_write_com(spi, 0xD313); spi_write_dat(spi, 0x32); in kwh043st20_f01_spi_startup()
270 spi_write_com(spi, 0xD314); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
271 spi_write_com(spi, 0xD315); spi_write_dat(spi, 0x63); in kwh043st20_f01_spi_startup()
272 spi_write_com(spi, 0xD316); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
273 spi_write_com(spi, 0xD317); spi_write_dat(spi, 0xB1); in kwh043st20_f01_spi_startup()
274 spi_write_com(spi, 0xD318); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
275 spi_write_com(spi, 0xD319); spi_write_dat(spi, 0xF0); in kwh043st20_f01_spi_startup()
276 spi_write_com(spi, 0xD31A); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
277 spi_write_com(spi, 0xD31B); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
278 spi_write_com(spi, 0xD31C); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
279 spi_write_com(spi, 0xD31D); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
280 spi_write_com(spi, 0xD31E); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
281 spi_write_com(spi, 0xD31F); spi_write_dat(spi, 0x67); in kwh043st20_f01_spi_startup()
282 spi_write_com(spi, 0xD320); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
283 spi_write_com(spi, 0xD321); spi_write_dat(spi, 0x90); in kwh043st20_f01_spi_startup()
284 spi_write_com(spi, 0xD322); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
285 spi_write_com(spi, 0xD323); spi_write_dat(spi, 0xCB); in kwh043st20_f01_spi_startup()
286 spi_write_com(spi, 0xD324); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
287 spi_write_com(spi, 0xD325); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
288 spi_write_com(spi, 0xD326); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
289 spi_write_com(spi, 0xD327); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
290 spi_write_com(spi, 0xD328); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
291 spi_write_com(spi, 0xD329); spi_write_dat(spi, 0x51); in kwh043st20_f01_spi_startup()
292 spi_write_com(spi, 0xD32A); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
293 spi_write_com(spi, 0xD32B); spi_write_dat(spi, 0x80); in kwh043st20_f01_spi_startup()
294 spi_write_com(spi, 0xD32C); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
295 spi_write_com(spi, 0xD32D); spi_write_dat(spi, 0x9F); in kwh043st20_f01_spi_startup()
296 spi_write_com(spi, 0xD32E); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
297 spi_write_com(spi, 0xD32F); spi_write_dat(spi, 0xBE); in kwh043st20_f01_spi_startup()
298 spi_write_com(spi, 0xD330); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
299 spi_write_com(spi, 0xD331); spi_write_dat(spi, 0xF9); in kwh043st20_f01_spi_startup()
300 spi_write_com(spi, 0xD332); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
301 spi_write_com(spi, 0xD333); spi_write_dat(spi, 0xFF); in kwh043st20_f01_spi_startup()
303 spi_write_com(spi, 0xD400); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
304 spi_write_com(spi, 0xD401); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
305 spi_write_com(spi, 0xD402); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
306 spi_write_com(spi, 0xD403); spi_write_dat(spi, 0x15); in kwh043st20_f01_spi_startup()
307 spi_write_com(spi, 0xD404); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
308 spi_write_com(spi, 0xD405); spi_write_dat(spi, 0x30); in kwh043st20_f01_spi_startup()
309 spi_write_com(spi, 0xD406); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
310 spi_write_com(spi, 0xD407); spi_write_dat(spi, 0x47); in kwh043st20_f01_spi_startup()
311 spi_write_com(spi, 0xD408); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
312 spi_write_com(spi, 0xD409); spi_write_dat(spi, 0x5B); in kwh043st20_f01_spi_startup()
313 spi_write_com(spi, 0xD40A); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
314 spi_write_com(spi, 0xD40B); spi_write_dat(spi, 0x7D); in kwh043st20_f01_spi_startup()
315 spi_write_com(spi, 0xD40C); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
316 spi_write_com(spi, 0xD40D); spi_write_dat(spi, 0x9D); in kwh043st20_f01_spi_startup()
317 spi_write_com(spi, 0xD40E); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
318 spi_write_com(spi, 0xD40F); spi_write_dat(spi, 0xCC); in kwh043st20_f01_spi_startup()
319 spi_write_com(spi, 0xD410); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
320 spi_write_com(spi, 0xD411); spi_write_dat(spi, 0xF3); in kwh043st20_f01_spi_startup()
321 spi_write_com(spi, 0xD412); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
322 spi_write_com(spi, 0xD413); spi_write_dat(spi, 0x32); in kwh043st20_f01_spi_startup()
323 spi_write_com(spi, 0xD414); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
324 spi_write_com(spi, 0xD415); spi_write_dat(spi, 0x63); in kwh043st20_f01_spi_startup()
325 spi_write_com(spi, 0xD416); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
326 spi_write_com(spi, 0xD417); spi_write_dat(spi, 0xB1); in kwh043st20_f01_spi_startup()
327 spi_write_com(spi, 0xD418); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
328 spi_write_com(spi, 0xD419); spi_write_dat(spi, 0xF0); in kwh043st20_f01_spi_startup()
329 spi_write_com(spi, 0xD41A); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
330 spi_write_com(spi, 0xD41B); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
331 spi_write_com(spi, 0xD41C); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
332 spi_write_com(spi, 0xD41D); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
333 spi_write_com(spi, 0xD41E); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
334 spi_write_com(spi, 0xD41F); spi_write_dat(spi, 0x67); in kwh043st20_f01_spi_startup()
335 spi_write_com(spi, 0xD420); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
336 spi_write_com(spi, 0xD421); spi_write_dat(spi, 0x90); in kwh043st20_f01_spi_startup()
337 spi_write_com(spi, 0xD422); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
338 spi_write_com(spi, 0xD423); spi_write_dat(spi, 0xCB); in kwh043st20_f01_spi_startup()
339 spi_write_com(spi, 0xD424); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
340 spi_write_com(spi, 0xD425); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
341 spi_write_com(spi, 0xD426); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
342 spi_write_com(spi, 0xD427); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
343 spi_write_com(spi, 0xD428); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
344 spi_write_com(spi, 0xD429); spi_write_dat(spi, 0x51); in kwh043st20_f01_spi_startup()
345 spi_write_com(spi, 0xD42A); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
346 spi_write_com(spi, 0xD42B); spi_write_dat(spi, 0x80); in kwh043st20_f01_spi_startup()
347 spi_write_com(spi, 0xD42C); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
348 spi_write_com(spi, 0xD42D); spi_write_dat(spi, 0x9F); in kwh043st20_f01_spi_startup()
349 spi_write_com(spi, 0xD42E); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
350 spi_write_com(spi, 0xD42F); spi_write_dat(spi, 0xBE); in kwh043st20_f01_spi_startup()
351 spi_write_com(spi, 0xD430); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
352 spi_write_com(spi, 0xD431); spi_write_dat(spi, 0xF9); in kwh043st20_f01_spi_startup()
353 spi_write_com(spi, 0xD432); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
354 spi_write_com(spi, 0xD433); spi_write_dat(spi, 0xFF); in kwh043st20_f01_spi_startup()
356 spi_write_com(spi, 0xD500); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
357 spi_write_com(spi, 0xD501); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
358 spi_write_com(spi, 0xD502); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
359 spi_write_com(spi, 0xD503); spi_write_dat(spi, 0x15); in kwh043st20_f01_spi_startup()
360 spi_write_com(spi, 0xD504); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
361 spi_write_com(spi, 0xD505); spi_write_dat(spi, 0x30); in kwh043st20_f01_spi_startup()
362 spi_write_com(spi, 0xD506); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
363 spi_write_com(spi, 0xD507); spi_write_dat(spi, 0x47); in kwh043st20_f01_spi_startup()
364 spi_write_com(spi, 0xD508); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
365 spi_write_com(spi, 0xD509); spi_write_dat(spi, 0x5B); in kwh043st20_f01_spi_startup()
366 spi_write_com(spi, 0xD50A); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
367 spi_write_com(spi, 0xD50B); spi_write_dat(spi, 0x7D); in kwh043st20_f01_spi_startup()
368 spi_write_com(spi, 0xD50C); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
369 spi_write_com(spi, 0xD50D); spi_write_dat(spi, 0x9D); in kwh043st20_f01_spi_startup()
370 spi_write_com(spi, 0xD50E); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
371 spi_write_com(spi, 0xD50F); spi_write_dat(spi, 0xCC); in kwh043st20_f01_spi_startup()
372 spi_write_com(spi, 0xD510); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
373 spi_write_com(spi, 0xD511); spi_write_dat(spi, 0xF3); in kwh043st20_f01_spi_startup()
374 spi_write_com(spi, 0xD512); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
375 spi_write_com(spi, 0xD513); spi_write_dat(spi, 0x32); in kwh043st20_f01_spi_startup()
376 spi_write_com(spi, 0xD514); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
377 spi_write_com(spi, 0xD515); spi_write_dat(spi, 0x63); in kwh043st20_f01_spi_startup()
378 spi_write_com(spi, 0xD516); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
379 spi_write_com(spi, 0xD517); spi_write_dat(spi, 0xB1); in kwh043st20_f01_spi_startup()
380 spi_write_com(spi, 0xD518); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
381 spi_write_com(spi, 0xD519); spi_write_dat(spi, 0xF0); in kwh043st20_f01_spi_startup()
382 spi_write_com(spi, 0xD51A); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
383 spi_write_com(spi, 0xD51B); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
384 spi_write_com(spi, 0xD51C); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
385 spi_write_com(spi, 0xD51D); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
386 spi_write_com(spi, 0xD51E); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
387 spi_write_com(spi, 0xD51F); spi_write_dat(spi, 0x67); in kwh043st20_f01_spi_startup()
388 spi_write_com(spi, 0xD520); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
389 spi_write_com(spi, 0xD521); spi_write_dat(spi, 0x90); in kwh043st20_f01_spi_startup()
390 spi_write_com(spi, 0xD522); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
391 spi_write_com(spi, 0xD523); spi_write_dat(spi, 0xCB); in kwh043st20_f01_spi_startup()
392 spi_write_com(spi, 0xD524); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
393 spi_write_com(spi, 0xD525); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
394 spi_write_com(spi, 0xD526); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
395 spi_write_com(spi, 0xD527); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
396 spi_write_com(spi, 0xD528); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
397 spi_write_com(spi, 0xD529); spi_write_dat(spi, 0x51); in kwh043st20_f01_spi_startup()
398 spi_write_com(spi, 0xD52A); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
399 spi_write_com(spi, 0xD52B); spi_write_dat(spi, 0x80); in kwh043st20_f01_spi_startup()
400 spi_write_com(spi, 0xD52C); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
401 spi_write_com(spi, 0xD52D); spi_write_dat(spi, 0x9F); in kwh043st20_f01_spi_startup()
402 spi_write_com(spi, 0xD52E); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
403 spi_write_com(spi, 0xD52F); spi_write_dat(spi, 0xBE); in kwh043st20_f01_spi_startup()
404 spi_write_com(spi, 0xD530); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
405 spi_write_com(spi, 0xD531); spi_write_dat(spi, 0xF9); in kwh043st20_f01_spi_startup()
406 spi_write_com(spi, 0xD532); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
407 spi_write_com(spi, 0xD533); spi_write_dat(spi, 0xFF); in kwh043st20_f01_spi_startup()
409 spi_write_com(spi, 0xD600); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
410 spi_write_com(spi, 0xD601); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
411 spi_write_com(spi, 0xD602); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
412 spi_write_com(spi, 0xD603); spi_write_dat(spi, 0x15); in kwh043st20_f01_spi_startup()
413 spi_write_com(spi, 0xD604); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
414 spi_write_com(spi, 0xD605); spi_write_dat(spi, 0x30); in kwh043st20_f01_spi_startup()
415 spi_write_com(spi, 0xD606); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
416 spi_write_com(spi, 0xD607); spi_write_dat(spi, 0x47); in kwh043st20_f01_spi_startup()
417 spi_write_com(spi, 0xD608); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
418 spi_write_com(spi, 0xD609); spi_write_dat(spi, 0x5B); in kwh043st20_f01_spi_startup()
419 spi_write_com(spi, 0xD60A); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
420 spi_write_com(spi, 0xD60B); spi_write_dat(spi, 0x7D); in kwh043st20_f01_spi_startup()
421 spi_write_com(spi, 0xD60C); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
422 spi_write_com(spi, 0xD60D); spi_write_dat(spi, 0x9D); in kwh043st20_f01_spi_startup()
423 spi_write_com(spi, 0xD60E); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
424 spi_write_com(spi, 0xD60F); spi_write_dat(spi, 0xCC); in kwh043st20_f01_spi_startup()
425 spi_write_com(spi, 0xD610); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
426 spi_write_com(spi, 0xD611); spi_write_dat(spi, 0xF3); in kwh043st20_f01_spi_startup()
427 spi_write_com(spi, 0xD612); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
428 spi_write_com(spi, 0xD613); spi_write_dat(spi, 0x32); in kwh043st20_f01_spi_startup()
429 spi_write_com(spi, 0xD614); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
430 spi_write_com(spi, 0xD615); spi_write_dat(spi, 0x63); in kwh043st20_f01_spi_startup()
431 spi_write_com(spi, 0xD616); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
432 spi_write_com(spi, 0xD617); spi_write_dat(spi, 0xB1); in kwh043st20_f01_spi_startup()
433 spi_write_com(spi, 0xD618); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
434 spi_write_com(spi, 0xD619); spi_write_dat(spi, 0xF0); in kwh043st20_f01_spi_startup()
435 spi_write_com(spi, 0xD61A); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
436 spi_write_com(spi, 0xD61B); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
437 spi_write_com(spi, 0xD61C); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
438 spi_write_com(spi, 0xD61D); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
439 spi_write_com(spi, 0xD61E); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
440 spi_write_com(spi, 0xD61F); spi_write_dat(spi, 0x67); in kwh043st20_f01_spi_startup()
441 spi_write_com(spi, 0xD620); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
442 spi_write_com(spi, 0xD621); spi_write_dat(spi, 0x90); in kwh043st20_f01_spi_startup()
443 spi_write_com(spi, 0xD622); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
444 spi_write_com(spi, 0xD623); spi_write_dat(spi, 0xCB); in kwh043st20_f01_spi_startup()
445 spi_write_com(spi, 0xD624); spi_write_dat(spi, 0x02); in kwh043st20_f01_spi_startup()
446 spi_write_com(spi, 0xD625); spi_write_dat(spi, 0xF2); in kwh043st20_f01_spi_startup()
447 spi_write_com(spi, 0xD626); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
448 spi_write_com(spi, 0xD627); spi_write_dat(spi, 0x2A); in kwh043st20_f01_spi_startup()
449 spi_write_com(spi, 0xD628); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
450 spi_write_com(spi, 0xD629); spi_write_dat(spi, 0x51); in kwh043st20_f01_spi_startup()
451 spi_write_com(spi, 0xD62A); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
452 spi_write_com(spi, 0xD62B); spi_write_dat(spi, 0x80); in kwh043st20_f01_spi_startup()
453 spi_write_com(spi, 0xD62C); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
454 spi_write_com(spi, 0xD62D); spi_write_dat(spi, 0x9F); in kwh043st20_f01_spi_startup()
455 spi_write_com(spi, 0xD62E); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
456 spi_write_com(spi, 0xD62F); spi_write_dat(spi, 0xBE); in kwh043st20_f01_spi_startup()
457 spi_write_com(spi, 0xD630); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
458 spi_write_com(spi, 0xD631); spi_write_dat(spi, 0xF9); in kwh043st20_f01_spi_startup()
459 spi_write_com(spi, 0xD632); spi_write_dat(spi, 0x03); in kwh043st20_f01_spi_startup()
460 spi_write_com(spi, 0xD633); spi_write_dat(spi, 0xFF); in kwh043st20_f01_spi_startup()
463 spi_write_com(spi, 0xF000); spi_write_dat(spi, 0x55); in kwh043st20_f01_spi_startup()
464 spi_write_com(spi, 0xF001); spi_write_dat(spi, 0xAA); in kwh043st20_f01_spi_startup()
465 spi_write_com(spi, 0xF002); spi_write_dat(spi, 0x52); in kwh043st20_f01_spi_startup()
466 spi_write_com(spi, 0xF003); spi_write_dat(spi, 0x08); in kwh043st20_f01_spi_startup()
467 spi_write_com(spi, 0xF004); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
470 spi_write_com(spi, 0xB100); spi_write_dat(spi, 0xFC); in kwh043st20_f01_spi_startup()
471 spi_write_com(spi, 0xB101); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
474 spi_write_com(spi, 0xB600); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
477 spi_write_com(spi, 0xB700); spi_write_dat(spi, 0x70); in kwh043st20_f01_spi_startup()
478 spi_write_com(spi, 0xB701); spi_write_dat(spi, 0x70); in kwh043st20_f01_spi_startup()
481 spi_write_com(spi, 0xB800); spi_write_dat(spi, 0x01); in kwh043st20_f01_spi_startup()
482 spi_write_com(spi, 0xB801); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
483 spi_write_com(spi, 0xB802); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
484 spi_write_com(spi, 0xB803); spi_write_dat(spi, 0x05); in kwh043st20_f01_spi_startup()
487 spi_write_com(spi, 0xBC00); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
488 spi_write_com(spi, 0xBC01); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
489 spi_write_com(spi, 0xBC02); spi_write_dat(spi, 0x00); in kwh043st20_f01_spi_startup()
492 spi_write_com(spi, 0xC900); spi_write_dat(spi, 0xD0); in kwh043st20_f01_spi_startup()
493 spi_write_com(spi, 0xC901); spi_write_dat(spi, 0x82); in kwh043st20_f01_spi_startup()
494 spi_write_com(spi, 0xC902); spi_write_dat(spi, 0x50); in kwh043st20_f01_spi_startup()
495 spi_write_com(spi, 0xC903); spi_write_dat(spi, 0x50); in kwh043st20_f01_spi_startup()
496 spi_write_com(spi, 0xC904); spi_write_dat(spi, 0x50); in kwh043st20_f01_spi_startup()
498 spi_write_com(spi, 0x3A00); spi_write_dat(spi, 0x55); in kwh043st20_f01_spi_startup()
500 spi_write_com(spi, 0x1100); in kwh043st20_f01_spi_startup()
502 spi_write_com(spi, 0x2900); in kwh043st20_f01_spi_startup()
505 spi_write_com(spi, 0x2C00); in kwh043st20_f01_spi_startup()
509 spi_free_slave(spi); in kwh043st20_f01_spi_startup()