Go to the documentation of this file.
15 #ifndef __MFD_WM831X_OTP_H__
16 #define __MFD_WM831X_OTP_H__
24 #define WM831X_UNIQUE_ID_MASK 0xFFFF
25 #define WM831X_UNIQUE_ID_SHIFT 0
26 #define WM831X_UNIQUE_ID_WIDTH 16
31 #define WM831X_UNIQUE_ID_MASK 0xFFFF
32 #define WM831X_UNIQUE_ID_SHIFT 0
33 #define WM831X_UNIQUE_ID_WIDTH 16
38 #define WM831X_UNIQUE_ID_MASK 0xFFFF
39 #define WM831X_UNIQUE_ID_SHIFT 0
40 #define WM831X_UNIQUE_ID_WIDTH 16
45 #define WM831X_UNIQUE_ID_MASK 0xFFFF
46 #define WM831X_UNIQUE_ID_SHIFT 0
47 #define WM831X_UNIQUE_ID_WIDTH 16
52 #define WM831X_UNIQUE_ID_MASK 0xFFFF
53 #define WM831X_UNIQUE_ID_SHIFT 0
54 #define WM831X_UNIQUE_ID_WIDTH 16
59 #define WM831X_UNIQUE_ID_MASK 0xFFFF
60 #define WM831X_UNIQUE_ID_SHIFT 0
61 #define WM831X_UNIQUE_ID_WIDTH 16
66 #define WM831X_UNIQUE_ID_MASK 0xFFFF
67 #define WM831X_UNIQUE_ID_SHIFT 0
68 #define WM831X_UNIQUE_ID_WIDTH 16
73 #define WM831X_UNIQUE_ID_MASK 0xFFFF
74 #define WM831X_UNIQUE_ID_SHIFT 0
75 #define WM831X_UNIQUE_ID_WIDTH 16
80 #define WM831X_OTP_FACT_ID_MASK 0xFFFE
81 #define WM831X_OTP_FACT_ID_SHIFT 1
82 #define WM831X_OTP_FACT_ID_WIDTH 15
83 #define WM831X_OTP_FACT_FINAL 0x0001
84 #define WM831X_OTP_FACT_FINAL_MASK 0x0001
85 #define WM831X_OTP_FACT_FINAL_SHIFT 0
86 #define WM831X_OTP_FACT_FINAL_WIDTH 1
91 #define WM831X_DC3_TRIM_MASK 0xF000
92 #define WM831X_DC3_TRIM_SHIFT 12
93 #define WM831X_DC3_TRIM_WIDTH 4
94 #define WM831X_DC2_TRIM_MASK 0x0FC0
95 #define WM831X_DC2_TRIM_SHIFT 6
96 #define WM831X_DC2_TRIM_WIDTH 6
97 #define WM831X_DC1_TRIM_MASK 0x003F
98 #define WM831X_DC1_TRIM_SHIFT 0
99 #define WM831X_DC1_TRIM_WIDTH 6
104 #define WM831X_CHIP_ID_MASK 0xFFFF
105 #define WM831X_CHIP_ID_SHIFT 0
106 #define WM831X_CHIP_ID_WIDTH 16
111 #define WM831X_OSC_TRIM_MASK 0x0780
112 #define WM831X_OSC_TRIM_SHIFT 7
113 #define WM831X_OSC_TRIM_WIDTH 4
114 #define WM831X_BG_TRIM_MASK 0x0078
115 #define WM831X_BG_TRIM_SHIFT 3
116 #define WM831X_BG_TRIM_WIDTH 4
117 #define WM831X_LPBG_TRIM_MASK 0x0007
118 #define WM831X_LPBG_TRIM_SHIFT 0
119 #define WM831X_LPBG_TRIM_WIDTH 3
124 #define WM831X_CHILD_I2C_ADDR_MASK 0x00FE
125 #define WM831X_CHILD_I2C_ADDR_SHIFT 1
126 #define WM831X_CHILD_I2C_ADDR_WIDTH 7
127 #define WM831X_CH_AW 0x0001
128 #define WM831X_CH_AW_MASK 0x0001
129 #define WM831X_CH_AW_SHIFT 0
130 #define WM831X_CH_AW_WIDTH 1
135 #define WM831X_CHARGE_TRIM_MASK 0x003F
136 #define WM831X_CHARGE_TRIM_SHIFT 0
137 #define WM831X_CHARGE_TRIM_WIDTH 6
142 #define WM831X_OTP_AUTO_PROG 0x8000
143 #define WM831X_OTP_AUTO_PROG_MASK 0x8000
144 #define WM831X_OTP_AUTO_PROG_SHIFT 15
145 #define WM831X_OTP_AUTO_PROG_WIDTH 1
146 #define WM831X_OTP_CUST_ID_MASK 0x7FFE
147 #define WM831X_OTP_CUST_ID_SHIFT 1
148 #define WM831X_OTP_CUST_ID_WIDTH 14
149 #define WM831X_OTP_CUST_FINAL 0x0001
150 #define WM831X_OTP_CUST_FINAL_MASK 0x0001
151 #define WM831X_OTP_CUST_FINAL_SHIFT 0
152 #define WM831X_OTP_CUST_FINAL_WIDTH 1
157 #define WM831X_DBE_VALID_DATA_MASK 0xFFFF
158 #define WM831X_DBE_VALID_DATA_SHIFT 0
159 #define WM831X_DBE_VALID_DATA_WIDTH 16