5 /* initial register set for PCF50606 in HXD8 devices */
6 const u_int8_t pcf50606_initial_regs
[__NUM_PCF50606_REGS
] = {
7 [PCF50606_REG_OOCS
] = 0x00,
9 [PCF50606_REG_INT1M
] = PCF50606_INT1_SECOND
,
10 [PCF50606_REG_INT2M
] = PCF50606_INT2_CHGFOK
|
11 PCF50606_INT2_CHGERR
|
12 PCF50606_INT2_CHGFRDY
|
13 PCF50606_INT2_CHGPROT
|
14 PCF50606_INT2_CHGWD10S
|
15 PCF50606_INT2_CHGWDEXP
,
16 [PCF50606_REG_INT3M
] = PCF50606_INT3_TSCPRES
,
17 [PCF50606_REG_OOCC1
] = PCF50606_OOCC1_RTCWAK
|
18 PCF50606_OOCC1_CHGWAK
&
19 PCF50606_OOCC1_EXTONWAK_NO_WAKEUP
,
20 [PCF50606_REG_OOCC2
] = PCF50606_OOCC2_ONKEYDB_14ms
|
21 PCF50606_OOCC2_EXTONDB_14ms
,
23 [PCF50606_REG_PSSC
] = 0x00,
24 [PCF50606_REG_PWROKM
] = 0x00,
26 [PCF50606_REG_DCDC1
] = 0xf0, /* CORE_1V3: on */
27 [PCF50606_REG_DCDC2
] = 0x00,
28 [PCF50606_REG_DCDC3
] = 0x00,
29 [PCF50606_REG_DCDC4
] = 0x30, /* 1.25A */
31 [PCF50606_REG_DCDEC1
] = 0xe8, /* IO1_3V3: off */
32 [PCF50606_REG_DCDEC2
] = 0x00,
34 [PCF50606_REG_DCUDC1
] = 0x08, /* RF_3V3: off */
35 [PCF50606_REG_DCUDC2
] = 0x30, /* 1.25A current limit */
37 [PCF50606_REG_IOREGC
] = 0xf8, /* AUDIO_3V3: on */
39 [PCF50606_REG_D1REGC1
] = 0xf8, /* RC_3V3: on */
41 [PCF50606_REG_D2REGC1
] = 0x18, /* GPS_3V3: off */
43 [PCF50606_REG_D3REGC1
] = 0xf8, /* IO2_3V3: off */
45 [PCF50606_REG_LPREGC1
] = 0xf8, /* LCM_3V3: on */
46 [PCF50606_REG_LPREGC2
] = 0x00,
48 [PCF50606_REG_MBCC1
] = 0x00, /* charger unused */
49 [PCF50606_REG_MBCC2
] = 0x00, /* unlimited charging */
50 [PCF50606_REG_MBCC3
] = 0x1a, /* 0.2*Ifast, 4.20V */
51 [PCF50606_REG_BBCC
] = 0x1f, /* 400uA */
52 [PCF50606_REG_ADCC1
] = 0x00,
53 [PCF50606_REG_ADCC2
] = 0x00,
55 [PCF50606_REG_ACDC1
] = 0x00,
56 [PCF50606_REG_BVMC
] = PCF50606_BVMC_THRSHLD_3V3
,
57 [PCF50606_REG_PWMC1
] = 0x1f, /* clock: 512 DC: 15/16*/
58 [PCF50606_REG_LEDC1
] = 0x00,
59 [PCF50606_REG_LEDC2
] = 0x00,
60 [PCF50606_REG_GPOC1
] = 0x03, /* PWM ACTIVE */
61 [PCF50606_REG_GPOC2
] = 0x07, /* back light pull low */
62 [PCF50606_REG_GPOC3
] = 0x00,
63 [PCF50606_REG_GPOC4
] = 0x00,
64 [PCF50606_REG_GPOC5
] = 0x00,