-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathKconfig
813 lines (736 loc) · 32.9 KB
/
Kconfig
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
menu "Power system configuration (AXP192)"
menu "Output control"
config AXP192_DCDC13_LDO23_CONTROL_BIT6_SELECTED
bool "Enable EXTEN"
default y
config AXP192_DCDC13_LDO23_CONTROL_BIT4_SELECTED
bool "Enable DC-DC2"
default y
config AXP192_DCDC13_LDO23_CONTROL_BIT3_SELECTED
bool "Enable LDO3"
default y
config AXP192_DCDC13_LDO23_CONTROL_BIT2_SELECTED
bool "Enable LDO2"
default y
config AXP192_GPIO0_CONTROL_LDOIO0_SELECTED
bool "Enable LDOIO0"
default y
config AXP192_DCDC13_LDO23_CONTROL_BIT1_SELECTED
bool "Enable DC-DC3"
default y
config AXP192_DCDC13_LDO23_CONTROL_BIT0_SELECTED
bool "Enable DC-DC1"
default y
endmenu
config AXP192_EXTEN_DCDC2_CONTROL_BIT2
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT6_SELECTED
default 0x04 if AXP192_DCDC13_LDO23_CONTROL_BIT6_SELECTED
config AXP192_EXTEN_DCDC2_CONTROL_BIT0
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT4_SELECTED
default 0x01 if AXP192_DCDC13_LDO23_CONTROL_BIT4_SELECTED
config AXP192_DCDC13_LDO23_CONTROL_BIT6
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT6_SELECTED
default 0x40 if AXP192_DCDC13_LDO23_CONTROL_BIT6_SELECTED
config AXP192_DCDC13_LDO23_CONTROL_BIT4
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT4_SELECTED
default 0x10 if AXP192_DCDC13_LDO23_CONTROL_BIT4_SELECTED
config AXP192_DCDC13_LDO23_CONTROL_BIT3
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT3_SELECTED
default 0x08 if AXP192_DCDC13_LDO23_CONTROL_BIT3_SELECTED
config AXP192_DCDC13_LDO23_CONTROL_BIT2
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT2_SELECTED
default 0x04 if AXP192_DCDC13_LDO23_CONTROL_BIT2_SELECTED
config AXP192_GPIO0_CONTROL_BIT20
hex
default 0x07 if !AXP192_GPIO0_CONTROL_LDOIO0_SELECTED
default 0x02 if AXP192_GPIO0_CONTROL_LDOIO0_SELECTED
config AXP192_DCDC13_LDO23_CONTROL_BIT1
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT1_SELECTED
default 0x02 if AXP192_DCDC13_LDO23_CONTROL_BIT1_SELECTED
config AXP192_DCDC13_LDO23_CONTROL_BIT0
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT0_SELECTED
default 0x01 if AXP192_DCDC13_LDO23_CONTROL_BIT0_SELECTED
menu "Output voltage"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74
hex
default 0x00 if !AXP192_GPIO0_CONTROL_LDOIO0_SELECTED
config AXP192_LDO23_VOLTAGE_BIT74
hex
default 0x00 if !AXP192_GPIO0_CONTROL_LDOIO0_SELECTED
config AXP192_LDO23_VOLTAGE_BIT30
hex
default 0x00 if !AXP192_GPIO0_CONTROL_LDOIO0_SELECTED
config AXP192_DCDC1_VOLTAGE_BIT60
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT0_SELECTED
config AXP192_DCDC3_VOLTAGE_BIT60
hex
default 0x00 if !AXP192_DCDC13_LDO23_CONTROL_BIT1_SELECTED
if AXP192_GPIO0_CONTROL_LDOIO0_SELECTED
choice AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74
prompt "LDOIO0 output voltage"
default AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V0
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_1V8
bool "1.8V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_1V9
bool "1.9V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V0
bool "2.0V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V1
bool "2.1V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V2
bool "2.2V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V3
bool "2.3V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V3
bool "2.4V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V4
bool "2.5V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V5
bool "2.6V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V6
bool "2.6V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V7
bool "2.7V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V8
bool "2.8V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V9
bool "2.9V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V0
bool "3.0V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V1
bool "3.1V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V2
bool "3.2V"
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V3
bool "3.3V"
endchoice
config AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74
hex
default 0x00 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_1V8
default 0x10 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_1V9
default 0x20 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V0
default 0x30 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V1
default 0x40 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V2
default 0x50 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V3
default 0x60 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V4
default 0x70 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V5
default 0x80 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V6
default 0x90 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V7
default 0xa0 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V8
default 0xb0 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_2V9
default 0xc0 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V0
default 0xd0 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V1
default 0xe0 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V2
default 0xf0 if AXP192_GPIO0_LDOIO0_VOLTAGE_BIT74_3V3
endif
choice AXP192_LDO23_VOLTAGE_BIT74
prompt "LDO2 output voltage"
default AXP192_LDO23_VOLTAGE_BIT74_3V0
config AXP192_LDO23_VOLTAGE_BIT74_1V8
bool "1.8V"
config AXP192_LDO23_VOLTAGE_BIT74_1V9
bool "1.9V"
config AXP192_LDO23_VOLTAGE_BIT74_2V0
bool "2.0V"
config AXP192_LDO23_VOLTAGE_BIT74_2V1
bool "2.1V"
config AXP192_LDO23_VOLTAGE_BIT74_2V2
bool "2.2V"
config AXP192_LDO23_VOLTAGE_BIT74_2V3
bool "2.3V"
config AXP192_LDO23_VOLTAGE_BIT74_2V3
bool "2.4V"
config AXP192_LDO23_VOLTAGE_BIT74_2V4
bool "2.5V"
config AXP192_LDO23_VOLTAGE_BIT74_2V5
bool "2.6V"
config AXP192_LDO23_VOLTAGE_BIT74_2V6
bool "2.6V"
config AXP192_LDO23_VOLTAGE_BIT74_2V7
bool "2.7V"
config AXP192_LDO23_VOLTAGE_BIT74_2V8
bool "2.8V"
config AXP192_LDO23_VOLTAGE_BIT74_2V9
bool "2.9V"
config AXP192_LDO23_VOLTAGE_BIT74_3V0
bool "3.0V"
config AXP192_LDO23_VOLTAGE_BIT74_3V1
bool "3.1V"
config AXP192_LDO23_VOLTAGE_BIT74_3V2
bool "3.2V"
config AXP192_LDO23_VOLTAGE_BIT74_3V3
bool "3.3V"
endchoice
config AXP192_LDO23_VOLTAGE_BIT74
hex
default 0x00 if AXP192_LDO23_VOLTAGE_BIT74_1V8
default 0x10 if AXP192_LDO23_VOLTAGE_BIT74_1V9
default 0x20 if AXP192_LDO23_VOLTAGE_BIT74_2V0
default 0x30 if AXP192_LDO23_VOLTAGE_BIT74_2V1
default 0x40 if AXP192_LDO23_VOLTAGE_BIT74_2V2
default 0x50 if AXP192_LDO23_VOLTAGE_BIT74_2V3
default 0x60 if AXP192_LDO23_VOLTAGE_BIT74_2V4
default 0x70 if AXP192_LDO23_VOLTAGE_BIT74_2V5
default 0x80 if AXP192_LDO23_VOLTAGE_BIT74_2V6
default 0x90 if AXP192_LDO23_VOLTAGE_BIT74_2V7
default 0xa0 if AXP192_LDO23_VOLTAGE_BIT74_2V8
default 0xb0 if AXP192_LDO23_VOLTAGE_BIT74_2V9
default 0xc0 if AXP192_LDO23_VOLTAGE_BIT74_3V0
default 0xd0 if AXP192_LDO23_VOLTAGE_BIT74_3V1
default 0xe0 if AXP192_LDO23_VOLTAGE_BIT74_3V2
default 0xf0 if AXP192_LDO23_VOLTAGE_BIT74_3V3
choice AXP192_LDO23_VOLTAGE_BIT30
prompt "LDO3 output voltage"
default AXP192_LDO23_VOLTAGE_BIT30_3V0
config AXP192_LDO23_VOLTAGE_BIT30_1V8
bool "1.8V"
config AXP192_LDO23_VOLTAGE_BIT30_1V9
bool "1.9V"
config AXP192_LDO23_VOLTAGE_BIT30_2V0
bool "2.0V"
config AXP192_LDO23_VOLTAGE_BIT30_2V1
bool "2.1V"
config AXP192_LDO23_VOLTAGE_BIT30_2V2
bool "2.2V"
config AXP192_LDO23_VOLTAGE_BIT30_2V3
bool "2.3V"
config AXP192_LDO23_VOLTAGE_BIT30_2V3
bool "2.4V"
config AXP192_LDO23_VOLTAGE_BIT30_2V4
bool "2.5V"
config AXP192_LDO23_VOLTAGE_BIT30_2V5
bool "2.6V"
config AXP192_LDO23_VOLTAGE_BIT30_2V6
bool "2.6V"
config AXP192_LDO23_VOLTAGE_BIT30_2V7
bool "2.7V"
config AXP192_LDO23_VOLTAGE_BIT30_2V8
bool "2.8V"
config AXP192_LDO23_VOLTAGE_BIT30_2V9
bool "2.9V"
config AXP192_LDO23_VOLTAGE_BIT30_3V0
bool "3.0V"
config AXP192_LDO23_VOLTAGE_BIT30_3V1
bool "3.1V"
config AXP192_LDO23_VOLTAGE_BIT30_3V2
bool "3.2V"
config AXP192_LDO23_VOLTAGE_BIT30_3V3
bool "3.3V"
endchoice
config AXP192_LDO23_VOLTAGE_BIT30
hex
default 0x00 if AXP192_LDO23_VOLTAGE_BIT30_1V8
default 0x01 if AXP192_LDO23_VOLTAGE_BIT30_1V9
default 0x02 if AXP192_LDO23_VOLTAGE_BIT30_2V0
default 0x03 if AXP192_LDO23_VOLTAGE_BIT30_2V1
default 0x04 if AXP192_LDO23_VOLTAGE_BIT30_2V2
default 0x05 if AXP192_LDO23_VOLTAGE_BIT30_2V3
default 0x06 if AXP192_LDO23_VOLTAGE_BIT30_2V4
default 0x07 if AXP192_LDO23_VOLTAGE_BIT30_2V5
default 0x08 if AXP192_LDO23_VOLTAGE_BIT30_2V6
default 0x09 if AXP192_LDO23_VOLTAGE_BIT30_2V7
default 0x0a if AXP192_LDO23_VOLTAGE_BIT30_2V8
default 0x0b if AXP192_LDO23_VOLTAGE_BIT30_2V9
default 0x0c if AXP192_LDO23_VOLTAGE_BIT30_3V0
default 0x0d if AXP192_LDO23_VOLTAGE_BIT30_3V1
default 0x0e if AXP192_LDO23_VOLTAGE_BIT30_3V2
default 0x0f if AXP192_LDO23_VOLTAGE_BIT30_3V3
if AXP192_DCDC13_LDO23_CONTROL_BIT0_SELECTED
choice AXP192_DCDC1_VOLTAGE_BIT60
prompt "DC-DC1 output voltage"
default AXP192_DCDC1_VOLTAGE_BIT60_3V0
config AXP192_DCDC1_VOLTAGE_BIT60_0V7
bool "0.7V"
config AXP192_DCDC1_VOLTAGE_BIT60_0V8
bool "0.8V"
config AXP192_DCDC1_VOLTAGE_BIT60_0V9
bool "0.9V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V0
bool "1.0V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V1
bool "1.1V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V2
bool "1.2V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V3
bool "1.3V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V4
bool "1.4V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V5
bool "1.5V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V6
bool "1.6V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V7
bool "1.7V"
config AXP192_DCDC1_VOLTAGE_BIT60_1V8
bool "1.8"
config AXP192_DCDC1_VOLTAGE_BIT60_1V9
bool "1.9V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V0
bool "2.0V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V1
bool "2.1V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V2
bool "2.2V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V3
bool "2.3V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V4
bool "2.4V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V5
bool "2.5V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V6
bool "2.6V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V7
bool "2.7V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V8
bool "2.8V"
config AXP192_DCDC1_VOLTAGE_BIT60_2V9
bool "2.9V"
config AXP192_DCDC1_VOLTAGE_BIT60_3V0
bool "3.0V"
config AXP192_DCDC1_VOLTAGE_BIT60_3V1
bool "3.1V"
config AXP192_DCDC1_VOLTAGE_BIT60_3V2
bool "3.2V"
config AXP192_DCDC1_VOLTAGE_BIT60_3V3
bool "3.3V"
config AXP192_DCDC1_VOLTAGE_BIT60_3V4
bool "3.4V"
config AXP192_DCDC1_VOLTAGE_BIT60_3V5
bool "3.5V"
endchoice
config AXP192_DCDC1_VOLTAGE_BIT60
hex
default 0x00 if AXP192_DCDC1_VOLTAGE_BIT60_0V7
default 0x04 if AXP192_DCDC1_VOLTAGE_BIT60_0V8
default 0x08 if AXP192_DCDC1_VOLTAGE_BIT60_0V9
default 0x0c if AXP192_DCDC1_VOLTAGE_BIT60_1V0
default 0x10 if AXP192_DCDC1_VOLTAGE_BIT60_1V1
default 0x14 if AXP192_DCDC1_VOLTAGE_BIT60_1V2
default 0x18 if AXP192_DCDC1_VOLTAGE_BIT60_1V3
default 0x1c if AXP192_DCDC1_VOLTAGE_BIT60_1V4
default 0x20 if AXP192_DCDC1_VOLTAGE_BIT60_1V5
default 0x24 if AXP192_DCDC1_VOLTAGE_BIT60_1V6
default 0x28 if AXP192_DCDC1_VOLTAGE_BIT60_1V7
default 0x2c if AXP192_DCDC1_VOLTAGE_BIT60_1V8
default 0x30 if AXP192_DCDC1_VOLTAGE_BIT60_1V9
default 0x34 if AXP192_DCDC1_VOLTAGE_BIT60_2V0
default 0x38 if AXP192_DCDC1_VOLTAGE_BIT60_2V1
default 0x3c if AXP192_DCDC1_VOLTAGE_BIT60_2V2
default 0x40 if AXP192_DCDC1_VOLTAGE_BIT60_2V3
default 0x44 if AXP192_DCDC1_VOLTAGE_BIT60_2V4
default 0x48 if AXP192_DCDC1_VOLTAGE_BIT60_2V5
default 0x4c if AXP192_DCDC1_VOLTAGE_BIT60_2V6
default 0x50 if AXP192_DCDC1_VOLTAGE_BIT60_2V7
default 0x54 if AXP192_DCDC1_VOLTAGE_BIT60_2V8
default 0x58 if AXP192_DCDC1_VOLTAGE_BIT60_2V9
default 0x5c if AXP192_DCDC1_VOLTAGE_BIT60_3V0
default 0x60 if AXP192_DCDC1_VOLTAGE_BIT60_3V1
default 0x64 if AXP192_DCDC1_VOLTAGE_BIT60_3V2
default 0x68 if AXP192_DCDC1_VOLTAGE_BIT60_3V3
default 0x6c if AXP192_DCDC1_VOLTAGE_BIT60_3V4
default 0x70 if AXP192_DCDC1_VOLTAGE_BIT60_3V5
endif
if AXP192_DCDC13_LDO23_CONTROL_BIT1_SELECTED
choice AXP192_DCDC3_VOLTAGE_BIT60
prompt "DC-DC3 output voltage"
default AXP192_DCDC3_VOLTAGE_BIT60_3V0
config AXP192_DCDC3_VOLTAGE_BIT60_0V7
bool "0.7V"
config AXP192_DCDC3_VOLTAGE_BIT60_0V8
bool "0.8V"
config AXP192_DCDC3_VOLTAGE_BIT60_0V9
bool "0.9V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V0
bool "1.0V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V1
bool "1.1V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V2
bool "1.2V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V3
bool "1.3V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V4
bool "1.4V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V5
bool "1.5V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V6
bool "1.6V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V7
bool "1.7V"
config AXP192_DCDC3_VOLTAGE_BIT60_1V8
bool "1.8"
config AXP192_DCDC3_VOLTAGE_BIT60_1V9
bool "1.9V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V0
bool "2.0V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V1
bool "2.1V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V2
bool "2.2V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V3
bool "2.3V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V4
bool "2.4V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V5
bool "2.5V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V6
bool "2.6V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V7
bool "2.7V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V8
bool "2.8V"
config AXP192_DCDC3_VOLTAGE_BIT60_2V9
bool "2.9V"
config AXP192_DCDC3_VOLTAGE_BIT60_3V0
bool "3.0V"
config AXP192_DCDC3_VOLTAGE_BIT60_3V1
bool "3.1V"
config AXP192_DCDC3_VOLTAGE_BIT60_3V2
bool "3.2V"
config AXP192_DCDC3_VOLTAGE_BIT60_3V3
bool "3.3V"
config AXP192_DCDC3_VOLTAGE_BIT60_3V4
bool "3.4V"
config AXP192_DCDC3_VOLTAGE_BIT60_3V5
bool "3.5V"
endchoice
config AXP192_DCDC3_VOLTAGE_BIT60
hex
default 0x00 if AXP192_DCDC3_VOLTAGE_BIT60_0V7
default 0x04 if AXP192_DCDC3_VOLTAGE_BIT60_0V8
default 0x08 if AXP192_DCDC3_VOLTAGE_BIT60_0V9
default 0x0c if AXP192_DCDC3_VOLTAGE_BIT60_1V0
default 0x10 if AXP192_DCDC3_VOLTAGE_BIT60_1V1
default 0x14 if AXP192_DCDC3_VOLTAGE_BIT60_1V2
default 0x18 if AXP192_DCDC3_VOLTAGE_BIT60_1V3
default 0x1c if AXP192_DCDC3_VOLTAGE_BIT60_1V4
default 0x20 if AXP192_DCDC3_VOLTAGE_BIT60_1V5
default 0x24 if AXP192_DCDC3_VOLTAGE_BIT60_1V6
default 0x28 if AXP192_DCDC3_VOLTAGE_BIT60_1V7
default 0x2c if AXP192_DCDC3_VOLTAGE_BIT60_1V8
default 0x30 if AXP192_DCDC3_VOLTAGE_BIT60_1V9
default 0x34 if AXP192_DCDC3_VOLTAGE_BIT60_2V0
default 0x38 if AXP192_DCDC3_VOLTAGE_BIT60_2V1
default 0x3c if AXP192_DCDC3_VOLTAGE_BIT60_2V2
default 0x40 if AXP192_DCDC3_VOLTAGE_BIT60_2V3
default 0x44 if AXP192_DCDC3_VOLTAGE_BIT60_2V4
default 0x48 if AXP192_DCDC3_VOLTAGE_BIT60_2V5
default 0x4c if AXP192_DCDC3_VOLTAGE_BIT60_2V6
default 0x50 if AXP192_DCDC3_VOLTAGE_BIT60_2V7
default 0x54 if AXP192_DCDC3_VOLTAGE_BIT60_2V8
default 0x58 if AXP192_DCDC3_VOLTAGE_BIT60_2V9
default 0x5c if AXP192_DCDC3_VOLTAGE_BIT60_3V0
default 0x60 if AXP192_DCDC3_VOLTAGE_BIT60_3V1
default 0x64 if AXP192_DCDC3_VOLTAGE_BIT60_3V2
default 0x68 if AXP192_DCDC3_VOLTAGE_BIT60_3V3
default 0x6c if AXP192_DCDC3_VOLTAGE_BIT60_3V4
default 0x70 if AXP192_DCDC3_VOLTAGE_BIT60_3V5
endif
endmenu
menu "ADC control"
config AXP192_ADC_ENABLE_1_BIT7_SELECTED
bool "Enable BAT boltage ADC"
config AXP192_ADC_ENABLE_1_BIT6_SELECTED
bool "Enable BAT current ADC"
config AXP192_ADC_ENABLE_1_BIT5_SELECTED
bool "Enable ACIN voltage ADC"
config AXP192_ADC_ENABLE_1_BIT4_SELECTED
bool "Enable ACIN current ADC"
config AXP192_ADC_ENABLE_1_BIT3_SELECTED
bool "Enable VBUS voltage ADC"
config AXP192_ADC_ENABLE_1_BIT2_SELECTED
bool "Enable VBUS current ADC"
config AXP192_ADC_ENABLE_1_BIT1_SELECTED
bool "Enable APS voltage ADC"
config AXP192_ADC_ENABLE_1_BIT0_SELECTED
bool "Enable TS ADC"
endmenu
config AXP192_ADC_ENABLE_1_BIT7
hex
default 0x00 if !AXP192_ADC_ENABLE_1_BIT7_SELECTED
default 0x80 if AXP192_ADC_ENABLE_1_BIT7_SELECTED
config AXP192_ADC_ENABLE_1_BIT6
hex
default 0x00 if !AXP192_ADC_ENABLE_1_BIT6_SELECTED
default 0x40 if AXP192_ADC_ENABLE_1_BIT6_SELECTED
config AXP192_ADC_ENABLE_1_BIT5
hex
default 0x00 if !AXP192_ADC_ENABLE_1_BIT5_SELECTED
default 0x20 if AXP192_ADC_ENABLE_1_BIT5_SELECTED
config AXP192_ADC_ENABLE_1_BIT4
hex
default 0x00 if !AXP192_ADC_ENABLE_1_BIT4_SELECTED
default 0x10 if AXP192_ADC_ENABLE_1_BIT4_SELECTED
config AXP192_ADC_ENABLE_1_BIT3
hex
default 0x00 if !AXP192_ADC_ENABLE_1_BIT3_SELECTED
default 0x08 if AXP192_ADC_ENABLE_1_BIT3_SELECTED
config AXP192_ADC_ENABLE_1_BIT2
hex
default 0x00 if !AXP192_ADC_ENABLE_1_BIT2_SELECTED
default 0x04 if AXP192_ADC_ENABLE_1_BIT2_SELECTED
config AXP192_ADC_ENABLE_1_BIT1
hex
default 0x00 if !AXP192_ADC_ENABLE_1_BIT1_SELECTED
default 0x02 if AXP192_ADC_ENABLE_1_BIT1_SELECTED
config AXP192_ADC_ENABLE_1_BIT0
hex
default 0x00 if !AXP192_ADC_ENABLE_1_BIT0_SELECTED
default 0x01 if AXP192_ADC_ENABLE_1_BIT0_SELECTED
menu "Charge control"
config AXP192_CHARGE_CONTROL_1_BIT7_SELECTED
bool "Enable main battery charging"
config AXP192_CHARGE_CONTROL_1_BIT7
hex
default 0x00 if !AXP192_CHARGE_CONTROL_1_BIT7_SELECTED
default 0x80 if AXP192_CHARGE_CONTROL_1_BIT7_SELECTED
config AXP192_CHARGE_CONTROL_1_BIT65
hex
default 0x00 if !AXP192_CHARGE_CONTROL_1_BIT7_SELECTED
config AXP192_CHARGE_CONTROL_1_BIT30
hex
default 0x00 if !AXP192_CHARGE_CONTROL_1_BIT7_SELECTED
config AXP192_CHARGE_CONTROL_1_BIT4
hex
default 0x00 if !AXP192_CHARGE_CONTROL_1_BIT7_SELECTED
if AXP192_CHARGE_CONTROL_1_BIT7_SELECTED
choice AXP192_CHARGE_CONTROL_1_BIT65
prompt "Charge target voltage"
default AXP192_CHARGE_CONTROL_1_BIT65_42_SELECTED
config AXP192_CHARGE_CONTROL_1_BIT65_41_SELECTED
bool "4.1V"
config AXP192_CHARGE_CONTROL_1_BIT65_415_SELECTED
bool "4.15V"
config AXP192_CHARGE_CONTROL_1_BIT65_42_SELECTED
bool "4.2V"
config AXP192_CHARGE_CONTROL_1_BIT65_436_SELECTED
bool "4.36V"
endchoice
config AXP192_CHARGE_CONTROL_1_BIT65
hex
default 0x00 if AXP192_CHARGE_CONTROL_1_BIT65_41_SELECTED
default 0x20 if AXP192_CHARGE_CONTROL_1_BIT65_415_SELECTED
default 0x40 if AXP192_CHARGE_CONTROL_1_BIT65_42_SELECTED
default 0x60 if AXP192_CHARGE_CONTROL_1_BIT65_436_SELECTED
choice AXP192_CHARGE_CONTROL_1_BIT30
prompt "Charge current"
default AXP192_CHARGE_CONTROL_1_BIT30_100_SELECTED
config AXP192_CHARGE_CONTROL_1_BIT30_100_SELECTED
bool "100mA"
config AXP192_CHARGE_CONTROL_1_BIT30_190_SELECTED
bool "190mA"
config AXP192_CHARGE_CONTROL_1_BIT30_280_SELECTED
bool "280mA"
config AXP192_CHARGE_CONTROL_1_BIT30_360_SELECTED
bool "360mA"
config AXP192_CHARGE_CONTROL_1_BIT30_450_SELECTED
bool "450mA"
config AXP192_CHARGE_CONTROL_1_BIT30_550_SELECTED
bool "550mA"
config AXP192_CHARGE_CONTROL_1_BIT30_630_SELECTED
bool "630mA"
config AXP192_CHARGE_CONTROL_1_BIT30_700_SELECTED
bool "700mA"
config AXP192_CHARGE_CONTROL_1_BIT30_780_SELECTED
bool "780mA"
config AXP192_CHARGE_CONTROL_1_BIT30_880_SELECTED
bool "880mA"
config AXP192_CHARGE_CONTROL_1_BIT30_960_SELECTED
bool "960mA"
config AXP192_CHARGE_CONTROL_1_BIT30_1000_SELECTED
bool "1000mA"
config AXP192_CHARGE_CONTROL_1_BIT30_1160_SELECTED
bool "1160mA"
config AXP192_CHARGE_CONTROL_1_BIT30_1240_SELECTED
bool "1240mA"
config AXP192_CHARGE_CONTROL_1_BIT30_1320_SELECTED
bool "1320mA"
endchoice
config AXP192_CHARGE_CONTROL_1_BIT30
hex
default 0x00 if AXP192_CHARGE_CONTROL_1_BIT30_100_SELECTED
default 0x01 if AXP192_CHARGE_CONTROL_1_BIT30_190_SELECTED
default 0x02 if AXP192_CHARGE_CONTROL_1_BIT30_280_SELECTED
default 0x03 if AXP192_CHARGE_CONTROL_1_BIT30_360_SELECTED
default 0x04 if AXP192_CHARGE_CONTROL_1_BIT30_450_SELECTED
default 0x05 if AXP192_CHARGE_CONTROL_1_BIT30_550_SELECTED
default 0x06 if AXP192_CHARGE_CONTROL_1_BIT30_630_SELECTED
default 0x07 if AXP192_CHARGE_CONTROL_1_BIT30_700_SELECTED
default 0x08 if AXP192_CHARGE_CONTROL_1_BIT30_780_SELECTED
default 0x0a if AXP192_CHARGE_CONTROL_1_BIT30_880_SELECTED
default 0x0b if AXP192_CHARGE_CONTROL_1_BIT30_960_SELECTED
default 0x0c if AXP192_CHARGE_CONTROL_1_BIT30_1000_SELECTED
default 0x0d if AXP192_CHARGE_CONTROL_1_BIT30_1160_SELECTED
default 0x0e if AXP192_CHARGE_CONTROL_1_BIT30_1240_SELECTED
default 0x0f if AXP192_CHARGE_CONTROL_1_BIT30_1320_SELECTED
choice AXP192_CHARGE_CONTROL_1_BIT4
prompt "Charge end current"
help
When charging the battery chargin current will gradually will
gradually drop towards the end. This setting will determine when
to stop the charging process.
For example if set to 10% and charge current was set to 1000mA
charging will end when the charging current has dropped to 100mA.
default AXP192_CHARGE_CONTROL_1_BIT4_15_SELECTED
config AXP192_CHARGE_CONTROL_1_BIT4_10_SELECTED
bool "10%"
config AXP192_CHARGE_CONTROL_1_BIT4_15_SELECTED
bool "15%"
endchoice
config AXP192_CHARGE_CONTROL_1_BIT4
hex
default 0x00 if AXP192_CHARGE_CONTROL_1_BIT4_10_SELECTED
default 0x10 if AXP192_CHARGE_CONTROL_1_BIT4_15_SELECTED
endif
config AXP192_BATTERY_CHARGE_CONTROL_BIT7_SELECTED
bool "Enable backup battery charging"
config AXP192_BATTERY_CHARGE_CONTROL_BIT7
hex
default 0x00 if !AXP192_BATTERY_CHARGE_CONTROL_BIT7_SELECTED
default 0x80 if AXP192_BATTERY_CHARGE_CONTROL_BIT7_SELECTED
config AXP192_BATTERY_CHARGE_CONTROL_BIT65
hex
default 0x00 if !AXP192_BATTERY_CHARGE_CONTROL_BIT7_SELECTED
config AXP192_BATTERY_CHARGE_CONTROL_BIT10
hex
default 0x00 if !AXP192_BATTERY_CHARGE_CONTROL_BIT7_SELECTED
if AXP192_BATTERY_CHARGE_CONTROL_BIT7_SELECTED
choice AXP192_BATTERY_CHARGE_CONTROL_BIT65
prompt "Charge target voltage"
default AXP192_BATTERY_CHARGE_CONTROL_BIT65_30_SELECTED
config AXP192_BATTERY_CHARGE_CONTROL_BIT65_25_SELECTED
bool "2.5V"
config AXP192_BATTERY_CHARGE_CONTROL_BIT65_30_SELECTED
bool "3.0V"
config AXP192_BATTERY_CHARGE_CONTROL_BIT65_31_SELECTED
bool "3.1V"
config AXP192_BATTERY_CHARGE_CONTROL_BIT65_36_SELECTED
bool "3.6V"
endchoice
config AXP192_BATTERY_CHARGE_CONTROL_BIT65
hex
default 0x00 if AXP192_BATTERY_CHARGE_CONTROL_BIT65_31_SELECTED
default 0x20 if AXP192_BATTERY_CHARGE_CONTROL_BIT65_30_SELECTED
default 0x40 if AXP192_BATTERY_CHARGE_CONTROL_BIT65_36_SELECTED
default 0x60 if AXP192_BATTERY_CHARGE_CONTROL_BIT65_25_SELECTED
choice AXP192_BATTERY_CHARGE_CONTROL_BIT10
prompt "Charge current"
default AXP192_BATTERY_CHARGE_CONTROL_BIT10_50_SELECTED
config AXP192_BATTERY_CHARGE_CONTROL_BIT10_50_SELECTED
bool "50uA"
config AXP192_BATTERY_CHARGE_CONTROL_BIT10_100_SELECTED
bool "100uA"
config AXP192_BATTERY_CHARGE_CONTROL_BIT10_200_SELECTED
bool "200uA"
config AXP192_BATTERY_CHARGE_CONTROL_BIT10_400_SELECTED
bool "400mA"
endchoice
config AXP192_BATTERY_CHARGE_CONTROL_BIT10
hex
default 0x00 if AXP192_BATTERY_CHARGE_CONTROL_BIT10_50_SELECTED
default 0x01 if AXP192_BATTERY_CHARGE_CONTROL_BIT10_100_SELECTED
default 0x02 if AXP192_BATTERY_CHARGE_CONTROL_BIT10_200_SELECTED
default 0x03 if AXP192_BATTERY_CHARGE_CONTROL_BIT10_400_SELECTED
endif
endmenu
menu "GPIO control"
choice AXP192_GPIO1_CONTROL_BIT20
prompt "GPIO1 function"
default AXP192_GPIO1_CONTROL_BIT20_FLOATING_SELECTED
config AXP192_GPIO1_CONTROL_BIT20_NMOS_SELECTED
bool "NMOS open drain output"
config AXP192_GPIO1_CONTROL_BIT20_GENERAL_INPUT_SELECTED
bool "General input"
config AXP192_GPIO1_CONTROL_BIT20_PWM1_SELECTED
bool "PWM1, high output is VINT"
config AXP192_GPIO1_CONTROL_BIT20_ADC_INPUT_SELECTED
bool "ADC input"
config AXP192_GPIO1_CONTROL_BIT20_LOW_OUTPUT_SELECTED
bool "Low output"
config AXP192_GPIO1_CONTROL_BIT20_FLOATING_SELECTED
bool "Floating"
endchoice
config AXP192_GPIO1_CONTROL_BIT20
hex
default 0x00 if AXP192_GPIO1_CONTROL_BIT20_NMOS_SELECTED
default 0x01 if AXP192_GPIO1_CONTROL_BIT20_GENERAL_INPUT_SELECTED
default 0x02 if AXP192_GPIO1_CONTROL_BIT20_PWM1_SELECTED
default 0x04 if AXP192_GPIO1_CONTROL_BIT20_ADC_INPUT_SELECTED
default 0x05 if AXP192_GPIO1_CONTROL_BIT20_LOW_OUTPUT_SELECTED
default 0x07 if AXP192_GPIO1_CONTROL_BIT20_FLOATING_SELECTED
choice AXP192_GPIO2_CONTROL_BIT20
prompt "GPIO2 function"
default AXP192_GPIO2_CONTROL_BIT20_FLOATING_SELECTED
config AXP192_GPIO2_CONTROL_BIT20_NMOS_SELECTED
bool "NMOS open drain output"
config AXP192_GPIO2_CONTROL_BIT20_GENERAL_INPUT_SELECTED
bool "General input"
config AXP192_GPIO2_CONTROL_BIT20_PWM1_SELECTED
bool "PWM1, high output is VINT"
config AXP192_GPIO2_CONTROL_BIT20_ADC_INPUT_SELECTED
bool "ADC input"
config AXP192_GPIO2_CONTROL_BIT20_LOW_OUTPUT_SELECTED
bool "Low output"
config AXP192_GPIO2_CONTROL_BIT20_FLOATING_SELECTED
bool "Floating"
endchoice
config AXP192_GPIO2_CONTROL_BIT20
hex
default 0x00 if AXP192_GPIO2_CONTROL_BIT20_NMOS_SELECTED
default 0x01 if AXP192_GPIO2_CONTROL_BIT20_GENERAL_INPUT_SELECTED
default 0x02 if AXP192_GPIO2_CONTROL_BIT20_PWM1_SELECTED
default 0x04 if AXP192_GPIO2_CONTROL_BIT20_ADC_INPUT_SELECTED
default 0x05 if AXP192_GPIO2_CONTROL_BIT20_LOW_OUTPUT_SELECTED
default 0x07 if AXP192_GPIO2_CONTROL_BIT20_FLOATING_SELECTED
choice AXP192_GPIO43_FUNCTION_CONTROL_BIT10
prompt "GPIO3 function"
default AXP192_GPIO43_FUNCTION_CONTROL_BIT10_CHARGE_CONTROL_SELECTED
config AXP192_GPIO43_FUNCTION_CONTROL_BIT10_CHARGE_CONTROL_SELECTED
bool "External charge control"
config AXP192_GPIO43_FUNCTION_CONTROL_BIT10_NMOS_SELECTED
bool "NMOS open drain output"
config AXP192_GPIO43_FUNCTION_CONTROL_BIT10_GENERAL_INPUT_SELECTED
bool "General input"
config AXP192_GPIO43_FUNCTION_CONTROL_BIT10_ADC_INPUT_SELECTED
bool "ADC input"
endchoice
config AXP192_GPIO43_FUNCTION_CONTROL_BIT10
hex
default 0x00 if AXP192_GPIO43_FUNCTION_CONTROL_BIT10_CHARGE_CONTROL_SELECTED
default 0x01 if AXP192_GPIO43_FUNCTION_CONTROL_BIT10_NMOS_SELECTED
default 0x02 if AXP192_GPIO43_FUNCTION_CONTROL_BIT10_GENERAL_INPUT_SELECTED
default 0x03 if AXP192_GPIO43_FUNCTION_CONTROL_BIT10_ADC_INPUT_SELECTED
choice AXP192_GPIO43_FUNCTION_CONTROL_BIT32
prompt "GPIO4 function"
default AXP192_GPIO43_FUNCTION_CONTROL_BIT32_CHARGE_CONTROL_SELECTED
config AXP192_GPIO43_FUNCTION_CONTROL_BIT32_CHARGE_CONTROL_SELECTED
bool "External charge control"
config AXP192_GPIO43_FUNCTION_CONTROL_BIT32_NMOS_SELECTED
bool "NMOS open drain output"
config AXP192_GPIO43_FUNCTION_CONTROL_BIT32_GENERAL_INPUT_SELECTED
bool "General input"
endchoice
config AXP192_GPIO43_FUNCTION_CONTROL_BIT32
hex
default 0x00 if AXP192_GPIO43_FUNCTION_CONTROL_BIT32_CHARGE_CONTROL_SELECTED
default 0x04 if AXP192_GPIO43_FUNCTION_CONTROL_BIT32_NMOS_SELECTED
default 0x08 if AXP192_GPIO43_FUNCTION_CONTROL_BIT32_GENERAL_INPUT_SELECTED
config AXP192_GPIO43_FUNCTION_CONTROL_BIT7
hex
default 0x00 if AXP192_GPIO43_FUNCTION_CONTROL_BIT10_CHARGE_CONTROL_SELECTED
default 0x00 if AXP192_GPIO43_FUNCTION_CONTROL_BIT32_CHARGE_CONTROL_SELECTED
default 0x80 if AXP192_GPIO43_FUNCTION_CONTROL_BIT10_NMOS_SELECTED
default 0x80 if AXP192_GPIO43_FUNCTION_CONTROL_BIT10_GENERAL_INPUT_SELECTED
default 0x80 if AXP192_GPIO43_FUNCTION_CONTROL_BIT10_ADC_INPUT_SELECTED
default 0x80 if AXP192_GPIO43_FUNCTION_CONTROL_BIT32_NMOS_SELECTED
default 0x80 if AXP192_GPIO43_FUNCTION_CONTROL_BIT32_GENERAL_INPUT_SELECTED
endmenu
endmenu