rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of MediaTek Inc. (C) 2011 |
| 8 | * |
| 9 | * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 10 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 11 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 12 | * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 13 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 14 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 15 | * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 16 | * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 17 | * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 18 | * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 19 | * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 20 | * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 21 | * |
| 22 | * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 23 | * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 24 | * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 25 | * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 26 | * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 27 | * |
| 28 | * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 29 | * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 30 | * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 31 | * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 32 | * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 33 | * |
| 34 | *****************************************************************************/ |
| 35 | |
| 36 | /***************************************************************************** |
| 37 | * |
| 38 | * Filename: |
| 39 | * --------- |
| 40 | * dcl_pmu6329_hw.h |
| 41 | * |
| 42 | * Project: |
| 43 | * -------- |
| 44 | * Maui_Software |
| 45 | * |
| 46 | * Description: |
| 47 | * ------------ |
| 48 | * This file is for PMIC6329 H/W configuration. |
| 49 | * |
| 50 | * Author: |
| 51 | * ------- |
| 52 | * ------- |
| 53 | * |
| 54 | *============================================================================ |
| 55 | * HISTORY |
| 56 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 57 | *------------------------------------------------------------------------------ |
| 58 | * removed! |
| 59 | * removed! |
| 60 | * removed! |
| 61 | * |
| 62 | * removed! |
| 63 | * removed! |
| 64 | * removed! |
| 65 | * |
| 66 | * removed! |
| 67 | * removed! |
| 68 | * removed! |
| 69 | * |
| 70 | * removed! |
| 71 | * removed! |
| 72 | * removed! |
| 73 | * |
| 74 | * removed! |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * |
| 78 | * removed! |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * |
| 82 | *------------------------------------------------------------------------------ |
| 83 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 84 | *============================================================================ |
| 85 | ****************************************************************************/ |
| 86 | |
| 87 | |
| 88 | #ifndef __DCL_PMIC6329_HW_H_STRUCT__ |
| 89 | #define __DCL_PMIC6329_HW_H_STRUCT__ |
| 90 | |
| 91 | |
| 92 | #include "dcl_pmic_features.h" |
| 93 | |
| 94 | #if defined(PMIC_6329_REG_API) |
| 95 | |
| 96 | #define BIT00 0x00000001 |
| 97 | #define BIT01 0x00000002 |
| 98 | #define BIT02 0x00000004 |
| 99 | #define BIT03 0x00000008 |
| 100 | |
| 101 | #define BIT04 0x00000010 |
| 102 | #define BIT05 0x00000020 |
| 103 | #define BIT06 0x00000040 |
| 104 | #define BIT07 0x00000080 |
| 105 | |
| 106 | #define BIT08 0x00000100 |
| 107 | #define BIT09 0x00000200 |
| 108 | #define BIT10 0x00000400 |
| 109 | #define BIT11 0x00000800 |
| 110 | |
| 111 | #define BIT12 0x00001000 |
| 112 | #define BIT13 0x00002000 |
| 113 | #define BIT14 0x00004000 |
| 114 | #define BIT15 0x00008000 |
| 115 | |
| 116 | #define BIT16 0x00010000 |
| 117 | #define BIT17 0x00020000 |
| 118 | #define BIT18 0x00040000 |
| 119 | #define BIT19 0x00080000 |
| 120 | |
| 121 | #define BIT20 0x00100000 |
| 122 | #define BIT21 0x00200000 |
| 123 | #define BIT22 0x00400000 |
| 124 | #define BIT23 0x00800000 |
| 125 | |
| 126 | #define BIT24 0x01000000 |
| 127 | #define BIT25 0x02000000 |
| 128 | #define BIT26 0x04000000 |
| 129 | #define BIT27 0x08000000 |
| 130 | |
| 131 | #define BIT28 0x10000000 |
| 132 | #define BIT29 0x20000000 |
| 133 | #define BIT30 0x40000000 |
| 134 | #define BIT31 0x80000000 |
| 135 | |
| 136 | #define PMIC6329_E1_CID_CODE 0x2900 |
| 137 | #define PMIC6329_E2_CID_CODE 0x2910 |
| 138 | |
| 139 | #define CID_1_REG_INDEX 0x0 |
| 140 | #define CID_2_REG_INDEX 0x1 |
| 141 | |
| 142 | //#define PMIC_MAX_REG_IDX 0x96 |
| 143 | //#define PMIC_REG_NUM 0x97 // ###***** PMIC_REG_NUM must equal (PMIC_MAX_REG_IDX + 1) |
| 144 | // Anderson Modify 20110331 Start |
| 145 | #define PMIC_BANK0_MAX_REG_IDX 0xF7 |
| 146 | #define PMIC_BANK0_REG_NUM (PMIC_BANK0_MAX_REG_IDX + 1) // ###***** PMIC_BANK0_REG_NUM must equal (PMIC_BANK0_MAX_REG_IDX + 1) |
| 147 | #define PMIC_BANK1_MAX_REG_IDX 0xA5 |
| 148 | #define PMIC_BANK1_REG_NUM (PMIC_BANK1_MAX_REG_IDX + 1) // ###***** PMIC_BANK1_REG_NUM must equal (PMIC_BANK1_MAX_REG_IDX + 1) |
| 149 | |
| 150 | //////////////////////////////// |
| 151 | /* PMIC 6329 BANK 0 */ |
| 152 | //////////////////////////////// |
| 153 | // (0x00) CID0 (RO) |
| 154 | #define CID0_ADDR 0x00 |
| 155 | |
| 156 | #define CID0_MASK 0xFF |
| 157 | #define CID0_MASK_SHIFT 0x0 |
| 158 | |
| 159 | // (0x01) CID1 (RO) |
| 160 | #define CID1_ADDR 0x01 |
| 161 | |
| 162 | #define CID1_MASK 0xFF |
| 163 | #define CID01_MASK_SHIFT 0x0 |
| 164 | |
| 165 | // (0x02) STATUS0 (RO) |
| 166 | #define STATUS0_ADDR 0x02 |
| 167 | |
| 168 | #define VCORE_STATUS_MASK 0x1 |
| 169 | #define VCORE_STATUS_SHIFT 0x7 |
| 170 | #define VPROC_STATUS_MASK 0x1 |
| 171 | #define VPROC_STATUS_SHIFT 0x6 |
| 172 | #define VIO18_STATUS_MASK 0x1 |
| 173 | #define VIO18_STATUS_SHIFT 0x5 |
| 174 | #define VRF18_STATUS_MASK 0x1 |
| 175 | #define VRF18_STATUS_SHIFT 0x4 |
| 176 | #define VPA_STATUS_MASK 0x1 |
| 177 | #define VPA_STATUS_SHIFT 0x3 |
| 178 | #define VRF_STATUS_MASK 0x1 |
| 179 | #define VRF_STATUS_SHIFT 0x2 |
| 180 | #define VTCXO_STATUS_MASK 0x1 |
| 181 | #define VTCXO_STATUS_SHIFT 0x1 |
| 182 | #define VA1_STATUS_MASK 0x1 |
| 183 | #define VA1_STATUS_SHIFT 0x0 |
| 184 | |
| 185 | // (0x03) STATUS1 (RO) |
| 186 | #define STATUS1_ADDR 0x03 |
| 187 | |
| 188 | #define VCAMA_STATUS_MASK 0x1 |
| 189 | #define VCAMA_STATUS_SHIFT 0x7 |
| 190 | #define VM12_1_STATUS_MASK 0x1 |
| 191 | #define VM12_1_STATUS_SHIFT 0x6 |
| 192 | #define VM12_INT_STATUS_MASK 0x1 |
| 193 | #define VM12_INT_STATUS_SHIFT 0x5 |
| 194 | #define VIO28_STATUS_MASK 0x1 |
| 195 | #define VIO28_STATUS_SHIFT 0x4 |
| 196 | #define VSIM1_STATUS_MASK 0x1 |
| 197 | #define VSIM1_STATUS_SHIFT 0x3 |
| 198 | #define VSIM2_STATUS_MASK 0x1 |
| 199 | #define VSIM2_STATUS_SHIFT 0x2 |
| 200 | #define VUSB_STATUS_MASK 0x1 |
| 201 | #define VUSB_STATUS_SHIFT 0x1 |
| 202 | #define VCAMD_STATUS_MASK 0x1 |
| 203 | #define VCAMD_STATUS_SHIFT 0x0 |
| 204 | |
| 205 | // (0x04) STATUS2 (RO) |
| 206 | #define STATUS2_ADDR 0x04 |
| 207 | |
| 208 | #define VCAM_IO_STATUS_MASK 0x1 |
| 209 | #define VCAM_IO_STATUS_SHIFT 0x7 |
| 210 | #define VCAM_AF_STATUS_MASK 0x1 |
| 211 | #define VCAM_AF_STATUS_SHIFT 0x6 |
| 212 | #define VMC_STATUS_MASK 0x1 |
| 213 | #define VMC_STATUS_SHIFT 0x5 |
| 214 | #define VMCH_STATUS_MASK 0x1 |
| 215 | #define VMCH_STATUS_SHIFT 0x4 |
| 216 | #define VGP_STATUS_MASK 0x1 |
| 217 | #define VGP_STATUS_SHIFT 0x3 |
| 218 | #define VGP2_STATUS_MASK 0x1 |
| 219 | #define VGP2_STATUS_SHIFT 0x2 |
| 220 | #define VM12_2_STATUS_MASK 0x1 |
| 221 | #define VM12_2_STATUS_SHIFT 0x1 |
| 222 | #define VIBR_STATUS_MASK 0x1 |
| 223 | #define VIBR_STATUS_SHIFT 0x0 |
| 224 | |
| 225 | // (0x05) STATUS3 (RO) |
| 226 | #define STATUS3_ADDR 0x05 |
| 227 | |
| 228 | #define VA2_STATUS_MASK 0x1 |
| 229 | #define VA2_STATUS_SHIFT 0x5 |
| 230 | #define VRTC_STATUS_MASK 0x1 |
| 231 | #define VRTC_STATUS_SHIFT 0x4 |
| 232 | #define VTCXO_PG_STATUS_MASK 0x1 |
| 233 | #define VTCXO_PG_STATUS_SHIFT 0x0 |
| 234 | |
| 235 | // (0x06) PGSTATUS0 (RO) |
| 236 | #define PGSTATUS0_ADDR 0x06 |
| 237 | |
| 238 | #define VCORE_PG_STATUS_MASK 0x1 |
| 239 | #define VCORE_PG_STATUS_SHIFT 0x7 |
| 240 | #define VPROC_PG_STATUS_MASK 0x1 |
| 241 | #define VPROC_PG_STATUS_SHIFT 0x6 |
| 242 | #define VIO18_PG_STATUS_MASK 0x1 |
| 243 | #define VIO18_PG_STATUS_SHIFT 0x5 |
| 244 | #define VIO28_PG_STATUS_MASK 0x1 |
| 245 | #define VIO28_PG_STATUS_SHIFT 0x4 |
| 246 | #define VA1_PG_STATUS_MASK 0x1 |
| 247 | #define VA1_PG_STATUS_SHIFT 0x3 |
| 248 | #define VM12_1_PG_STATUS_MASK 0x1 |
| 249 | #define VM12_1_PG_STATUS_SHIFT 0x2 |
| 250 | #define VM12_2_PG_STATUS_MASK 0x1 |
| 251 | #define VM12_2_PG_STATUS_SHIFT 0x1 |
| 252 | #define VM12_INT_PG_STATUS_MASK 0x1 |
| 253 | #define VM12_INT_PG_STATUS_SHIFT 0x0 |
| 254 | |
| 255 | // (0x07) RESERVERD |
| 256 | |
| 257 | // (0x08) RESERVERD |
| 258 | |
| 259 | // (0x09) CHRSATUS (RO) |
| 260 | #define CHRSTATUS_ADDR 0x09 |
| 261 | |
| 262 | #define CV_MASK 0x1 |
| 263 | #define CV_SHIFT 0x7 |
| 264 | #define RO_BATON_UNDET_MASK 0x1 |
| 265 | #define RO_BATON_UNDET_SHIFT 0x6 |
| 266 | #define PCHR_CHRDET_MASK 0x1 |
| 267 | #define PCHR_CHRDET_SHIFT 0x5 |
| 268 | #define VBAT_OV_MASK 0x1 |
| 269 | #define VBAT_OV_SHIFT 0x4 |
| 270 | #define PWRKEY_DEB_MASK 0x1 |
| 271 | #define PWRKEY_DEB_SHIFT 0x3 |
| 272 | #define USBDL_MASK 0x1 |
| 273 | #define USBDL_SHIFT 0x2 |
| 274 | #define TEST_MODE_POR_MASK 0x1 |
| 275 | #define TEST_MODE_POR_SHIFT 0x0 |
| 276 | |
| 277 | // (0x0A) OCSTATUS0 (RO) |
| 278 | #define OCSTATUS0_ADDR 0x0A |
| 279 | |
| 280 | #define VCAMA_OC_STATUS_MASK 0x1 |
| 281 | #define VCAMA_OC_STATUS_SHIFT 0x7 |
| 282 | #define VM12_1_OC_STATUS_MASK 0x1 |
| 283 | #define VM12_1_OC_STATUS_SHIFT 0x6 |
| 284 | #define VM12_OC_STATUS_MASK 0x1 |
| 285 | #define VM12_OC_STATUS_SHIFT 0x5 |
| 286 | #define VIO28_OC_STATUS_MASK 0x1 |
| 287 | #define VIO28_OC_STATUS_SHIFT 0x4 |
| 288 | #define VSIM1_OC_STATUS_MASK 0x1 |
| 289 | #define VSIM1_OC_STATUS_SHIFT 0x3 |
| 290 | #define VSIM2_OC_STATUS_MASK 0x1 |
| 291 | #define VSIM2_OC_STATUS_SHIFT 0x2 |
| 292 | #define VUSB_OC_STATUS_MASK 0x1 |
| 293 | #define VUSB_OC_STATUS_SHIFT 0x1 |
| 294 | #define VCAMD_OC_STATUS_MASK 0x1 |
| 295 | #define VCAMD_OC_STATUS_SHIFT 0x0 |
| 296 | |
| 297 | // (0x0B) OCSTATUS1 (RO) |
| 298 | #define OCSTATUS1_ADDR 0x0B |
| 299 | |
| 300 | #define VCAM_IO_OC_STATUS_MASK 0x1 |
| 301 | #define VCAM_IO_OC_STATUS_SHIFT 0x7 |
| 302 | #define VCAM_AF_OC_STATUS_MASK 0x1 |
| 303 | #define VCAM_AF_OC_STATUS_SHIFT 0x6 |
| 304 | #define VMC_OC_STATUS_MASK 0x1 |
| 305 | #define VMC_OC_STATUS_SHIFT 0x5 |
| 306 | #define VMCH_OC_STATUS_MASK 0x1 |
| 307 | #define VMCH_OC_STATUS_SHIFT 0x4 |
| 308 | #define VGP_OC_STATUS_MASK 0x1 |
| 309 | #define VGP_OC_STATUS_SHIFT 0x3 |
| 310 | #define VGP2_OC_STATUS_MASK 0x1 |
| 311 | #define VGP2_OC_STATUS_SHIFT 0x2 |
| 312 | #define VM12_2_OC_STATUS_MASK 0x1 |
| 313 | #define VM12_2_OC_STATUS_SHIFT 0x1 |
| 314 | #define VIBR_OC_STATUS_MASK 0x1 |
| 315 | #define VIBR_OC_STATUS_SHIFT 0x0 |
| 316 | |
| 317 | // (0x0C) OCSTATUS2 (RO) |
| 318 | #define OCSTATUS2_ADDR 0x0C |
| 319 | |
| 320 | #define HOMEKEY_DEB_MASK 0x1 |
| 321 | #define HOMEKEY_DEB_SHIFT 0x6 |
| 322 | #define BOOST_OC_STATUS_MASK 0x1 |
| 323 | #define BOOST_OC_STATUS_SHIFT 0x5 |
| 324 | #define VA2_OC_STATUS_MASK 0x1 |
| 325 | #define VA2_OC_STATUS_SHIFT 0x4 |
| 326 | #define NI_SPK_OC_DET_D_R_MASK 0x1 |
| 327 | #define NI_SPK_OC_DET_D_R_SHIFT 0x3 |
| 328 | #define NI_SPK_OC_DET_D_L_MASK 0x1 |
| 329 | #define NI_SPK_OC_DET_D_L_SHIFT 0x2 |
| 330 | #define NI_SPK_OC_DET_AB_R_MASK 0x1 |
| 331 | #define NI_SPK_OC_DET_AB_R_SHIFT 0x1 |
| 332 | #define NI_SPK_OC_DET_AB_L_MASK 0x1 |
| 333 | #define NI_SPK_OC_DET_AB_L_SHIFT 0x0 |
| 334 | |
| 335 | // (0x0D) OCSTATUS3 (RO) |
| 336 | #define OCSTATUS3_ADDR 0x0D |
| 337 | |
| 338 | #define VCORE_OC_STATUS_MASK 0x1 |
| 339 | #define VCORE_OC_STATUS_SHIFT 0x7 |
| 340 | #define VPROC_OC_STATUS_MASK 0x1 |
| 341 | #define VPROC_OC_STATUS_SHIFT 0x6 |
| 342 | #define VIO18_OC_STATUS_MASK 0x1 |
| 343 | #define VIO18_OC_STATUS_SHIFT 0x5 |
| 344 | #define VRF18_OC_STATUS_MASK 0x1 |
| 345 | #define VRF18_OC_STATUS_SHIFT 0x4 |
| 346 | #define VPA_OC_STATUS_MASK 0x1 |
| 347 | #define VPA_OC_STATUS_SHIFT 0x3 |
| 348 | #define VRF_OC_STATUS_MASK 0x1 |
| 349 | #define VRF_OC_STATUS_SHIFT 0x2 |
| 350 | #define VTCXO_OC_STATUS_MASK 0x1 |
| 351 | #define VTCXO_OC_STATUS_SHIFT 0x1 |
| 352 | #define VA1_OC_STATUS_MASK 0x1 |
| 353 | #define VA1_OC_STATUS_SHIFT 0x0 |
| 354 | |
| 355 | // (0x0E) STRUP_CTRL1 (RW) |
| 356 | #define STRUP_CTRL1_ADDR 0x0E |
| 357 | |
| 358 | #define RG_THRDET_SEL_MASK 0x1 |
| 359 | #define RG_THRDET_SEL_SHIFT 0x6 |
| 360 | #define RG_THR_HWPDN_EN_MASK 0x1 |
| 361 | #define RG_THR_HWPDN_EN_SHIFT 0x5 |
| 362 | #define RG_STRUP_THR_SEL_MASK 0x3 |
| 363 | #define RG_STRUP_THR_SEL_SHIFT 0x3 |
| 364 | #define RG_THR_TMODE_MASK 0x1 |
| 365 | #define RG_THR_TMODE_SHIFT 0x1 |
| 366 | #define RG_FORCE_NON_THERMAL_MASK 0x1 |
| 367 | #define RG_FORCE_NON_THERMAL_SHIFT 0x0 |
| 368 | |
| 369 | // (0x0F) STRUP_CTRL2 (RW) |
| 370 | #define STRUP_CTRL2_ADDR 0x0F |
| 371 | |
| 372 | #define RG_VREF_BG_MASK 0x7 |
| 373 | #define RG_VREF_BG_SHIFT 0x4 |
| 374 | #define RG_STRUP_IREF_TRIM_MASK 0xF |
| 375 | #define RG_STRUP_IREF_TRIM_SHIFT 0x0 |
| 376 | |
| 377 | // (0x10) STRUP_CTRL3 (RW) |
| 378 | #define STRUP_CTRL3_ADDR 0x10 |
| 379 | |
| 380 | #define RG_BB_PROC_SEL_MASK 0x1 |
| 381 | #define RG_BB_PROC_SEL_SHIFT 0x7 |
| 382 | #define RG_STRUP_RST_DRVSEL_MASK 0x1 |
| 383 | #define RG_STRUP_RST_DRVSEL_SHIFT 0x6 |
| 384 | #define RG_PMU_LEV_UNGATE_MASK 0x1 |
| 385 | #define RG_PMU_LEV_UNGATE_SHIFT 0x1 |
| 386 | #define RG_USBDL_EN_MASK 0x1 |
| 387 | #define RG_USBDL_EN_SHIFT 0x0 |
| 388 | |
| 389 | // (0x11) STRUP_RSV1 (RW) |
| 390 | #define STRUP_RSV1_ADDR 0x11 |
| 391 | |
| 392 | #define RG_PMU_RSV_MASK 0xF |
| 393 | #define RG_PMU_RSV_SHIFT 0x4 |
| 394 | |
| 395 | // (0x12) STRUP_TST_CTL (RW) |
| 396 | #define STRUP_TST_CTL_ADDR 0x12 |
| 397 | |
| 398 | #define RG_BIAS_GEN_EN_FORCE_MASK 0x1 |
| 399 | #define RG_BIAS_GEN_EN_FORCE_SHIFT 0x5 |
| 400 | #define RG_STRUP_PWRON_FORCE_MASK 0x1 |
| 401 | #define RG_STRUP_PWRON_FORCE_SHIFT 0x4 |
| 402 | #define RG_STRUP_TEST_MASK 0x1 |
| 403 | #define RG_STRUP_TEST_SHIFT 0x3 |
| 404 | #define RG_STRUP_FT_CTRL_MASK 0x3 |
| 405 | #define RG_STRUP_FT_CTRL_SHIFT 0x0 |
| 406 | |
| 407 | // (0x13) STRUP_THR_CTL (RO/RW) |
| 408 | #define STRUP_THR_CTL_ADDR 0x13 |
| 409 | |
| 410 | #define PMU_THR_STATUS_MASK 0x7 |
| 411 | #define PMU_THR_STATUS_SHIFT 0x4 |
| 412 | #define RG_THERMAL_TEST_MASK 0x3 |
| 413 | #define RG_THERMAL_TEST_SHIFT 0x2 |
| 414 | |
| 415 | // (0x14) STRUP_VPG_EN1 (RW) |
| 416 | #define STRUP_VPG_EN1_ADDR 0x14 |
| 417 | |
| 418 | #define RG_VCORE_PG_ENB_MASK 0x1 |
| 419 | #define RG_VCORE_PG_ENB_SHIFT 0x7 |
| 420 | #define RG_VPROC_PG_ENB_MASK 0x1 |
| 421 | #define RG_VPROC_PG_ENB_SHIFT 0x6 |
| 422 | #define RG_VIO18_PG_ENB_MASK 0x1 |
| 423 | #define RG_VIO18_PG_ENB_SHIFT 0x5 |
| 424 | #define RG_VIO28_PG_ENB_MASK 0x1 |
| 425 | #define RG_VIO28_PG_ENB_SHIFT 0x4 |
| 426 | #define RG_VA1_PG_ENB_MASK 0x1 |
| 427 | #define RG_VA1_PG_ENB_SHIFT 0x3 |
| 428 | #define RG_VM12_1_PG_ENB_MASK 0x1 |
| 429 | #define RG_VM12_1_PG_ENB_SHIFT 0x2 |
| 430 | #define RG_VM12_2_PG_ENB_MASK 0x1 |
| 431 | #define RG_VM12_2_PG_ENB_SHIFT 0x1 |
| 432 | #define RG_VM12_INT_PG_ENB_MASK 0x1 |
| 433 | #define RG_VM12_INT_PG_ENB_SHIFT 0x0 |
| 434 | |
| 435 | // (0x15) STRUP_VPG_EN2 (RW) |
| 436 | #define STRUP_VPG_EN2_ADDR 0x15 |
| 437 | |
| 438 | #define RG_STRUP_DIG_RSV_MASK 0xF |
| 439 | #define RG_STRUP_DIG_RSV_SHIFT 0x4 |
| 440 | #define RG_VTCXO_PG_ENB_MASK 0x1 |
| 441 | #define RG_VTCXO_PG_ENB_SHIFT 0x0 |
| 442 | |
| 443 | // (0x16) INT_CON0 (RW) |
| 444 | #define INT_CON0_ADDR 0x16 |
| 445 | |
| 446 | #define RG_OV_INT_EN_MASK 0x1 |
| 447 | #define RG_OV_INT_EN_SHIFT 0x7 |
| 448 | #define RG_CHRDET_INT_EN_MASK 0x1 |
| 449 | #define RG_CHRDET_INT_EN_SHIFT 0x6 |
| 450 | #define RG_BVALID_DET_INT_EN_MASK 0x1 |
| 451 | #define RG_BVALID_DET_INT_EN_SHIFT 0x5 |
| 452 | #define RG_VBATON_UNDET_INT_EN_MASK 0x1 |
| 453 | #define RG_VBATON_UNDET_INT_EN_SHIFT 0x4 |
| 454 | #define RG_THR_H_INT_EN_MASK 0x1 |
| 455 | #define RG_THR_H_INT_EN_SHIFT 0x3 |
| 456 | #define RG_THR_L_INT_EN_MASK 0x1 |
| 457 | #define RG_THR_L_INT_EN_SHIFT 0x2 |
| 458 | #define RG_PWRKEY_INT_EN_MASK 0x1 |
| 459 | #define RG_PWRKEY_INT_EN_SHIFT 0x1 |
| 460 | #define RG_WATCHDOG_INT_EN_MASK 0x1 |
| 461 | #define RG_WATCHDOG_INT_EN_SHIFT 0x0 |
| 462 | |
| 463 | // (0x17) INT_CON1 (RW) |
| 464 | #define INT_CON1_ADDR 0x17 |
| 465 | |
| 466 | #define RG_FG_BAT_H_INT_EN_MASK 0x1 |
| 467 | #define RG_FG_BAT_H_INT_EN_SHIFT 0x7 |
| 468 | #define RG_FG_BAT_L_INT_EN_MASK 0x1 |
| 469 | #define RG_FG_BAT_L_INT_EN_SHIFT 0x6 |
| 470 | #define RG_HIGH_BAT_INT_EN_MASK 0x1 |
| 471 | #define RG_HIGH_BAT_INT_EN_SHIFT 0x5 |
| 472 | #define RG_LOW_BAT_INT_EN_MASK 0x1 |
| 473 | #define RG_LOW_BAT_INT_EN_SHIFT 0x4 |
| 474 | #define RG_SPKR_D_OC_INT_EN_MASK 0x1 |
| 475 | #define RG_SPKR_D_OC_INT_EN_SHIFT 0x3 |
| 476 | #define RG_SPKL_D_OC_INT_EN_MASK 0x1 |
| 477 | #define RG_SPKL_D_OC_INT_EN_SHIFT 0x2 |
| 478 | #define RG_SPKR_AB_OC_INT_EN_MASK 0x1 |
| 479 | #define RG_SPKR_AB_OC_INT_EN_SHIFT 0x1 |
| 480 | #define RG_SPKL_AB_OC_INT_EN_MASK 0x1 |
| 481 | #define RG_SPKL_AB_OC_INT_EN_SHIFT 0x0 |
| 482 | |
| 483 | // (0x18) INT_CON2 (RW) |
| 484 | #define INT_CON2_ADDR 0x18 |
| 485 | |
| 486 | #define RG_HOMEKEY_INT_EN_MASK 0x1 |
| 487 | #define RG_HOMEKEY_INT_EN_SHIFT 0x5 |
| 488 | #define RG_VRF18_OC_INT_EN_MASK 0x1 |
| 489 | #define RG_VRF18_OC_INT_EN_SHIFT 0x4 |
| 490 | #define RG_VPA_OC_INT_EN_MASK 0x1 |
| 491 | #define RG_VPA_OC_INT_EN_SHIFT 0x3 |
| 492 | #define RG_LDO_OC_INT_EN_MASK 0x1 |
| 493 | #define RG_LDO_OC_INT_EN_SHIFT 0x2 |
| 494 | |
| 495 | // (0x19) INT_STATUS5 (RO) |
| 496 | #define INT_STATUS5_ADDR 0x19 |
| 497 | |
| 498 | #define RG_OV_INT_STATUS_MASK 0x1 |
| 499 | #define RG_OV_INT_STATUS_SHIFT 0x7 |
| 500 | #define RG_CHRDET_INT_STATUS_MASK 0x1 |
| 501 | #define RG_CHRDET_INT_STATUS_SHIFT 0x6 |
| 502 | #define RG_BVALID_DET_INT_STATUS_MASK 0x1 |
| 503 | #define RG_BVALID_DET_INT_STATUS_SHIFT 0x5 |
| 504 | #define RG_VBATON_UNDET_INT_STATUS_MASK 0x1 |
| 505 | #define RG_VBATON_UNDET_INT_STATUS_SHIFT 0x4 |
| 506 | #define RG_THR_H_INT_STATUS_MASK 0x1 |
| 507 | #define RG_THR_H_INT_STATUS_SHIFT 0x3 |
| 508 | #define RG_THR_L_INT_STATUS_MASK 0x1 |
| 509 | #define RG_THR_L_INT_STATUS_SHIFT 0x2 |
| 510 | #define RG_PWRKEY_INT_STATUS_MASK 0x1 |
| 511 | #define RG_PWRKEY_INT_STATUS_SHIFT 0x1 |
| 512 | #define RG_WATCHDOG_INT_STATUS_MASK 0x1 |
| 513 | #define RG_WATCHDOG_INT_STATUS_SHIFT 0x0 |
| 514 | |
| 515 | // (0x1A) INT_STATUS6 (RO) |
| 516 | #define INT_STATUS6_ADDR 0x1A |
| 517 | |
| 518 | #define RG_FG_BAT_H_INT_STATUS_MASK 0x1 |
| 519 | #define RG_FG_BAT_H_INT_STATUS_SHIFT 0x7 |
| 520 | #define RG_FG_BAT_L_INT_STATUS_MASK 0x1 |
| 521 | #define RG_FG_BAT_L_INT_STATUS_SHIFT 0x6 |
| 522 | #define RG_HIGH_BAT_INT_STATUS_MASK 0x1 |
| 523 | #define RG_HIGH_BAT_INT_STATUS_SHIFT 0x5 |
| 524 | #define RG_LOW_BAT_INT_STATUS_MASK 0x1 |
| 525 | #define RG_LOW_BAT_INT_STATUS_SHIFT 0x4 |
| 526 | #define RG_SPKR_D_OC_INT_STATUS_MASK 0x1 |
| 527 | #define RG_SPKR_D_OC_INT_STATUS_SHIFT 0x3 |
| 528 | #define RG_SPKL_D_OC_INT_STATUS_MASK 0x1 |
| 529 | #define RG_SPKL_D_OC_INT_STATUS_SHIFT 0x2 |
| 530 | #define RG_SPKR_AB_OC_INT_STATUS_MASK 0x1 |
| 531 | #define RG_SPKR_AB_OC_INT_STATUS_SHIFT 0x1 |
| 532 | #define RG_SPKL_AB_OC_INT_STATUS_MASK 0x1 |
| 533 | #define RG_SPKL_AB_OC_INT_STATUS_SHIFT 0x0 |
| 534 | |
| 535 | // (0x1B) INT_STATUS7 (RO) |
| 536 | #define INT_STATUS7_ADDR 0x1B |
| 537 | |
| 538 | #define RG_HOMEKEY_INT_STATUS_MASK 0x1 |
| 539 | #define RG_HOMEKEY_INT_STATUS_SHIFT 0x5 |
| 540 | #define RG_VRF18_OC_INT_STATUS_MASK 0x1 |
| 541 | #define RG_VRF18_OC_INT_STATUS_SHIFT 0x4 |
| 542 | #define RG_VPA_OC_INT_STATUS_MASK 0x1 |
| 543 | #define RG_VPA_OC_INT_STATUS_SHIFT 0x3 |
| 544 | #define RG_LDO_OC_INT_STATUS_MASK 0x1 |
| 545 | #define RG_LDO_OC_INT_STATUS_SHIFT 0x2 |
| 546 | |
| 547 | // (0x21) CHR_CON0 (RO/RW) |
| 548 | #define CHR_CON0_ADDR 0x21 |
| 549 | |
| 550 | #define VCDT_HV_DET_MASK 0x1 |
| 551 | #define VCDT_HV_DET_SHIFT 0x7 |
| 552 | #define VCDT_LV_DET_MASK 0x1 |
| 553 | #define VCDT_LV_DET_SHIFT 0x6 |
| 554 | #define CHRDET_MASK 0x1 |
| 555 | #define CHRDET_SHIFT 0x5 |
| 556 | #define CHR_EN_MASK 0x1 |
| 557 | #define CHR_EN_SHIFT 0x4 |
| 558 | #define CSDAC_EN_MASK 0x1 |
| 559 | #define CSDAC_EN_SHIFT 0x3 |
| 560 | #define PCHR_AUTO_MASK 0x1 |
| 561 | #define PCHR_AUTO_SHIFT 0x2 |
| 562 | #define CHR_LDO_DET_MASK 0x1 |
| 563 | #define CHR_LDO_DET_SHIFT 0x1 |
| 564 | #define VCDT_HV_EN_MASK 0x1 |
| 565 | #define VCDT_HV_EN_SHIFT 0x0 |
| 566 | |
| 567 | // (0x22) CHR_CON1 (RW) |
| 568 | #define CHR_CON1_ADDR 0x22 |
| 569 | |
| 570 | #define VCDT_HV_VTH_MASK 0xF |
| 571 | #define VCDT_HV_VTH_SHIFT 0x4 |
| 572 | #define VCDT_LV_VTH_MASK 0xF |
| 573 | #define VCDT_LV_VTH_SHIFT 0x0 |
| 574 | |
| 575 | // (0x23) CHR_CON2 (RO/RW) |
| 576 | #define CHR_CON2_ADDR 0x23 |
| 577 | |
| 578 | #define VBAT_CC_DET_MASK 0x1 |
| 579 | #define VBAT_CC_DET_SHIFT 0x7 |
| 580 | #define VBAT_CV_DET_MASK 0x1 |
| 581 | #define VBAT_CV_DET_SHIFT 0x6 |
| 582 | #define CS_DET_MASK 0x1 |
| 583 | #define CS_DET_SHIFT 0x5 |
| 584 | #define CS_EN_MASK 0x1 |
| 585 | #define CS_EN_SHIFT 0x3 |
| 586 | #define VBAT_CC_EN_MASK 0x1 |
| 587 | #define VBAT_CC_EN_SHIFT 0x2 |
| 588 | #define VBAT_CV_EN_MASK 0x1 |
| 589 | #define VBAT_CV_EN_SHIFT 0x1 |
| 590 | |
| 591 | // (0x24) CHR_CON3 (RW) |
| 592 | #define CHR_CON3_ADDR 0x24 |
| 593 | |
| 594 | #define VBAT_CC_VTH_MASK 0x3 |
| 595 | #define VBAT_CC_VTH_SHIFT 0x6 |
| 596 | #define VBAT_CV_VTH_MASK 0x1F |
| 597 | #define VBAT_CV_VTH_SHIFT 0x0 |
| 598 | |
| 599 | // (0x25) CHR_CON4 (RW) |
| 600 | #define CHR_CON4_ADDR 0x25 |
| 601 | |
| 602 | #define CS_VTH_MASK 0xF |
| 603 | #define CS_VTH_SHIFT 0x0 |
| 604 | |
| 605 | // (0x26) CHR_CON5 (RW) |
| 606 | #define CHR_CON5_ADDR 0x26 |
| 607 | |
| 608 | #define TOLTC_MASK 0x7 |
| 609 | #define TOLTC_SHIFT 0x4 |
| 610 | #define TOHTC_MASK 0x7 |
| 611 | #define TOHTC_SHIFT 0x0 |
| 612 | |
| 613 | // (0x27) CHR_CON6 (RO/RW) |
| 614 | #define CHR_CON6_ADDR 0x27 |
| 615 | |
| 616 | #define VBAT_OV_DET_MASK 0x1 |
| 617 | #define VBAT_OV_DET_SHIFT 0x6 |
| 618 | #define VBAT_OV_DEG_MASK 0x1 |
| 619 | #define VBAT_OV_DEG_SHIFT 0x5 |
| 620 | #define VBAT_OV_VTH_MASK 0x3 |
| 621 | #define VBAT_OV_VTH_SHIFT 0x1 |
| 622 | #define VBAT_OV_EN_MASK 0x1 |
| 623 | #define VBAT_OV_EN_SHIFT 0x0 |
| 624 | |
| 625 | // (0x28) CHR_CON7 (RO/RW) |
| 626 | #define CHR_CON7_ADDR 0x28 |
| 627 | |
| 628 | #define BATON_UNDET_MASK 0x1 |
| 629 | #define BATON_UNDET_SHIFT 0x7 |
| 630 | #define BATON_HT_TRIM_MASK 0x7 |
| 631 | #define BATON_HT_TRIM_SHIFT 0x4 |
| 632 | #define BATON_HT_EN_MASK 0x1 |
| 633 | #define BATON_HT_EN_SHIFT 0x2 |
| 634 | #define BATON_EN_MASK 0x1 |
| 635 | #define BATON_EN_SHIFT 0x1 |
| 636 | |
| 637 | // (0x29) CHR_CON8 (RW) |
| 638 | #define CHR_CON8_ADDR 0x29 |
| 639 | |
| 640 | #define CSDAC_DAT_H_MASK 0x3 |
| 641 | #define CSDAC_DAT_H_SHIFT 0x0 |
| 642 | |
| 643 | // (0x2A) CHR_CON9 (RW) |
| 644 | #define CHR_CON9_ADDR 0x2A |
| 645 | |
| 646 | #define CSDAC_DAT_L_MASK 0xFF |
| 647 | #define CSDAC_DAT_L_SHIFT 0x0 |
| 648 | |
| 649 | // (0x2B) CHR_CONA (RO/RW) |
| 650 | #define CHR_CONA_ADDR 0x2B |
| 651 | |
| 652 | #define OTG_BVALID_MASK 0x1 |
| 653 | #define OTG_BVALID_SHIFT 0x6 |
| 654 | #define OTG_BVALID_EN_MASK 0x1 |
| 655 | #define OTG_BVALID_EN_SHIFT 0x5 |
| 656 | #define PCHR_FLAG_EN_MASK 0x1 |
| 657 | #define PCHR_FLAG_EN_SHIFT 0x4 |
| 658 | #define PCHR_FLAG_OUT_MASK 0xF |
| 659 | #define PCHR_FLAG_OUT_SHIFT 0x0 |
| 660 | |
| 661 | // (0x2C) CHR_CONB (RW) |
| 662 | #define CHR_CONB_ADDR 0x2C |
| 663 | |
| 664 | #define PCHR_FLAG_SEL_MASK 0x3F |
| 665 | #define PCHR_FLAG_SEL_SHIFT 0x0 |
| 666 | |
| 667 | // (0x2D) CHR_CONC (RW) |
| 668 | #define CHR_CONC_ADDR 0x2D |
| 669 | |
| 670 | #define PCHR_FT_CTRL_MASK 0x7 |
| 671 | #define PCHR_FT_CTRL_SHIFT 0x4 |
| 672 | #define PCHR_RST_MASK 0x1 |
| 673 | #define PCHR_RST_SHIFT 0x2 |
| 674 | #define CSDAC_TEST_MASK 0x1 |
| 675 | #define CSDAC_TEST_SHIFT 0x1 |
| 676 | #define PCHR_TEST_MASK 0x1 |
| 677 | #define PCHR_TEST_SHIFT 0x0 |
| 678 | |
| 679 | // (0x2E) CHR_COND (RW) |
| 680 | #define CHR_COND_ADDR 0x2E |
| 681 | |
| 682 | #define CHRWDT_EN_MASK 0x1 |
| 683 | #define CHRWDT_EN_SHIFT 0x4 |
| 684 | #define CHRWDT_TD_MASK 0xF |
| 685 | #define CHRWDT_TD_SHIFT 0x0 |
| 686 | |
| 687 | // (0x2F) CHR_CONE (RW) |
| 688 | #define CHR_CONE_ADDR 0x2F |
| 689 | |
| 690 | #define PCHR_RV_MASK 0xFF |
| 691 | #define PCHR_RV_SHIFT 0x0 |
| 692 | |
| 693 | // (0x30) CHR_CONF (RO/RW) |
| 694 | #define CHR_CONF_ADDR 0x30 |
| 695 | |
| 696 | #define CHRWDT_OUT_MASK 0x1 |
| 697 | #define CHRWDT_OUT_SHIFT 0x2 |
| 698 | #define CHRWDT_FLAG_WR_MASK 0x1 |
| 699 | #define CHRWDT_FLAG_WR_SHIFT 0x1 |
| 700 | #define CHRWDT_INT_EN_MASK 0x1 |
| 701 | #define CHRWDT_INT_EN_SHIFT 0x0 |
| 702 | |
| 703 | // (0x31) CHR_CON11 (RW) |
| 704 | #define CHR_CON11_ADDR 0x31 |
| 705 | |
| 706 | #define ADCIN_VCHR_EN_MASK 0x1 |
| 707 | #define ADCIN_VCHR_EN_SHIFT 0x6 |
| 708 | #define ADCIN_VSEN_EN_MASK 0x1 |
| 709 | #define ADCIN_VSEN_EN_SHIFT 0x5 |
| 710 | #define ADCIN_VBAT_EN_MASK 0x1 |
| 711 | #define ADCIN_VBAT_EN_SHIFT 0x4 |
| 712 | #define USBDL_SET_MASK 0x1 |
| 713 | #define USBDL_SET_SHIFT 0x3 |
| 714 | #define USBDL_RST_MASK 0x1 |
| 715 | #define USBDL_RST_SHIFT 0x2 |
| 716 | #define UVLO_VTHL_MASK 0x3 |
| 717 | #define UVLO_VTHL_SHIFT 0x0 |
| 718 | |
| 719 | // (0x32) CHR_CON12 (RW) |
| 720 | #define CHR_CON12_ADDR 0x32 |
| 721 | |
| 722 | #define BGR_UNCHOP_MASK 0x1 |
| 723 | #define BGR_UNCHOP_SHIFT 0x5 |
| 724 | #define BGR_UNCHOP_PH_MASK 0x1 |
| 725 | #define BGR_UNCHOP_PH_SHIFT 0x4 |
| 726 | #define BGR_RSEL_MASK 0x7 |
| 727 | #define BGR_RSEL_SHIFT 0x0 |
| 728 | |
| 729 | // (0x33) CHR_CON13 (RO/RW) |
| 730 | #define BC11_CMP_OUT_MASK 0x1 |
| 731 | #define BC11_CMP_OUT_SHIFT 0x7 |
| 732 | #define RG_BC11_VSRC_EN_MASK 0x3 |
| 733 | #define RG_BC11_VSRC_EN_SHIFT 0x2 |
| 734 | #define BC11_RST_MASK 0x1 |
| 735 | #define BC11_RST_SHIFT 0x1 |
| 736 | #define BC11_BB_CTRL_MASK 0x1 |
| 737 | #define BC11_BB_CTRL_SHIFT 0x0 |
| 738 | |
| 739 | // (0x34) CHR_CON14 (RW) |
| 740 | #define BC11_BIAS_EN_MASK 0x1 |
| 741 | #define BC11_BIAS_EN_SHIFT 0x7 |
| 742 | #define BC11_IPU_EN_MASK 0x3 |
| 743 | #define BC11_IPU_EN_SHIFT 0x5 |
| 744 | #define BC11_IPD_EN_MASK 0x3 |
| 745 | #define BC11_IPD_EN_SHIFT 0x3 |
| 746 | #define BC11_CMP_EN_MASK 0x3 |
| 747 | #define BC11_CMP_EN_SHIFT 0x1 |
| 748 | #define BC11_VREF_VTH_MASK 0x1 |
| 749 | #define BC11_VREF_VTH_SHIFT 0x0 |
| 750 | |
| 751 | // (0x35) CHR_CON15 (RW) |
| 752 | #define CSDAC_STP_DEC_MASK 0x7 |
| 753 | #define CSDAC_STP_DEC_SHIFT 0x4 |
| 754 | #define CSDAC_STP_INC_MASK 0x7 |
| 755 | #define CSDAC_STP_INC_SHIFT 0x0 |
| 756 | |
| 757 | // (0x36) CHR_CON16 (RW) |
| 758 | #define CSDAC_STP_MASK 0x7 |
| 759 | #define CSDAC_STP_SHIFT 0x4 |
| 760 | #define CSDAC_DLY_MASK 0x7 |
| 761 | #define CSDAC_DLY_SHIFT 0x0 |
| 762 | |
| 763 | // (0x37) CHR_CON17 (RW) |
| 764 | #define RG_CHRIND_DIMMING_MASK 0x1 |
| 765 | #define RG_CHRIND_DIMMING_SHIFT 0x7 |
| 766 | #define RG_CHRIND_ON_MASK 0x1 |
| 767 | #define RG_CHRIND_ON_SHIFT 0x6 |
| 768 | #define RG_LOW_ICH_DB_MASK 0x3F |
| 769 | #define RG_LOW_ICH_DB_SHIFT 0x0 |
| 770 | |
| 771 | // (0x38) CHR_CON18 (RW) |
| 772 | #define RG_ULC_DET_EN_MASK 0x1 |
| 773 | #define RG_ULC_DET_EN_SHIFT 0x7 |
| 774 | #define RG_HWCV_EN_MASK 0x1 |
| 775 | #define RG_HWCV_EN_SHIFT 0x6 |
| 776 | #define BATON_TDET_EN_MASK 0x1 |
| 777 | #define BATON_TDET_EN_SHIFT 0x5 |
| 778 | #define TRACKING_EN_MASK 0x1 |
| 779 | #define TRACKING_EN_SHIFT 0x4 |
| 780 | #define CSDAC_MODE_MASK 0x1 |
| 781 | #define CSDAC_MODE_SHIFT 0x2 |
| 782 | #define VCDT_MODE_MASK 0x1 |
| 783 | #define VCDT_MODE_SHIFT 0x1 |
| 784 | #define CV_MODE_MASK 0x1 |
| 785 | #define CV_MODE_SHIFT 0x0 |
| 786 | |
| 787 | // (0x39) CHR_CON19 (RW) |
| 788 | #define RG_ICHRG_TRIM_MASK 0xF |
| 789 | #define RG_ICHRG_TRIM_SHIFT 0x4 |
| 790 | #define RG_BGR_TRIM_EN_MASK 0x1 |
| 791 | #define RG_BGR_TRIM_EN_SHIFT 0x0 |
| 792 | |
| 793 | // (0x3A) CHR_CON1A (RW) |
| 794 | #define RG_BGR_TRIM_MASK 0x1F |
| 795 | #define RG_BGR_TRIM_SHIFT 0x0 |
| 796 | |
| 797 | // (0x3B) CHR_CON1B (RW) |
| 798 | #define RG_OVP_TRIM_MASK 0xF |
| 799 | #define RG_OVP_TRIM_SHIFT 0x0 |
| 800 | |
| 801 | // (0x3C) CHR_CON1C (RW) |
| 802 | #define CHR_RSV0_MASK 0x1 |
| 803 | #define CHR_RSV0_SHIFT 0x7 |
| 804 | #define RG_BGR_TEST_RSTB_MASK 0x1 |
| 805 | #define RG_BGR_TEST_RSTB_SHIFT 0x6 |
| 806 | #define RG_BGR_TEST_EN_MASK 0x1 |
| 807 | #define RG_BGR_TEST_EN_SHIFT 0x5 |
| 808 | #define RG_CHR_OSC_TRIM_MASK 0x1F |
| 809 | #define RG_CHR_OSC_TRIM_SHIFT 0x0 |
| 810 | |
| 811 | // (0x3D) CHR_CON1D (RW) |
| 812 | #define CHR_RSV1_MASK 0x3F |
| 813 | #define CHR_RSV1_SHIFT 0x2 |
| 814 | #define RG_DAC_USBDL_MAX_9_8_MASK 0x3 |
| 815 | #define RG_DAC_USBDL_MAX_9_8_SHIFT 0x0 |
| 816 | |
| 817 | // (0x3E) CHR_CON1E (RW) |
| 818 | #define RG_DAC_USBDL_MAX_7_0_MASK 0xFF |
| 819 | #define RG_DAC_USBDL_MAX_7_0_SHIFT 0x0 |
| 820 | |
| 821 | // (0x3F) VPROC_CON0 (RW) |
| 822 | #define RG_VPROC_CSL_MASK 0x3 |
| 823 | #define RG_VPROC_CSL_SHIFT 0x6 |
| 824 | #define RG_VPROC_CSR_MASK 0x3 |
| 825 | #define RG_VPROC_CSR_SHIFT 0x4 |
| 826 | #define RG_VPROC_CC_MASK 0x3 |
| 827 | #define RG_VPROC_CC_SHIFT 0x2 |
| 828 | #define RG_VPROC_RZSEL_MASK 0x3 |
| 829 | #define RG_VPROC_RZSEL_SHIFT 0x0 |
| 830 | |
| 831 | // (0x40) VPROC_CON1 (RW) |
| 832 | #define RG_VPROC_SLP_MASK 0x3 |
| 833 | #define RG_VPROC_SLP_SHIFT 0x6 |
| 834 | #define RG_VPROC_ZX_OS_MASK 0x3 |
| 835 | #define RG_VPROC_ZX_OS_SHIFT 0x4 |
| 836 | #define RG_VPROC_SLEW_MASK 0x3 |
| 837 | #define RG_VPROC_SLEW_SHIFT 0x2 |
| 838 | #define RG_VPROC_SLEW_NMOS_MASK 0x3 |
| 839 | #define RG_VPROC_SLEW_NMOS_SHIFT 0x0 |
| 840 | |
| 841 | // (0x41) VPROC_CON2 (RW) |
| 842 | #define RG_VPROC_AVP_OS_MASK 0x7 |
| 843 | #define RG_VPROC_AVP_OS_SHIFT 0x4 |
| 844 | #define RG_VPROC_AVP_EN_MASK 0x1 |
| 845 | #define RG_VPROC_AVP_EN_SHIFT 0x1 |
| 846 | #define RG_VPROC_MODESET_MASK 0x1 |
| 847 | #define RG_VPROC_MODESET_SHIFT 0x0 |
| 848 | |
| 849 | // (0x42) VPROC_CON3 (RO/RW) |
| 850 | #define VPROC_CON3_ADDR 0x42 |
| 851 | |
| 852 | #define QI_VPROC_EN_MASK 0x1 |
| 853 | #define QI_VPROC_EN_SHIFT 0x7 |
| 854 | #define RG_VPROC_EN_MASK 0x1 |
| 855 | #define RG_VPROC_EN_SHIFT 0x0 |
| 856 | |
| 857 | // (0x43) VPROC_CON4 (RW) |
| 858 | #define RG_VPROC_BURST_MASK 0x3 |
| 859 | #define RG_VPROC_BURST_SHIFT 0x4 |
| 860 | #define RG_VPROC_VFBADJ_MASK 0x7 |
| 861 | #define RG_VPROC_VFBADJ_SHIFT 0x1 |
| 862 | #define RG_VPROC_NDIS_EN_MASK 0x1 |
| 863 | #define RG_VPROC_NDIS_EN_SHIFT 0x0 |
| 864 | |
| 865 | // (0x44) VPROC_CON5 (RW) |
| 866 | #define VPROC_CON5_ADDR 0x44 |
| 867 | |
| 868 | #define RG_VPROC_VOSEL_MASK 0x1F |
| 869 | #define RG_VPROC_VOSEL_SHIFT 0x0 |
| 870 | |
| 871 | // (0x45) VPROC_CON6 (RW) |
| 872 | #define VPROC_VOSEL_SRCLKEN0_MASK 0x1F |
| 873 | #define VPROC_VOSEL_SRCLKEN0_SHIFT 0x0 |
| 874 | |
| 875 | // (0x46) VPROC_CON7 (RW) |
| 876 | #define VPROC_VOSEL_SRCLKEN1_MASK 0x1F |
| 877 | #define VPROC_VOSEL_SRCLKEN1_SHIFT 0x0 |
| 878 | |
| 879 | // (0x47) VPROC_CON8 (RW) |
| 880 | #define VPROC_VOSEL_DVS00_MASK 0x1F |
| 881 | #define VPROC_VOSEL_DVS00_SHIFT 0x0 |
| 882 | |
| 883 | // (0x48) VPROC_CON9 (RW) |
| 884 | #define VPROC_VOSEL_DVS01_MASK 0x1F |
| 885 | #define VPROC_VOSEL_DVS01_SHIFT 0x0 |
| 886 | |
| 887 | // (0x49) VPROC_CONA (RW) |
| 888 | #define VPROC_VOSEL_DVS10_MASK 0x1F |
| 889 | #define VPROC_VOSEL_DVS10_SHIFT 0x0 |
| 890 | |
| 891 | // (0x4A) VPROC_CONB (RW) |
| 892 | #define VPROC_VOSEL_DVS11_MASK 0x1F |
| 893 | #define VPROC_VOSEL_DVS11_SHIFT 0x0 |
| 894 | |
| 895 | // (0x4B) VPROC_CONC (RW) |
| 896 | #define RG_VPROC_RSV_MASK 0xF |
| 897 | #define RG_VPROC_RSV_SHIFT 0x4 |
| 898 | #define RG_VPROC_VOSEL_SFCHG_EN_MASK 0x1 |
| 899 | #define RG_VPROC_VOSEL_SFCHG_EN_SHIFT 0x2 |
| 900 | #define RG_VPROC_CTRL_MASK 0x3 |
| 901 | #define RG_VPROC_CTRL_SHIFT 0x0 |
| 902 | |
| 903 | // (0x4C) VPROC_COND (RW) |
| 904 | #define RG_SMPS_TESTMODE_MASK 0x3F |
| 905 | #define RG_SMPS_TESTMODE_SHIFT 0x0 |
| 906 | |
| 907 | // (0x4D) VPROC_CONE (RW) |
| 908 | #define RG_SMPS_RSV_MASK 0xFF |
| 909 | #define RG_SMPS_RSV_SHIFT 0x0 |
| 910 | |
| 911 | // (0x4E) VPROC_CONF (RO) |
| 912 | #define QI_VPROC_VOSEL_MASK 0x1F |
| 913 | #define QI_VPROC_VOSEL_SHIFT 0x0 |
| 914 | |
| 915 | // (0x4F) BUCK_RSV (RW) |
| 916 | #define RG_BUCK_RSV_MASK 0xFF |
| 917 | #define RG_BUCK_RSV_SHIFT 0x0 |
| 918 | |
| 919 | // (0x52) VCORE_CON0 (RW) |
| 920 | #define RG_VCORE_CSL_MASK 0x3 |
| 921 | #define RG_VCORE_CSL_SHIFT 0x6 |
| 922 | #define RG_VCORE_CSR_MASK 0x3 |
| 923 | #define RG_VCORE_CSR_SHIFT 0x4 |
| 924 | #define RG_VCORE_CC_MASK 0x3 |
| 925 | #define RG_VCORE_CC_SHIFT 0x2 |
| 926 | #define RG_VCORE_RZSEL_MASK 0x3 |
| 927 | #define RG_VCORE_RZSEL_SHIFT 0x0 |
| 928 | |
| 929 | // (0x53) VCORE_CON1 (RW) |
| 930 | #define RG_VCORE_SLP_MASK 0x3 |
| 931 | #define RG_VCORE_SLP_SHIFT 0x6 |
| 932 | #define RG_VCORE_ZX_OS_MASK 0x3 |
| 933 | #define RG_VCORE_ZX_OS_SHIFT 0x4 |
| 934 | #define RG_VCORE_SLEW_MASK 0x3 |
| 935 | #define RG_VCORE_SLEW_SHIFT 0x2 |
| 936 | #define RG_VCORE_SLEW_NMOS_MASK 0x3 |
| 937 | #define RG_VCORE_SLEW_NMOS_SHIFT 0x0 |
| 938 | |
| 939 | // (0x54) VCORE_CON2 (RW) |
| 940 | #define RG_VCORE_AVP_OS_MASK 0x7 |
| 941 | #define RG_VCORE_AVP_OS_SHIFT 0x4 |
| 942 | #define RG_VCORE_AVP_EN_MASK 0x1 |
| 943 | #define RG_VCORE_AVP_EN_SHIFT 0x1 |
| 944 | #define RG_VCORE_MODESET_MASK 0x1 |
| 945 | #define RG_VCORE_MODESET_SHIFT 0x0 |
| 946 | |
| 947 | // (0x55) VCORE_CON3 (RO/RW) |
| 948 | #define VCORE_CON3_ADDR 0x55 |
| 949 | |
| 950 | #define QI_VCORE_EN_MASK 0x1 |
| 951 | #define QI_VCORE_EN_SHIFT 0x7 |
| 952 | #define RG_VCORE_EN_MASK 0x1 |
| 953 | #define RG_VCORE_EN_SHIFT 0x0 |
| 954 | |
| 955 | // (0x56) VCORE_CON4 (RW) |
| 956 | #define RG_VCORE_BURST_MASK 0x3 |
| 957 | #define RG_VCORE_BURST_SHIFT 0x4 |
| 958 | #define RG_VCORE_VFBADJ_MASK 0x7 |
| 959 | #define RG_VCORE_VFBADJ_SHIFT 0x1 |
| 960 | #define RG_VCORE_NDIS_EN_MASK 0x1 |
| 961 | #define RG_VCORE_NDIS_EN_SHIFT 0x0 |
| 962 | |
| 963 | // (0x57) VCORE_CON5 (RW) |
| 964 | #define VCORE_CON5_ADDR 0x57 |
| 965 | |
| 966 | #define RG_VCORE_VOSEL_MASK 0x1F |
| 967 | #define RG_VCORE_VOSEL_SHIFT 0x0 |
| 968 | |
| 969 | // (0x58) VCORE_CON6 (RW) |
| 970 | #define RG_VCORE_VOSEL_CON1_MASK 0x1F |
| 971 | #define RG_VCORE_VOSEL_CON1_SHIFT 0x0 |
| 972 | |
| 973 | // (0x59) VCORE_CON7 (RW) |
| 974 | #define RG_VCORE_RSV_MASK 0xF |
| 975 | #define RG_VCORE_RSV_SHIFT 0x4 |
| 976 | #define RG_VCORE_VOSEL_SFCHG_EN_MASK 0x1 |
| 977 | #define RG_VCORE_VOSEL_SFCHG_EN_SHIFT 0x2 |
| 978 | #define RG_VCORE_CTRL_MASK 0x1 |
| 979 | #define RG_VCORE_CTRL_SHIFT 0x0 |
| 980 | |
| 981 | // (0x5A) VCORE_CON8 (RO) |
| 982 | #define QI_VCORE_VOSEL_MASK 0x1F |
| 983 | #define QI_VCORE_VOSEL_SHIFT 0x0 |
| 984 | |
| 985 | // (0x5D) VRF18_CON0 (RW) |
| 986 | #define RG_VRF18_CSL_MASK 0x3 |
| 987 | #define RG_VRF18_CSL_SHIFT 0x6 |
| 988 | #define RG_VRF18_CSR_MASK 0x3 |
| 989 | #define RG_VRF18_CSR_SHIFT 0x4 |
| 990 | #define RG_VRF18_CC_MASK 0x3 |
| 991 | #define RG_VRF18_CC_SHIFT 0x2 |
| 992 | #define RG_VRF18_RZSEL_MASK 0x3 |
| 993 | #define RG_VRF18_RZSEL_SHIFT 0x0 |
| 994 | |
| 995 | // (0x5E) VRF18_CON1 (RW) |
| 996 | #define RG_VRF18_SLP_MASK 0x3 |
| 997 | #define RG_VRF18_SLP_SHIFT 0x6 |
| 998 | #define RG_VRF18_ZX_OS_MASK 0x3 |
| 999 | #define RG_VRF18_ZX_OS_SHIFT 0x4 |
| 1000 | #define RG_VRF18_SLEW_MASK 0x3 |
| 1001 | #define RG_VRF18_SLEW_SHIFT 0x2 |
| 1002 | #define RG_VRF18_SLEW_NMOS_MASK 0x3 |
| 1003 | #define RG_VRF18_SLEW_NMOS_SHIFT 0x0 |
| 1004 | |
| 1005 | // (0x5F) VRF18_CON2 (RW) |
| 1006 | #define VRF18_CON2_ADDR 0x5F |
| 1007 | |
| 1008 | #define RG_VRF18_AVP_EN_MASK 0x1 |
| 1009 | #define RG_VRF18_AVP_EN_SHIFT 0x1 |
| 1010 | #define RG_VRF18_MODESET_MASK 0x1 |
| 1011 | #define RG_VRF18_MODESET_SHIFT 0x0 |
| 1012 | |
| 1013 | // (0x60) VRF18_CON3 (RO/RW) |
| 1014 | #define VRF18_CON3_ADDR 0x60 |
| 1015 | |
| 1016 | #define QI_VRF18_EN_MASK 0x1 |
| 1017 | #define QI_VRF18_EN_SHIFT 0x7 |
| 1018 | #define RG_VRF18_ON_CTRL_MASK 0x1 |
| 1019 | #define RG_VRF18_ON_CTRL_SHIFT 0x1 |
| 1020 | #define RG_VRF18_EN_MASK 0x1 |
| 1021 | #define RG_VRF18_EN_SHIFT 0x0 |
| 1022 | |
| 1023 | // (0x61) VRF18_CON4 (RW) |
| 1024 | #define RG_VRF18_STBTD_MASK 0x3 |
| 1025 | #define RG_VRF18_STBTD_SHIFT 0x6 |
| 1026 | #define RG_VRF18_BURST_MASK 0x3 |
| 1027 | #define RG_VRF18_BURST_SHIFT 0x4 |
| 1028 | #define RG_VRF18_OCFB_EN_MASK 0x1 |
| 1029 | #define RG_VRF18_OCFB_EN_SHIFT 0x1 |
| 1030 | #define RG_VRF18_NDIS_EN_MASK 0x1 |
| 1031 | #define RG_VRF18_NDIS_EN_SHIFT 0x0 |
| 1032 | |
| 1033 | // (0x62) VRF18_CON5 (RW) |
| 1034 | #define VRF18_CON5_ADDR 0x62 |
| 1035 | |
| 1036 | #define RG_VRF18_VOSEL_MASK 0x1F |
| 1037 | #define RG_VRF18_VOSEL_SHIFT 0x0 |
| 1038 | |
| 1039 | // (0x63) VRF18_CON6 (RW) |
| 1040 | #define RG_VRF18_RSV_MASK 0xF |
| 1041 | #define RG_VRF18_RSV_SHIFT 0x0 |
| 1042 | |
| 1043 | // (0x62) VRF18_CON7 (RO) |
| 1044 | #define RO_QI_VRF18_OC_STATUS_MASK 0x1 |
| 1045 | #define RO_QI_VRF18_OC_STATUS_SHIFT 0x0 |
| 1046 | |
| 1047 | // (0x67) VM_CON0 (RW) |
| 1048 | #define RG_VIO18_CSL_MASK 0x3 |
| 1049 | #define RG_VIO18_CSL_SHIFT 0x6 |
| 1050 | #define RG_VIO18_CSR_MASK 0x3 |
| 1051 | #define RG_VIO18_CSR_SHIFT 0x4 |
| 1052 | #define RG_VIO18_CC_MASK 0x3 |
| 1053 | #define RG_VIO18_CC_SHIFT 0x2 |
| 1054 | #define RG_VIO18_RZSEL_MASK 0x3 |
| 1055 | #define RG_VIO18_RZSEL_SHIFT 0x0 |
| 1056 | |
| 1057 | // (0x68) VM_CON1 (RW) |
| 1058 | #define RG_VIO18_SLP_MASK 0x3 |
| 1059 | #define RG_VIO18_SLP_SHIFT 0x6 |
| 1060 | #define RG_VIO18_ZX_OS_MASK 0x3 |
| 1061 | #define RG_VIO18_ZX_OS_SHIFT 0x4 |
| 1062 | #define RG_VIO18_SLEW_MASK 0x3 |
| 1063 | #define RG_VIO18_SLEW_SHIFT 0x2 |
| 1064 | #define RG_VIO18_SELW_NMOS_MASK 0x3 |
| 1065 | #define RG_VIO18_SELW_NMOS_SHIFT 0x0 |
| 1066 | |
| 1067 | // (0x69) VM_CON2 (RW) |
| 1068 | #define RG_VIO18_AVP_EN_MASK 0x1 |
| 1069 | #define RG_VIO18_AVP_EN_SHIFT 0x1 |
| 1070 | #define RG_VIO18_MODESET_MASK 0x1 |
| 1071 | #define RG_VIO18_MODESET_SHIFT 0x0 |
| 1072 | |
| 1073 | // (0x6A) VM_CON3 (RO/RW) |
| 1074 | #define VM_CON3_ADDR 0x6A |
| 1075 | |
| 1076 | #define NI_VIO18_EN_MASK 0x1 |
| 1077 | #define NI_VIO18_EN_SHIFT 0x7 |
| 1078 | #define RG_VIO18_EN_MASK 0x1 |
| 1079 | #define RG_VIO18_EN_SHIFT 0x0 |
| 1080 | |
| 1081 | // (0x6B) VM_CON4 (RW) |
| 1082 | #define RG_VIO18_BURST_MASK 0x3 |
| 1083 | #define RG_VIO18_BURST_SHIFT 0x4 |
| 1084 | #define RG_VIO18_NDIS_EN_MASK 0x1 |
| 1085 | #define RG_VIO18_NDIS_EN_SHIFT 0x0 |
| 1086 | |
| 1087 | // (0x6C) VM_CON5 (RW) |
| 1088 | #define VM_CON5_ADDR 0x6C |
| 1089 | |
| 1090 | #define RG_VIO18_VOSEL_MASK 0x1F |
| 1091 | #define RG_VIO18_VOSEL_SHIFT 0x0 |
| 1092 | |
| 1093 | // (0x6D) VM_CON6 (RW) |
| 1094 | #define RG_VIO18_RSV_MASK 0xF |
| 1095 | #define RG_VIO18_RSV_SHIFT 0x4 |
| 1096 | |
| 1097 | // (0x70) VPA_CON0 (RW) |
| 1098 | #define RG_VPA_CSL_MASK 0x3 |
| 1099 | #define RG_VPA_CSL_SHIFT 0x6 |
| 1100 | #define RG_VPA_CSR_MASK 0x3 |
| 1101 | #define RG_VPA_CSR_SHIFT 0x4 |
| 1102 | #define RG_VPA_CC_MASK 0x3 |
| 1103 | #define RG_VPA_CC_SHIFT 0x2 |
| 1104 | #define RG_VPA_RZSEL_MASK 0x3 |
| 1105 | #define RG_VPA_RZSEL_SHIFT 0x0 |
| 1106 | |
| 1107 | // (0x71) VPA_CON1 (RW) |
| 1108 | #define RG_VPA_SLP_MASK 0x3 |
| 1109 | #define RG_VPA_SLP_SHIFT 0x6 |
| 1110 | #define RG_VPA_ZX_OS_MASK 0x3 |
| 1111 | #define RG_VPA_ZX_OS_SHIFT 0x4 |
| 1112 | #define RG_VPA_SLEW_MASK 0x3 |
| 1113 | #define RG_VPA_SLEW_SHIFT 0x2 |
| 1114 | #define RG_VPA_SLEW_NMOS_MASK 0x3 |
| 1115 | #define RG_VPA_SLEW_NMOS_SHIFT 0x0 |
| 1116 | |
| 1117 | // (0x72) VPA_CON2 (RW) |
| 1118 | #define RG_VPA_AVP_EN_MASK 0x1 |
| 1119 | #define RG_VPA_AVP_EN_SHIFT 0x1 |
| 1120 | #define RG_VPA_MODESET_MASK 0x1 |
| 1121 | #define RG_VPA_MODESET_SHIFT 0x0 |
| 1122 | |
| 1123 | // (0x73) VPA_CON3 (RW) |
| 1124 | #define VPA_CON3_ADDR 0x73 |
| 1125 | |
| 1126 | #define RG_VPA_EN_MASK 0x1 |
| 1127 | #define RG_VPA_EN_SHIFT 0x0 |
| 1128 | |
| 1129 | // (0x74) VPA_CON4 (RW) |
| 1130 | #define RG_VPA_BURST_MASK 0x3 |
| 1131 | #define RG_VPA_BURST_SHIFT 0x4 |
| 1132 | #define RG_VPA_NDIS_EN_MASK 0x1 |
| 1133 | #define RG_VPA_NDIS_EN_SHIFT 0x0 |
| 1134 | |
| 1135 | // (0x75) VPA_CON5 (RW) |
| 1136 | #define VPA_CON5_ADDR 0x75 |
| 1137 | |
| 1138 | #define RG_VPA_VOSEL_MASK 0x1F |
| 1139 | #define RG_VPA_VOSEL_SHIFT 0x0 |
| 1140 | |
| 1141 | // (0x76) VPA_CON6 (RW) |
| 1142 | #define VPA_CON6_ADDR 0x76 |
| 1143 | |
| 1144 | #define RG_PASEL_SET0_MASK 0x1F |
| 1145 | #define RG_PASEL_SET0_SHIFT 0x0 |
| 1146 | |
| 1147 | // (0x77) VPA_CON7 (RW) |
| 1148 | #define VPA_CON7_ADDR 0x77 |
| 1149 | |
| 1150 | #define RG_PASEL_SET1_MASK 0x1F |
| 1151 | #define RG_PASEL_SET1_SHIFT 0x0 |
| 1152 | |
| 1153 | // (0x78) VPA_CON8 (RW) |
| 1154 | #define VPA_CON8_ADDR 0x78 |
| 1155 | |
| 1156 | #define RG_PASEL_SET2_MASK 0x1F |
| 1157 | #define RG_PASEL_SET2_SHIFT 0x0 |
| 1158 | |
| 1159 | // (0x79) VPA_CON9 (RW) |
| 1160 | #define VPA_CON9_ADDR 0x79 |
| 1161 | |
| 1162 | #define RG_PASEL_SET3_MASK 0x1F |
| 1163 | #define RG_PASEL_SET3_SHIFT 0x0 |
| 1164 | |
| 1165 | // (0x7A) VPA_CONA (RW) |
| 1166 | #define VPA_CONA_ADDR 0x7A |
| 1167 | |
| 1168 | #define RG_PASEL_SET4_MASK 0x1F |
| 1169 | #define RG_PASEL_SET4_SHIFT 0x0 |
| 1170 | |
| 1171 | // (0x7B) VPA_CONB (RW) |
| 1172 | #define VPA_CONB_ADDR 0x7B |
| 1173 | |
| 1174 | #define RG_PASEL_SET5_MASK 0x1F |
| 1175 | #define RG_PASEL_SET5_SHIFT 0x0 |
| 1176 | |
| 1177 | // (0x7C) VPA_CONC (RW) |
| 1178 | #define VPA_CONC_ADDR 0x7C |
| 1179 | |
| 1180 | #define RG_PASEL_SET6_MASK 0x1F |
| 1181 | #define RG_PASEL_SET6_SHIFT 0x0 |
| 1182 | |
| 1183 | // (0x7D) VPA_COND (RW) |
| 1184 | #define VPA_COND_ADDR 0x7D |
| 1185 | |
| 1186 | #define RG_PASEL_SET7_MASK 0x1F |
| 1187 | #define RG_PASEL_SET7_SHIFT 0x0 |
| 1188 | |
| 1189 | // (0x7E) VPA_CONE (RW) |
| 1190 | #define VPA_CONE_ADDR 0x7E |
| 1191 | |
| 1192 | #define RG_VPA_RSV_MASK 0xF |
| 1193 | #define RG_VPA_RSV_SHIFT 0x4 |
| 1194 | #define RG_VPA_CTRL_MASK 0x1 |
| 1195 | #define RG_VPA_CTRL_SHIFT 0x0 |
| 1196 | |
| 1197 | // (0x7F) VPA_CONF (RO) |
| 1198 | #define QI_VPA_VOSEL_MASK 0x1F |
| 1199 | #define QI_VPA_VOSEL_SHIFT 0x0 |
| 1200 | |
| 1201 | // (0x82) DIGLDO_CON0 (RW) |
| 1202 | #define DIGLDO_CON0_ADDR 0x82 |
| 1203 | |
| 1204 | #define RG_VM12_1_CAL_MASK 0xF |
| 1205 | #define RG_VM12_1_CAL_SHIFT 0x0 |
| 1206 | |
| 1207 | // (0x83) DIGLDO_CON1 (RO/RW) |
| 1208 | #define DIGLDO_CON1_ADDR 0x83 |
| 1209 | |
| 1210 | #define QI_VM12_1_EN_MASK 0x1 |
| 1211 | #define QI_VM12_1_EN_SHIFT 0x7 |
| 1212 | #define VM12_1_EN_MASK 0x1 |
| 1213 | #define VM12_1_EN_SHIFT 0x0 |
| 1214 | |
| 1215 | // (0x84) DIGLDO_CON2 (RW) |
| 1216 | #define RG_VM12_1_STBTD_MASK 0x3 |
| 1217 | #define RG_VM12_1_STBTD_SHIFT 0x4 |
| 1218 | #define RG_VM12_1_OCFB_EN_MASK 0x1 |
| 1219 | #define RG_VM12_1_OCFB_EN_SHIFT 0x1 |
| 1220 | #define RG_VM12_1_NDIS_EN_MASK 0x1 |
| 1221 | #define RG_VM12_1_NDIS_EN_SHIFT 0x0 |
| 1222 | |
| 1223 | // (0x85) DIGLDO_CON3 (RO/RW) |
| 1224 | #define QI_VM12_1_MODE_MASK 0x1 |
| 1225 | #define QI_VM12_1_MODE_SHIFT 0x7 |
| 1226 | #define VM12_1_LP_SET_MASK 0x1 |
| 1227 | #define VM12_1_LP_SET_SHIFT 0x1 |
| 1228 | #define VM12_1_LP_SEL_MASK 0x1 |
| 1229 | #define VM12_1_LP_SEL_SHIFT 0x0 |
| 1230 | |
| 1231 | // (0x86) DIGLDO_CON4 (RW) |
| 1232 | #define DIGLDO_CON4_ADDR 0x86 |
| 1233 | |
| 1234 | #define RG_VM12_2_CAL_MASK 0xF |
| 1235 | #define RG_VM12_2_CAL_SHIFT 0x0 |
| 1236 | |
| 1237 | // (0x87) DIGLDO_CON5 (RO/RW) |
| 1238 | #define DIGLDO_CON5_ADDR 0x87 |
| 1239 | |
| 1240 | #define QI_VM12_2_EN_MASK 0x1 |
| 1241 | #define QI_VM12_2_EN_SHIFT 0x7 |
| 1242 | #define VM12_2_EN_MASK 0x1 |
| 1243 | #define VM12_2_EN_SHIFT 0x0 |
| 1244 | |
| 1245 | // (0x88) DIGLDO_CON6 (RW) |
| 1246 | #define RG_VM12_2_STBTD_MASK 0x3 |
| 1247 | #define RG_VM12_2_STBTD_SHIFT 0x4 |
| 1248 | #define RG_VM12_2_OCFB_EN_MASK 0x1 |
| 1249 | #define RG_VM12_2_OCFB_EN_SHIFT 0x1 |
| 1250 | #define RG_VM12_2_NDIS_EN_MASK 0x1 |
| 1251 | #define RG_VM12_2_NDIS_EN_SHIFT 0x0 |
| 1252 | |
| 1253 | // (0x89) DIGLDO_CON7 (RO/RW) |
| 1254 | #define QI_VM12_2_MODE_MASK 0x1 |
| 1255 | #define QI_VM12_2_MODE_SHIFT 0x7 |
| 1256 | #define VM12_2_LP_SET_MASK 0x1 |
| 1257 | #define VM12_2_LP_SET_SHIFT 0x1 |
| 1258 | #define VM12_2_LP_SEL_MASK 0x1 |
| 1259 | #define VM12_2_LP_SEL_SHIFT 0x0 |
| 1260 | |
| 1261 | // (0x8A) DIGLDO_CON8 (RW) |
| 1262 | #define DIGLDO_CON8_ADDR 0x8A |
| 1263 | |
| 1264 | #define RG_VM12_INT_CAL_MASK 0x1F |
| 1265 | #define RG_VM12_INT_CAL_SHIFT 0x0 |
| 1266 | |
| 1267 | // (0x8B) DIGLDO_CON9 (RW) |
| 1268 | #define VM12_INT_SLEEP_MASK 0x1F |
| 1269 | #define VM12_INT_SLEEP_SHIFT 0x0 |
| 1270 | |
| 1271 | // (0x8C) DIGLDO_CONA (RW) |
| 1272 | #define VM12_INT_LOW_BOUND_MASK 0x1F |
| 1273 | #define VM12_INT_LOW_BOUND_SHIFT 0x0 |
| 1274 | |
| 1275 | // (0x8D) DIGLDO_CONB (RO/RW) |
| 1276 | #define DIGLDO_CONB_ADDR 0x8D |
| 1277 | |
| 1278 | #define QI_VM12_INT_EN_MASK 0x1 |
| 1279 | #define QI_VM12_INT_EN_SHIFT 0x7 |
| 1280 | #define VM12_INT_EN_MASK 0x1 |
| 1281 | #define VM12_INT_EN_SHIFT 0x0 |
| 1282 | |
| 1283 | // (0x8E) DIGLDO_CONC (RW) |
| 1284 | #define RG_VM12_INT_STBTD_MASK 0x3 |
| 1285 | #define RG_VM12_INT_STBTD_SHIFT 0x4 |
| 1286 | #define RG_VM12_INT_OCFB_EN_MASK 0x1 |
| 1287 | #define RG_VM12_INT_OCFB_EN_SHIFT 0x1 |
| 1288 | #define RG_VM12_INT_NDIS_EN_MASK 0x1 |
| 1289 | #define RG_VM12_INT_NDIS_EN_SHIFT 0x0 |
| 1290 | |
| 1291 | // (0x8F) DIGLDO_COND (RW) |
| 1292 | #define VM12_INT_CTRL_SEL_MASK 0x1 |
| 1293 | #define VM12_INT_CTRL_SEL_SHIFT 0x4 |
| 1294 | #define RG_VM12_INT_TRIM_MASK 0x7 |
| 1295 | #define RG_VM12_INT_TRIM_SHIFT 0x1 |
| 1296 | #define RG_VM12_INT_CAL_SFCHG_EN_MASK 0x1 |
| 1297 | #define RG_VM12_INT_CAL_SFCHG_EN_SHIFT 0x0 |
| 1298 | |
| 1299 | // (0x90) DIGLDO_CONE (RO/RW) |
| 1300 | #define QI_VM12_INT_MODE_MASK 0x1 |
| 1301 | #define QI_VM12_INT_MODE_SHIFT 0x7 |
| 1302 | #define VM12_INT_LP_SET_MASK 0x1 |
| 1303 | #define VM12_INT_LP_SET_SHIFT 0x1 |
| 1304 | #define VM12_INT_LP_SEL_MASK 0x1 |
| 1305 | #define VM12_INT_LP_SEL_SHIFT 0x0 |
| 1306 | |
| 1307 | // (0x91) DIGLDO_CONF (RW) |
| 1308 | #define DIGLDO_CONF_ADDR 0x91 |
| 1309 | |
| 1310 | #define RG_VIO28_CAL_MASK 0xF |
| 1311 | #define RG_VIO28_CAL_SHIFT 0x0 |
| 1312 | |
| 1313 | // (0x92) DIGLDO_CON10 (RO/RW) |
| 1314 | #define DIGLDO_CON10_ADDR 0x92 |
| 1315 | |
| 1316 | #define QI_VIO28_EN_MASK 0x1 |
| 1317 | #define QI_VIO28_EN_SHIFT 0x7 |
| 1318 | #define VIO28_EN_MASK 0x1 |
| 1319 | #define VIO28_EN_SHIFT 0x0 |
| 1320 | |
| 1321 | // (0x93) DIGLDO_CON11 (RW) |
| 1322 | #define RG_VIO28_STBTD_MASK 0x3 |
| 1323 | #define RG_VIO28_STBTD_SHIFT 0x4 |
| 1324 | #define RG_VIO28_OCFB_EN_MASK 0x1 |
| 1325 | #define RG_VIO28_OCFB_EN_SHIFT 0x1 |
| 1326 | #define RG_VIO28_NDIS_EN_MASK 0x1 |
| 1327 | #define RG_VIO28_NDIS_EN_SHIFT 0x0 |
| 1328 | |
| 1329 | // (0x94) DIGLDO_CON12 (RW) |
| 1330 | #define DIGLDO_CON12_ADDR 0x94 |
| 1331 | |
| 1332 | #define RG_VSIM_CAL_MASK 0xF |
| 1333 | #define RG_VSIM_CAL_SHIFT 0x0 |
| 1334 | |
| 1335 | // (0x95) DIGLDO_CON13 (RW) |
| 1336 | #define DIGLDO_CON13_ADDR 0x95 |
| 1337 | |
| 1338 | #define RG_VSIM_VOSEL_MASK 0x1 |
| 1339 | #define RG_VSIM_VOSEL_SHIFT 0x4 |
| 1340 | #define RG_VSIM_EN_MASK 0x1 |
| 1341 | #define RG_VSIM_EN_SHIFT 0x0 |
| 1342 | |
| 1343 | // (0x96) DIGLDO_CON14 (RW) |
| 1344 | #define RG_VSIM_STBTD_MASK 0x3 |
| 1345 | #define RG_VSIM_STBTD_SHIFT 0x4 |
| 1346 | #define RG_VSIM_OCFB_EN_MASK 0x1 |
| 1347 | #define RG_VSIM_OCFB_EN_SHIFT 0x1 |
| 1348 | #define RG_VSIM_NDIS_EN_MASK 0x1 |
| 1349 | #define RG_VSIM_NDIS_EN_SHIFT 0x0 |
| 1350 | |
| 1351 | // (0x97) DIGLDO_CON15 (RW) |
| 1352 | #define DIGLDO_CON15_ADDR 0x97 |
| 1353 | |
| 1354 | #define RG_VSIM2_CAL_MASK 0xF |
| 1355 | #define RG_VSIM2_CAL_SHIFT 0x0 |
| 1356 | |
| 1357 | // (0x98) DIGLDO_CON16 (RW) |
| 1358 | #define DIGLDO_CON16_ADDR 0x98 |
| 1359 | |
| 1360 | #define RG_VSIM2_VOSEL_MASK 0x7 |
| 1361 | #define RG_VSIM2_VOSEL_SHIFT 0x4 |
| 1362 | #define RG_VSIM2_EN_MASK 0x1 |
| 1363 | #define RG_VSIM2_EN_SHIFT 0x0 |
| 1364 | |
| 1365 | // (0x99) DIGLDO_CON17 (RW) |
| 1366 | #define RG_VSIM2_STBTD_MASK 0x3 |
| 1367 | #define RG_VSIM2_STBTD_SHIFT 0x4 |
| 1368 | #define RG_VSIM2_OCFB_EN_MASK 0x1 |
| 1369 | #define RG_VSIM2_OCFB_EN_SHIFT 0x1 |
| 1370 | #define RG_VSIM2_NDIS_EN_MASK 0x1 |
| 1371 | #define RG_VSIM2_NDIS_EN_SHIFT 0x0 |
| 1372 | |
| 1373 | // (0x9A) DIGLDO_CON18 (RW) |
| 1374 | #define DIGLDO_CON18_ADDR 0x9A |
| 1375 | |
| 1376 | #define RG_VUSB_CAL_MASK 0xF |
| 1377 | #define RG_VUSB_CAL_SHIFT 0x0 |
| 1378 | |
| 1379 | // (0x9B) DIGLDO_CON19 (RO/RW) |
| 1380 | #define DIGLDO_CON19_ADDR 0x9B |
| 1381 | |
| 1382 | #define QI_VUSB_EN_MASK 0x1 |
| 1383 | #define QI_VUSB_EN_SHIFT 0x7 |
| 1384 | #define RG_VUSB_EN_MASK 0x1 |
| 1385 | #define RG_VUSB_EN_SHIFT 0x0 |
| 1386 | |
| 1387 | // (0x9C) DIGLDO_CON1A (RW) |
| 1388 | #define RG_VUSB_STBTD_MASK 0x3 |
| 1389 | #define RG_VUSB_STBTD_SHIFT 0x4 |
| 1390 | #define RG_VUSB_OCFB_EN_MASK 0x1 |
| 1391 | #define RG_VUSB_OCFB_EN_SHIFT 0x1 |
| 1392 | #define RG_VUSB_NDIS_EN_MASK 0x1 |
| 1393 | #define RG_VUSB_NDIS_EN_SHIFT 0x0 |
| 1394 | |
| 1395 | // (0x9D) DIGLDO_CON1B (RW) |
| 1396 | #define DIGLDO_CON1B_ADDR 0x9D |
| 1397 | |
| 1398 | #define RG_VCAMD_CAL_MASK 0xF |
| 1399 | #define RG_VCAMD_CAL_SHIFT 0x0 |
| 1400 | |
| 1401 | // (0x9E) DIGLDO_CON1C (RW) |
| 1402 | #define DIGLDO_CON1C_ADDR 0x9E |
| 1403 | |
| 1404 | #define RG_VCAMD_VOSEL_MASK 0x7 |
| 1405 | #define RG_VCAMD_VOSEL_SHIFT 0x4 |
| 1406 | #define RG_VCAMD_EN_MASK 0x1 |
| 1407 | #define RG_VCAMD_EN_SHIFT 0x0 |
| 1408 | |
| 1409 | // (0x9F) DIGLDO_CON1D (RW) |
| 1410 | #define RG_VCAMD_STBTD_MASK 0x3 |
| 1411 | #define RG_VCAMD_STBTD_SHIFT 0x4 |
| 1412 | #define RG_VCAMD_OCFB_EN_MASK 0x1 |
| 1413 | #define RG_VCAMD_OCFB_EN_SHIFT 0x1 |
| 1414 | #define RG_VCAMD_NDIS_EN_MASK 0x1 |
| 1415 | #define RG_VCAMD_NDIS_EN_SHIFT 0x0 |
| 1416 | |
| 1417 | // (0xA0) DIGLDO_CON1E (RW) |
| 1418 | #define DIGLDO_CON1E_ADDR 0xA0 |
| 1419 | |
| 1420 | #define RG_VCAM_IO_CAL_MASK 0xF |
| 1421 | #define RG_VCAM_IO_CAL_SHIFT 0x0 |
| 1422 | |
| 1423 | // (0xA1) DIGLDO_CON1F (RW) |
| 1424 | #define DIGLDO_CON1F_ADDR 0xA1 |
| 1425 | |
| 1426 | #define RG_VCAM_IO_VOSEL_MASK 0x7 |
| 1427 | #define RG_VCAM_IO_VOSEL_SHIFT 0x4 |
| 1428 | #define RG_VCAM_IO_EN_MASK 0x1 |
| 1429 | #define RG_VCAM_IO_EN_SHIFT 0x0 |
| 1430 | |
| 1431 | // (0xA2) DIGLDO_CON20 (RW) |
| 1432 | #define RG_VCAM_IO_STBTD_MASK 0x3 |
| 1433 | #define RG_VCAM_IO_STBTD_SHIFT 0x4 |
| 1434 | #define RG_VCAM_IO_OCFB_EN_MASK 0x1 |
| 1435 | #define RG_VCAM_IO_OCFB_EN_SHIFT 0x1 |
| 1436 | #define RG_VCAM_IO_NDIS_EN_MASK 0x1 |
| 1437 | #define RG_VCAM_IO_NDIS_EN_SHIFT 0x0 |
| 1438 | |
| 1439 | // (0xA3) DIGLDO_CON21 (RW) |
| 1440 | #define DIGLDO_CON21_ADDR 0xA3 |
| 1441 | |
| 1442 | #define RG_VCAM_AF_CAL_MASK 0xF |
| 1443 | #define RG_VCAM_AF_CAL_SHIFT 0x0 |
| 1444 | |
| 1445 | // (0xA4) DIGLDO_CON22 (RW) |
| 1446 | #define DIGLDO_CON22_ADDR 0xA4 |
| 1447 | |
| 1448 | #define RG_VCAM_AF_VOSEL_MASK 0x7 |
| 1449 | #define RG_VCAM_AF_VOSEL_SHIFT 0x4 |
| 1450 | #define RG_VCAM_AF_EN_MASK 0x1 |
| 1451 | #define RG_VCAM_AF_EN_SHIFT 0x0 |
| 1452 | |
| 1453 | // (0xA5) DIGLDO_CON23 (RW) |
| 1454 | #define RG_VCAM_AF_STBTD_MASK 0x3 |
| 1455 | #define RG_VCAM_AF_STBTD_SHIFT 0x4 |
| 1456 | #define RG_VCAM_AF_OCFB_EN_MASK 0x1 |
| 1457 | #define RG_VCAM_AF_OCFB_EN_SHIFT 0x1 |
| 1458 | #define RG_VCAM_AF_NDIS_EN_MASK 0x1 |
| 1459 | #define RG_VCAM_AF_NDIS_EN_SHIFT 0x0 |
| 1460 | |
| 1461 | // (0xA6) DIGLDO_CON24 (RW) |
| 1462 | #define DIGLDO_CON24_ADDR 0xA6 |
| 1463 | |
| 1464 | #define RG_VMC_CAL_MASK 0xF |
| 1465 | #define RG_VMC_CAL_SHIFT 0x0 |
| 1466 | |
| 1467 | // (0xA7) DIGLDO_CON25 (RO/RW) |
| 1468 | #define DIGLDO_CON25_ADDR 0xA7 |
| 1469 | |
| 1470 | #define QI_VMC_EN_MASK 0x1 |
| 1471 | #define QI_VMC_EN_SHIFT 0x7 |
| 1472 | #define RG_VMC_VOSEL_MASK 0x7 |
| 1473 | #define RG_VMC_VOSEL_SHIFT 0x4 |
| 1474 | #define RG_VMC_EN_MASK 0x1 |
| 1475 | #define RG_VMC_EN_SHIFT 0x0 |
| 1476 | |
| 1477 | // (0xA8) DIGLDO_CON26 (RW) |
| 1478 | #define RG_VMC_STBTD_MASK 0x3 |
| 1479 | #define RG_VMC_STBTD_SHIFT 0x4 |
| 1480 | #define RG_VMC_OCFB_EN_MASK 0x1 |
| 1481 | #define RG_VMC_OCFB_EN_SHIFT 0x1 |
| 1482 | #define RG_VMC_NDIS_EN_MASK 0x1 |
| 1483 | #define RG_VMC_NDIS_EN_SHIFT 0x0 |
| 1484 | |
| 1485 | // (0xA9) DIGLDO_CON27 (RO/RW) |
| 1486 | #define QI_VMC_MODE_MASK 0x1 |
| 1487 | #define QI_VMC_MODE_SHIFT 0x7 |
| 1488 | #define VMC_LP_MODE_SET_MASK 0x1 |
| 1489 | #define VMC_LP_MODE_SET_SHIFT 0x1 |
| 1490 | #define VMC_LP_SEL_MASK 0x1 |
| 1491 | #define VMC_LP_SEL_SHIFT 0x0 |
| 1492 | |
| 1493 | // (0xAA) DIGLDO_CON28 (RW) |
| 1494 | #define DIGLDO_CON28_ADDR 0xAA |
| 1495 | |
| 1496 | #define RG_VMCH_CAL_MASK 0xF |
| 1497 | #define RG_VMCH_CAL_SHIFT 0x0 |
| 1498 | |
| 1499 | // (0xAB) DIGLDO_CON29 (RO/RW) |
| 1500 | #define DIGLDO_CON29_ADDR 0xAB |
| 1501 | |
| 1502 | #define QI_VMCH_EN_MASK 0x1 |
| 1503 | #define QI_VMCH_EN_SHIFT 0x7 |
| 1504 | #define RG_VMCH_VOSEL_MASK 0x7 |
| 1505 | #define RG_VMCH_VOSEL_SHIFT 0x4 |
| 1506 | #define RG_VMCH_EN_MASK 0x1 |
| 1507 | #define RG_VMCH_EN_SHIFT 0x0 |
| 1508 | |
| 1509 | // (0xAC) DIGLDO_CON2A (RW) |
| 1510 | #define RG_VMCH_STBTD_MASK 0x3 |
| 1511 | #define RG_VMCH_STBTD_SHIFT 0x4 |
| 1512 | #define RG_VMCH_OCFB_EN_MASK 0x1 |
| 1513 | #define RG_VMCH_OCFB_EN_SHIFT 0x1 |
| 1514 | #define RG_VMCH_NDIS_EN_MASK 0x1 |
| 1515 | #define RG_VMCH_NDIS_EN_SHIFT 0x0 |
| 1516 | |
| 1517 | // (0xAD) DIGLDO_CON2B (RO/RW) |
| 1518 | #define QI_VMCH_MODE_MASK 0x1 |
| 1519 | #define QI_VMCH_MODE_SHIFT 0x7 |
| 1520 | #define VMCH_LP_MODE_SET_MASK 0x1 |
| 1521 | #define VMCH_LP_MODE_SET_SHIFT 0x1 |
| 1522 | #define VMCH_LP_SEL_MASK 0x1 |
| 1523 | #define VMCH_LP_SEL_SHIFT 0x0 |
| 1524 | |
| 1525 | // (0xAE) DIGLDO_CON2C (RW) |
| 1526 | #define DIGLDO_CON2C_ADDR 0xAE |
| 1527 | |
| 1528 | #define RG_VGP_CAL_MASK 0xF |
| 1529 | #define RG_VGP_CAL_SHIFT 0x0 |
| 1530 | |
| 1531 | // (0xAF) DIGLDO_CON2D (RW) |
| 1532 | #define DIGLDO_CON2D_ADDR 0xAF |
| 1533 | |
| 1534 | #define RG_VGP_VOSEL_MASK 0x7 |
| 1535 | #define RG_VGP_VOSEL_SHIFT 0x4 |
| 1536 | #define RG_VGP_EN_MASK 0x1 |
| 1537 | #define RG_VGP_EN_SHIFT 0x0 |
| 1538 | |
| 1539 | // (0xB0) DIGLDO_CON2E (RW) |
| 1540 | #define RG_VGP_STBTD_MASK 0x3 |
| 1541 | #define RG_VGP_STBTD_SHIFT 0x4 |
| 1542 | #define RG_VGP_OCFB_EN_MASK 0x1 |
| 1543 | #define RG_VGP_OCFB_EN_SHIFT 0x1 |
| 1544 | #define RG_VGP_NDIS_EN_MASK 0x1 |
| 1545 | #define RG_VGP_NDIS_EN_SHIFT 0x0 |
| 1546 | |
| 1547 | // (0xB1) DIGLDO_CON2F (RW) |
| 1548 | #define DIGLDO_CON2F_ADDR 0xB1 |
| 1549 | |
| 1550 | #define RG_VGP2_CAL_MASK 0xF |
| 1551 | #define RG_VGP2_CAL_SHIFT 0x0 |
| 1552 | |
| 1553 | // (0xB2) DIGLDO_CON30 (RW) |
| 1554 | #define DIGLDO_CON30_ADDR 0xB2 |
| 1555 | |
| 1556 | #define RG_VGP2_VOSEL_MASK 0x7 |
| 1557 | #define RG_VGP2_VOSEL_SHIFT 0x4 |
| 1558 | #define RG_VGP2_EN_MASK 0x1 |
| 1559 | #define RG_VGP2_EN_SHIFT 0x0 |
| 1560 | |
| 1561 | // (0xB3) DIGLDO_CON31 (RW) |
| 1562 | #define RG_VGP2_STBTD_MASK 0x3 |
| 1563 | #define RG_VGP2_STBTD_SHIFT 0x4 |
| 1564 | #define RG_VGP2_OCFB_EN_MASK 0x1 |
| 1565 | #define RG_VGP2_OCFB_EN_SHIFT 0x1 |
| 1566 | #define RG_VGP2_NDIS_EN_MASK 0x1 |
| 1567 | #define RG_VGP2_NDIS_EN_SHIFT 0x0 |
| 1568 | |
| 1569 | // (0xB4) DIGLDO_CON32 (RW) |
| 1570 | #define DIGLDO_CON32_ADDR 0xB4 |
| 1571 | |
| 1572 | #define RG_VIBR_CAL_MASK 0xF |
| 1573 | #define RG_VIBR_CAL_SHIFT 0x0 |
| 1574 | |
| 1575 | // (0xB5) DIGLDO_CON33 (RW) |
| 1576 | #define DIGLDO_CON33_ADDR 0xB5 |
| 1577 | |
| 1578 | #define RG_VIBR_VOSEL_MASK 0x7 |
| 1579 | #define RG_VIBR_VOSEL_SHIFT 0x4 |
| 1580 | #define RG_VIBR_EN_MASK 0x1 |
| 1581 | #define RG_VIBR_EN_SHIFT 0x0 |
| 1582 | |
| 1583 | // (0xB6) DIGLDO_CON34 (RW) |
| 1584 | #define RG_VIBR_STBTD_MASK 0x3 |
| 1585 | #define RG_VIBR_STBTD_SHIFT 0x4 |
| 1586 | #define RG_VIBR_THR_SHDN_EN_MASK 0x1 |
| 1587 | #define RG_VIBR_THR_SHDN_EN_SHIFT 0x3 |
| 1588 | #define RG_VIBR_STB_SEL_MASK 0x1 |
| 1589 | #define RG_VIBR_STB_SEL_SHIFT 0x2 |
| 1590 | #define RG_VIBR_OCFB_EN_MASK 0x1 |
| 1591 | #define RG_VIBR_OCFB_EN_SHIFT 0x1 |
| 1592 | #define RG_VIBR_NDIS_EN_MASK 0x1 |
| 1593 | #define RG_VIBR_NDIS_EN_SHIFT 0x0 |
| 1594 | |
| 1595 | // (0xB7) DIGLDO_CON35 (RO) |
| 1596 | #define RO_QI_VUSB_OC_STATUS_MASK 0x1 |
| 1597 | #define RO_QI_VUSB_OC_STATUS_SHIFT 0x6 |
| 1598 | #define RO_QI_VSIM2_OC_STATUS_MASK 0x1 |
| 1599 | #define RO_QI_VSIM2_OC_STATUS_SHIFT 0x5 |
| 1600 | #define RO_QI_VSIM_OC_STATUS_MASK 0x1 |
| 1601 | #define RO_QI_VSIM_OC_STATUS_SHIFT 0x4 |
| 1602 | #define RO_QI_VIO28_OC_STATUS_MASK 0x1 |
| 1603 | #define RO_QI_VIO28_OC_STATUS_SHIFT 0x3 |
| 1604 | #define RO_QI_VM12_INT_OC_STATUS_MASK 0x1 |
| 1605 | #define RO_QI_VM12_INT_OC_STATUS_SHIFT 0x2 |
| 1606 | #define RO_QI_VM12_2_OC_STATUS_MASK 0x1 |
| 1607 | #define RO_QI_VM12_2_OC_STATUS_SHIFT 0x1 |
| 1608 | #define RO_QI_VM12_1_OC_STATUS_MASK 0x1 |
| 1609 | #define RO_QI_VM12_1_OC_STATUS_SHIFT 0x0 |
| 1610 | |
| 1611 | // (0xB8) DIGLDO_CON36 (RO) |
| 1612 | #define RO_QI_VIBR_OC_STATUS_MASK 0x1 |
| 1613 | #define RO_QI_VIBR_OC_STATUS_SHIFT 0x7 |
| 1614 | #define RO_QI_VGP2_OC_STATUS_MASK 0x1 |
| 1615 | #define RO_QI_VGP2_OC_STATUS_SHIFT 0x6 |
| 1616 | #define RO_QI_VGP_OC_STATUS_MASK 0x1 |
| 1617 | #define RO_QI_VGP_OC_STATUS_SHIFT 0x5 |
| 1618 | #define RO_QI_VMCH_OC_STATUS_MASK 0x1 |
| 1619 | #define RO_QI_VMCH_OC_STATUS_SHIFT 0x4 |
| 1620 | #define RO_QI_VMC_OC_STATUS_MASK 0x1 |
| 1621 | #define RO_QI_VMC_OC_STATUS_SHIFT 0x3 |
| 1622 | #define RO_QI_VCAM_AF_OC_STATUS_MASK 0x1 |
| 1623 | #define RO_QI_VCAM_AF_OC_STATUS_SHIFT 0x2 |
| 1624 | #define RO_QI_VCAM_IO_OC_STATUS_MASK 0x1 |
| 1625 | #define RO_QI_VCAM_IO_OC_STATUS_SHIFT 0x1 |
| 1626 | #define RO_QI_VCAMD_OC_STATUS_MASK 0x1 |
| 1627 | #define RO_QI_VCAMD_OC_STATUS_SHIFT 0x0 |
| 1628 | |
| 1629 | // (0xB9) DIGLDO_CON37 (RO) |
| 1630 | #define QI_VM12_INT_CAL_MASK 0x1F |
| 1631 | #define QI_VM12_INT_CAL_SHIFT 0x0 |
| 1632 | |
| 1633 | // (0xBA) DIGLDO_RSV (RW) |
| 1634 | #define RG_DIGLDO_RSV_MASK 0xF |
| 1635 | #define RG_DIGLDO_RSV_SHIFT 0x0 |
| 1636 | |
| 1637 | // (0xBD) ANALDO_CON0 (RW) |
| 1638 | #define ANALDO_CON0_ADDR 0xBD |
| 1639 | |
| 1640 | #define RG_VRF_CAL_MASK 0xF |
| 1641 | #define RG_VRF_CAL_SHIFT 0x0 |
| 1642 | |
| 1643 | // (0xBE) ANALDO_CON1 (RO/RW) |
| 1644 | #define ANALDO_CON1_ADDR 0xBE |
| 1645 | |
| 1646 | #define QI_VRF_EN_MASK 0x1 |
| 1647 | #define QI_VRF_EN_SHIFT 0x7 |
| 1648 | #define VRF_ON_CTRL_MASK 0x1 |
| 1649 | #define VRF_ON_CTRL_SHIFT 0x1 |
| 1650 | #define RG_VRF_EN_MASK 0x1 |
| 1651 | #define RG_VRF_EN_SHIFT 0x0 |
| 1652 | |
| 1653 | // (0xBF) ANALDO_CON2 (RW) |
| 1654 | #define RG_VRF_STBTD_MASK 0x3 |
| 1655 | #define RG_VRF_STBTD_SHIFT 0x4 |
| 1656 | #define RG_VRF_OCFB_EN_MASK 0x1 |
| 1657 | #define RG_VRF_OCFB_EN_SHIFT 0x1 |
| 1658 | #define RG_VRF_NDIS_EN_MASK 0x1 |
| 1659 | #define RG_VRF_NDIS_EN_SHIFT 0x0 |
| 1660 | |
| 1661 | // (0xC0) ANALDO_CON3 (RW) |
| 1662 | #define ANALDO_CON3_ADDR 0xC0 |
| 1663 | |
| 1664 | #define RG_VTCXO_CAL_MASK 0xF |
| 1665 | #define RG_VTCXO_CAL_SHIFT 0x0 |
| 1666 | |
| 1667 | // (0xC1) ANALDO_CON4 (RO/RW) |
| 1668 | #define ANALDO_CON4_ADDR 0xC1 |
| 1669 | |
| 1670 | #define QI_VTCXO_EN_MASK 0x1 |
| 1671 | #define QI_VTCXO_EN_SHIFT 0x7 |
| 1672 | #define VTCXO_ON_CTRL_MASK 0x1 |
| 1673 | #define VTCXO_ON_CTRL_SHIFT 0x1 |
| 1674 | #define RG_VTCXO_EN_MASK 0x1 |
| 1675 | #define RG_VTCXO_EN_SHIFT 0x0 |
| 1676 | |
| 1677 | // (0xC2) ANALDO_CON5 (RW) |
| 1678 | #define RG_VTCXO_STBTD_MASK 0x3 |
| 1679 | #define RG_VTCXO_STBTD_SHIFT 0x4 |
| 1680 | #define RG_VTCXO_OCFB_EN_MASK 0x1 |
| 1681 | #define RG_VTCXO_OCFB_EN_SHIFT 0x1 |
| 1682 | #define RG_VTCXO_NDIS_EN_MASK 0x1 |
| 1683 | #define RG_VTCXO_NDIS_EN_SHIFT 0x0 |
| 1684 | |
| 1685 | // (0xC3) ANALDO_CON6 (RW) |
| 1686 | #define ANALDO_CON6_ADDR 0xC3 |
| 1687 | |
| 1688 | #define RG_VA1_CAL_MASK 0xF |
| 1689 | #define RG_VA1_CAL_SHIFT 0x0 |
| 1690 | |
| 1691 | // (0xC4) ANALDO_CON7 (RO/RW) |
| 1692 | #define ANALDO_CON7_ADDR 0xC4 |
| 1693 | |
| 1694 | #define QI_VA1_EN_MASK 0x1 |
| 1695 | #define QI_VA1_EN_SHIFT 0x7 |
| 1696 | #define RG_VA1_VOSEL_MASK 0x3 |
| 1697 | #define RG_VA1_VOSEL_SHIFT 0x4 |
| 1698 | #define RG_VA1_EN_MASK 0x1 |
| 1699 | #define RG_VA1_EN_SHIFT 0x0 |
| 1700 | |
| 1701 | // (0xC5) ANALDO_CON8 (RW) |
| 1702 | #define RG_VA1_STBTD_MASK 0x3 |
| 1703 | #define RG_VA1_STBTD_SHIFT 0x4 |
| 1704 | #define RG_VA1_OCFB_EN_MASK 0x1 |
| 1705 | #define RG_VA1_OCFB_EN_SHIFT 0x1 |
| 1706 | #define RG_VA1_NDIS_EN_MASK 0x1 |
| 1707 | #define RG_VA1_NDIS_EN_SHIFT 0x0 |
| 1708 | |
| 1709 | // (0xC6) ANALDO_CON9 (RO/RW) |
| 1710 | #define QI_VA1_MODE_MASK 0x1 |
| 1711 | #define QI_VA1_MODE_SHIFT 0x7 |
| 1712 | #define VA1_LP_SET_MASK 0x1 |
| 1713 | #define VA1_LP_SET_SHIFT 0x1 |
| 1714 | #define VA1_LP_SEL_MASK 0x1 |
| 1715 | #define VA1_LP_SEL_SHIFT 0x0 |
| 1716 | |
| 1717 | // (0xC7) ANALDO_CONA (RW) |
| 1718 | #define ANALDO_CONA_ADDR 0xC7 |
| 1719 | |
| 1720 | #define RG_VA2_CAL_MASK 0xF |
| 1721 | #define RG_VA2_CAL_SHIFT 0x0 |
| 1722 | |
| 1723 | // (0xC8) ANALDO_CONB (RO/RW) |
| 1724 | #define ANALDO_CONB_ADDR 0xC8 |
| 1725 | |
| 1726 | #define QI_VA2_EN_MASK 0x1 |
| 1727 | #define QI_VA2_EN_SHIFT 0x7 |
| 1728 | #define RG_VA2_VOSEL_MASK 0x1 |
| 1729 | #define RG_VA2_VOSEL_SHIFT 0x4 |
| 1730 | #define RG_VA2_EN_MASK 0x1 |
| 1731 | #define RG_VA2_EN_SHIFT 0x0 |
| 1732 | |
| 1733 | // (0xC9) ANALDO_CONC (RW) |
| 1734 | #define RG_VA2_STBTD_MASK 0x3 |
| 1735 | #define RG_VA2_STBTD_SHIFT 0x4 |
| 1736 | #define RG_VA2_OCFB_EN_MASK 0x1 |
| 1737 | #define RG_VA2_OCFB_EN_SHIFT 0x1 |
| 1738 | #define RG_VA2_NDIS_EN_MASK 0x1 |
| 1739 | #define RG_VA2_NDIS_EN_SHIFT 0x0 |
| 1740 | |
| 1741 | // (0xCA) ANALDO_COND (RW) |
| 1742 | #define ANALDO_COND_ADDR 0xCA |
| 1743 | |
| 1744 | #define RG_VCAMA_CAL_MASK 0xF |
| 1745 | #define RG_VCAMA_CAL_SHIFT 0x0 |
| 1746 | |
| 1747 | // (0xCB) ANALDO_CONE (RW) |
| 1748 | #define ANALDO_CONE_ADDR 0xCB |
| 1749 | |
| 1750 | #define RG_VCAMA_VOSEL_MASK 0x3 |
| 1751 | #define RG_VCAMA_VOSEL_SHIFT 0x4 |
| 1752 | #define RG_VCAMA_EN_MASK 0x1 |
| 1753 | #define RG_VCAMA_EN_SHIFT 0x0 |
| 1754 | |
| 1755 | // (0xCC) ANALDO_CONF (RW) |
| 1756 | #define RG_VCAMA_STBTD_MASK 0x3 |
| 1757 | #define RG_VCAMA_STBTD_SHIFT 0x4 |
| 1758 | #define RG_VCAMA_OCFB_EN_MASK 0x1 |
| 1759 | #define RG_VCAMA_OCFB_EN_SHIFT 0x1 |
| 1760 | #define RG_VCAMA_NDIS_EN_MASK 0x1 |
| 1761 | #define RG_VCAMA_NDIS_EN_SHIFT 0x0 |
| 1762 | |
| 1763 | // (0xCD) ANALDO_CON10 (RW) |
| 1764 | #define RG_VCAMA_FBSEL_MASK 0x3 |
| 1765 | #define RG_VCAMA_FBSEL_SHIFT 0x0 |
| 1766 | |
| 1767 | // (0xCE) ANALDO_CON11 (RW) |
| 1768 | #define ANALDO_CON11_ADDR 0xCE |
| 1769 | |
| 1770 | #define RG_VRTC_VOSEL_MASK 0x3 |
| 1771 | #define RG_VRTC_VOSEL_SHIFT 0x0 |
| 1772 | |
| 1773 | // (0xCF) ANALDO_CON12 (RO/RW) |
| 1774 | #define ANALDO_CON12_ADDR 0xCF |
| 1775 | |
| 1776 | #define QI_VRTC_EN_MASK 0x1 |
| 1777 | #define QI_VRTC_EN_SHIFT 0x7 |
| 1778 | #define VRTC_EN_MASK 0x1 |
| 1779 | #define VRTC_EN_SHIFT 0x0 |
| 1780 | |
| 1781 | // (0xD0) ANALDO_CON13 (RO) |
| 1782 | #define RO_QI_VRF_OC_STATUS_MASK 0x1 |
| 1783 | #define RO_QI_VRF_OC_STATUS_SHIFT 0x0 |
| 1784 | #define RO_QI_VTCXO_OC_STATUS_MASK 0x1 |
| 1785 | #define RO_QI_VTCXO_OC_STATUS_SHIFT 0x1 |
| 1786 | #define RO_QI_VA1_OC_STATUS_MASK 0x1 |
| 1787 | #define RO_QI_VA1_OC_STATUS_SHIFT 0x2 |
| 1788 | #define RO_QI_VA2_OC_STATUS_MASK 0x1 |
| 1789 | #define RO_QI_VA2_OC_STATUS_SHIFT 0x3 |
| 1790 | #define RO_QI_VCAMA_OC_STATUS_MASK 0x1 |
| 1791 | #define RO_QI_VCAMA_OC_STATUS_SHIFT 0x4 |
| 1792 | |
| 1793 | // (0xD1) ANALDO_RSV (RW) |
| 1794 | #define RG_ANALDO_RSV_MASK 0xF |
| 1795 | #define RG_ANALDO_RSV_SHIFT 0x0 |
| 1796 | |
| 1797 | // (0xD5) BUCK_K_CON0 (RW) |
| 1798 | #define RG_AUTO_K_MASK 0x1 |
| 1799 | #define RG_AUTO_K_SHIFT 0x6 |
| 1800 | #define RG_K_SRC_SEL_MASK 0x1 |
| 1801 | #define RG_K_SRC_SEL_SHIFT 0x5 |
| 1802 | #define RG_K_START_MANUAL_MASK 0x1 |
| 1803 | #define RG_K_START_MANUAL_SHIFT 0x4 |
| 1804 | #define RG_K_ONCE_MASK 0x1 |
| 1805 | #define RG_K_ONCE_SHIFT 0x3 |
| 1806 | #define RG_K_ONCE_EN_MASK 0x1 |
| 1807 | #define RG_K_ONCE_EN_SHIFT 0x2 |
| 1808 | #define RG_K_MAP_SEL_MASK 0x1 |
| 1809 | #define RG_K_MAP_SEL_SHIFT 0x1 |
| 1810 | #define RG_K_RST_DONE_MASK 0x1 |
| 1811 | #define RG_K_RST_DONE_SHIFT 0x0 |
| 1812 | |
| 1813 | // (0xD6) BUCK_K_CON1 (RW) |
| 1814 | #define RG_K_CONTROL_SMPS_MASK 0xF |
| 1815 | #define RG_K_CONTROL_SMPS_SHIFT 0x0 |
| 1816 | |
| 1817 | // (0xD7) BUCK_K_CON2 (RO) |
| 1818 | #define K_CONTROL_MASK 0x1F |
| 1819 | #define K_CONTROL_SHIFT 0x3 |
| 1820 | #define K_DONE_MASK 0x1 |
| 1821 | #define K_DONE_SHIFT 0x1 |
| 1822 | #define K_RESULT_MASK 0x1 |
| 1823 | #define K_RESULT_SHIFT 0x0 |
| 1824 | |
| 1825 | // (0xDA) AUXADC_CON0 (RO) |
| 1826 | #define RG_ADC_OUT_C0_7_0_MASK 0xFF |
| 1827 | #define RG_ADC_OUT_C0_7_0_SHIFT 0x0 |
| 1828 | |
| 1829 | // (0xDB) AUXADC_CON1 (RO) |
| 1830 | #define RG_ADC_RDY_C0_MASK 0x1 |
| 1831 | #define RG_ADC_RDY_C0_SHIFT 0x7 |
| 1832 | #define RG_ADC_OUT_C0_9_8_MASK 0x3 |
| 1833 | #define RG_ADC_OUT_C0_9_8_SHIFT 0x0 |
| 1834 | |
| 1835 | // (0xDC) AUXADC_CON2 (RO) |
| 1836 | #define RG_ADC_OUT_C1_7_0_MASK 0xFF |
| 1837 | #define RG_ADC_OUT_C1_7_0_SHIFT 0x0 |
| 1838 | |
| 1839 | // (0xDD) AUXADC_CON3 (RO) |
| 1840 | #define RG_ADC_RDY_C1_MASK 0x1 |
| 1841 | #define RG_ADC_RDY_C1_SHIFT 0x7 |
| 1842 | #define RG_ADC_OUT_C1_9_8_MASK 0x3 |
| 1843 | #define RG_ADC_OUT_C1_9_8_SHIFT 0x0 |
| 1844 | |
| 1845 | // (0xDE) AUXADC_CON4 (RO) |
| 1846 | #define RG_ADC_OUT_C2_7_0_MASK 0xFF |
| 1847 | #define RG_ADC_OUT_C2_7_0_SHIFT 0x0 |
| 1848 | |
| 1849 | // (0xDF) AUXADC_CON5 (RO) |
| 1850 | #define RG_ADC_RDY_C2_MASK 0x1 |
| 1851 | #define RG_ADC_RDY_C2_SHIFT 0x7 |
| 1852 | #define RG_ADC_OUT_C2_9_8_MASK 0x3 |
| 1853 | #define RG_ADC_OUT_C2_9_8_SHIFT 0x0 |
| 1854 | |
| 1855 | // (0xE0) AUXADC_CON6 (RO) |
| 1856 | #define RG_ADC_OUT_C3_7_0_MASK 0xFF |
| 1857 | #define RG_ADC_OUT_C3_7_0_SHIFT 0x0 |
| 1858 | |
| 1859 | // (0xE1) AUXADC_CON7 (RO) |
| 1860 | #define RG_ADC_RDY_C3_MASK 0x1 |
| 1861 | #define RG_ADC_RDY_C3_SHIFT 0x7 |
| 1862 | #define RG_ADC_OUT_C3_9_8_MASK 0x3 |
| 1863 | #define RG_ADC_OUT_C3_9_8_SHIFT 0x0 |
| 1864 | |
| 1865 | // (0xE2) AUXADC_CON8 (RO) |
| 1866 | #define RG_ADC_OUT_WAKEUP_7_0_MASK 0xFF |
| 1867 | #define RG_ADC_OUT_WAKEUP_7_0_SHIFT 0x0 |
| 1868 | |
| 1869 | // (0xE3) AUXADC_CON9 (RO) |
| 1870 | #define RG_ADC_RDY_WAKEUP_MASK 0x1 |
| 1871 | #define RG_ADC_RDY_WAKEUP_SHIFT 0x7 |
| 1872 | #define RG_ADC_OUT_WAKEUP_9_8_MASK 0x3 |
| 1873 | #define RG_ADC_OUT_WAKEUP_9_8_SHIFT 0x0 |
| 1874 | |
| 1875 | // (0xE4) AUXADC_CON10 (RO) |
| 1876 | #define RG_ADC_OUT_LBAT_7_0_MASK 0xFF |
| 1877 | #define RG_ADC_OUT_LBAT_7_0_SHIFT 0x0 |
| 1878 | |
| 1879 | // (0xE5) AUXADC_CON11 (RO) |
| 1880 | #define RG_ADC_RDY_LBAT_MASK 0x1 |
| 1881 | #define RG_ADC_RDY_LBAT_SHIFT 0x7 |
| 1882 | #define RG_ADC_OUT_LBAT_9_8_MASK 0x3 |
| 1883 | #define RG_ADC_OUT_LBAT_9_8_SHIFT 0x0 |
| 1884 | |
| 1885 | // (0xE6) AUXADC_CON12 (RO) |
| 1886 | #define RG_ADC_OUT_TRIM_7_0_MASK 0xFF |
| 1887 | #define RG_ADC_OUT_TRIM_7_0_SHIFT 0x0 |
| 1888 | |
| 1889 | // (0xE7) AUXADC_CON13 (RO) |
| 1890 | #define RG_ADC_RDY_TRIM_MASK 0x1 |
| 1891 | #define RG_ADC_RDY_TRIM_SHIFT 0x7 |
| 1892 | #define RG_ADC_OUT_TRIM_9_8_MASK 0x3 |
| 1893 | #define RG_ADC_OUT_TRIM_9_8_SHIFT 0x0 |
| 1894 | |
| 1895 | // (0xE8) AUXADC_CON14 (RW) |
| 1896 | #define RG_AUXADC_CHSEL_MASK 0xF |
| 1897 | #define RG_AUXADC_CHSEL_SHIFT 0x4 |
| 1898 | #define RG_ADC_TRIM_COMP_MASK 0x1 |
| 1899 | #define RG_ADC_TRIM_COMP_SHIFT 0x2 |
| 1900 | #define RG_AUXADC_BIST_ENB_MASK 0x1 |
| 1901 | #define RG_AUXADC_BIST_ENB_SHIFT 0x1 |
| 1902 | #define RG_AUXADC_START_MASK 0x1 |
| 1903 | #define RG_AUXADC_START_SHIFT 0x0 |
| 1904 | |
| 1905 | // (0xE9) AUXADC_CON15 (RW) |
| 1906 | #define RG_SPL_NUM_MASK 0xF |
| 1907 | #define RG_SPL_NUM_SHIFT 0x4 |
| 1908 | #define RG_AVG_NUM_MASK 0x3 |
| 1909 | #define RG_AVG_NUM_SHIFT 0x2 |
| 1910 | #define RG_BUF_PWD_B_MASK 0x1 |
| 1911 | #define RG_BUF_PWD_B_SHIFT 0x1 |
| 1912 | #define RG_ADC_PWD_B_MASK 0x1 |
| 1913 | #define RG_ADC_PWD_B_SHIFT 0x0 |
| 1914 | |
| 1915 | // (0xEA) AUXADC_CON16 (RW) |
| 1916 | #define RG_LBAT_DEBT_MAX_MASK 0xFF |
| 1917 | #define RG_LBAT_DEBT_MAX_SHIFT 0x0 |
| 1918 | |
| 1919 | // (0xEB) AUXADC_CON17 (RW) |
| 1920 | #define RG_LBAT_DEBT_MIN_MASK 0xFF |
| 1921 | #define RG_LBAT_DEBT_MIN_SHIFT 0x0 |
| 1922 | |
| 1923 | // (0xEC) AUXADC_CON18 (RW) |
| 1924 | #define RG_LBAT_DET_PRD_7_0_MASK 0xFF |
| 1925 | #define RG_LBAT_DET_PRD_7_0_SHIFT 0x0 |
| 1926 | |
| 1927 | // (0xED) AUXADC_CON19 (RW) |
| 1928 | #define RG_LBAT_DET_PRD_15_8_MASK 0xFF |
| 1929 | #define RG_LBAT_DET_PRD_15_8_SHIFT 0x0 |
| 1930 | |
| 1931 | // (0xEE) AUXADC_CON20 (RW) |
| 1932 | #define RG_LBAT_DET_PRD_19_16_MASK 0xF |
| 1933 | #define RG_LBAT_DET_PRD_19_16_SHIFT 0x0 |
| 1934 | |
| 1935 | // (0xEF) AUXADC_CON21 (RW) |
| 1936 | #define RG_LBAT_VOLT_MAX_7_0_MASK 0xFF |
| 1937 | #define RG_LBAT_VOLT_MAX_7_0_SHIFT 0x0 |
| 1938 | |
| 1939 | // (0xF0) AUXADC_CON22 (RW) |
| 1940 | #define RG_LBAT_EN_MAX_MASK 0x1 |
| 1941 | #define RG_LBAT_EN_MAX_SHIFT 0x7 |
| 1942 | #define RG_LBAT_IRQ_EN_MAX_MASK 0x1 |
| 1943 | #define RG_LBAT_IRQ_EN_MAX_SHIFT 0x4 |
| 1944 | #define RG_LBAT_VOLT_MAX_9_8_MASK 0x3 |
| 1945 | #define RG_LBAT_VOLT_MAX_9_8_SHIFT 0x0 |
| 1946 | |
| 1947 | // (0xF1) AUXADC_CON23 (RW) |
| 1948 | #define RG_LBAT_VOLT_MIN_7_0_MASK 0xFF |
| 1949 | #define RG_LBAT_VOLT_MIN_7_0_SHIFT 0x0 |
| 1950 | |
| 1951 | // (0xF2) AUXADC_CON24 (RW) |
| 1952 | #define RG_LBAT_EN_MIN_MASK 0x1 |
| 1953 | #define RG_LBAT_EN_MIN_SHIFT 0x7 |
| 1954 | #define RG_LBAT_IRQ_EN_MIN_MASK 0x1 |
| 1955 | #define RG_LBAT_IRQ_EN_MIN_SHIFT 0x4 |
| 1956 | #define RG_LBAT_VOLT_MIN_9_8_MASK 0x3 |
| 1957 | #define RG_LBAT_VOLT_MIN_9_8_SHIFT 0x0 |
| 1958 | |
| 1959 | // (0xF3) AUXADC_CON25 (RO) |
| 1960 | #define RG_LBAT_MAX_IRQ_B_MASK 0x1 |
| 1961 | #define RG_LBAT_MAX_IRQ_B_SHIFT 0x7 |
| 1962 | #define RG_LBAT_MIN_IRQ_B_MASK 0x1 |
| 1963 | #define RG_LBAT_MIN_IRQ_B_SHIFT 0x6 |
| 1964 | |
| 1965 | // (0xF4) AUXADC_CON26 (RW) |
| 1966 | #define RG_DA_DAC_7_0_MASK 0xFF |
| 1967 | #define RG_DA_DAC_7_0_SHIFT 0x0 |
| 1968 | |
| 1969 | // (0xF5) AUXADC_CON27 (RO/RW) |
| 1970 | #define RG_NI_COMP_MASK 0x1 |
| 1971 | #define RG_NI_COMP_SHIFT 0x7 |
| 1972 | #define RG_DA_DAC_9_8_MASK 0x3 |
| 1973 | #define RG_DA_DAC_9_8_SHIFT 0x0 |
| 1974 | |
| 1975 | // (0xF6) AUXADC_CON28 (RW) |
| 1976 | #define RG_AUXADC_RSV_MASK 0x7 |
| 1977 | #define RG_AUXADC_RSV_SHIFT 0x5 |
| 1978 | #define RG_DA_DAC_SEL_MASK 0x1 |
| 1979 | #define RG_DA_DAC_SEL_SHIFT 0x4 |
| 1980 | #define RG_AUX_OUT_SEL_MASK 0x1 |
| 1981 | #define RG_AUX_OUT_SEL_SHIFT 0x3 |
| 1982 | #define RG_ARB_PRIO_2_MASK 0x1 |
| 1983 | #define RG_ARB_PRIO_2_SHIFT 0x2 |
| 1984 | #define RG_ARB_PRIO_1_MASK 0x1 |
| 1985 | #define RG_ARB_PRIO_1_SHIFT 0x1 |
| 1986 | #define RG_ARB_PRIO_0_MASK 0x1 |
| 1987 | #define RG_ARB_PRIO_0_SHIFT 0x0 |
| 1988 | |
| 1989 | // (0xF7) AUXADC_CON29 (RW) |
| 1990 | #define RG_AUXADC_CALI_MASK 0x3 |
| 1991 | #define RG_AUXADC_CALI_SHIFT 0x4 |
| 1992 | #define RG_BUF_CALI_MASK 0x3 |
| 1993 | #define RG_BUF_CALI_SHIFT 0x0 |
| 1994 | |
| 1995 | //////////////////////////////// |
| 1996 | /* PMIC 6329 BANK 1 */ |
| 1997 | //////////////////////////////// |
| 1998 | // (0x00) TEST_CON0 (RW) |
| 1999 | #define RG_MON_GRP_SEL_MASK 0xF |
| 2000 | #define RG_MON_GRP_SEL_SHIFT 0x0 |
| 2001 | |
| 2002 | // (0x01) TEST_CON1 (RW) |
| 2003 | #define RG_MON_FLAG_SEL_MASK 0xFF |
| 2004 | #define RG_MON_FLAG_SEL_SHIFT 0x0 |
| 2005 | |
| 2006 | // (0x02) TEST_CON2 (RW) |
| 2007 | #define RG_IO_PASEL0_SEL_MASK 0xF |
| 2008 | #define RG_IO_PASEL0_SEL_SHIFT 0x4 |
| 2009 | #define RG_IO_PASEL1_SEL_MASK 0xF |
| 2010 | #define RG_IO_PASEL1_SEL_SHIFT 0x0 |
| 2011 | |
| 2012 | // (0x03) TEST_CON3 (RW) |
| 2013 | #define RG_IO_PASEL2_SEL_MASK 0xF |
| 2014 | #define RG_IO_PASEL2_SEL_SHIFT 0x4 |
| 2015 | #define RG_IO_INT_SEL_MASK 0xF |
| 2016 | #define RG_IO_INT_SEL_SHIFT 0x0 |
| 2017 | |
| 2018 | // (0x04) TEST_CON4 (RW) |
| 2019 | #define RG_DIO_SMT_MASK 0x1 |
| 2020 | #define RG_DIO_SMT_SHIFT 0x5 |
| 2021 | #define RG_DIO_E2_MASK 0x1 |
| 2022 | #define RG_DIO_E2_SHIFT 0x4 |
| 2023 | #define RG_DIO_E4_MASK 0x1 |
| 2024 | #define RG_DIO_E4_SHIFT 0x3 |
| 2025 | #define RG_DIO_SR_MASK 0x1 |
| 2026 | #define RG_DIO_SR_SHIFT 0x2 |
| 2027 | #define RG_SCK_PU_MASK 0x1 |
| 2028 | #define RG_SCK_PU_SHIFT 0x1 |
| 2029 | #define RG_SCK_PD_MASK 0x1 |
| 2030 | #define RG_SCK_PD_SHIFT 0x0 |
| 2031 | |
| 2032 | // (0x05) TEST_CON5 (RW) |
| 2033 | #define RG_SDA_E2_MASK 0x1 |
| 2034 | #define RG_SDA_E2_SHIFT 0x7 |
| 2035 | #define RG_SDA_E4_MASK 0x1 |
| 2036 | #define RG_SDA_E4_SHIFT 0x6 |
| 2037 | #define RG_SDA_PU_MASK 0x1 |
| 2038 | #define RG_SDA_PU_SHIFT 0x5 |
| 2039 | #define RG_SDA_PD_MASK 0x1 |
| 2040 | #define RG_SDA_PD_SHIFT 0x4 |
| 2041 | #define RG_INT_E2_MASK 0x1 |
| 2042 | #define RG_INT_E2_SHIFT 0x3 |
| 2043 | #define RG_INT_E4_MASK 0x1 |
| 2044 | #define RG_INT_E4_SHIFT 0x2 |
| 2045 | #define RG_INT_PU_MASK 0x1 |
| 2046 | #define RG_INT_PU_SHIFT 0x1 |
| 2047 | #define RG_INT_PD_MASK 0x1 |
| 2048 | #define RG_INT_PD_SHIFT 0x0 |
| 2049 | |
| 2050 | // (0x06) TEST_CON6 (RW) |
| 2051 | #define RG_DVS_PU_MASK 0x1 |
| 2052 | #define RG_DVS_PU_SHIFT 0x5 |
| 2053 | #define RG_DVS_PD_MASK 0x1 |
| 2054 | #define RG_DVS_PD_SHIFT 0x4 |
| 2055 | #define RG_PASEL_PU_MASK 0x1 |
| 2056 | #define RG_PASEL_PU_SHIFT 0x3 |
| 2057 | #define RG_PASEL_PD_MASK 0x1 |
| 2058 | #define RG_PASEL_PD_SHIFT 0x2 |
| 2059 | #define RG_SYSRSTB_PU_MASK 0x1 |
| 2060 | #define RG_SYSRSTB_PU_SHIFT 0x1 |
| 2061 | #define RG_SYSRSTB_PD_MASK 0x1 |
| 2062 | #define RG_SYSRSTB_PD_SHIFT 0x0 |
| 2063 | |
| 2064 | // (0x07) TEST_CON7 (RW) |
| 2065 | #define RG_SRCLKEN_PU_MASK 0x1 |
| 2066 | #define RG_SRCLKEN_PU_SHIFT 0x3 |
| 2067 | #define RG_SRCLKEN_PD_MASK 0x1 |
| 2068 | #define RG_SRCLKEN_PD_SHIFT 0x2 |
| 2069 | #define RG_BL_PWM_PU_MASK 0x1 |
| 2070 | #define RG_BL_PWM_PU_SHIFT 0x1 |
| 2071 | #define RG_BL_PWM_PD_MASK 0x1 |
| 2072 | #define RG_BL_PWM_PD_SHIFT 0x0 |
| 2073 | |
| 2074 | // (0x08) TEST_CON8 (RW) |
| 2075 | #define RG_SDA_IO_CONFIG_MASK 0x1 |
| 2076 | #define RG_SDA_IO_CONFIG_SHIFT 0x3 |
| 2077 | #define RG_TEST_STRUP_MASK 0x1 |
| 2078 | #define RG_TEST_STRUP_SHIFT 0x2 |
| 2079 | #define RG_OTP_W_MODE_MASK 0x1 |
| 2080 | #define RG_OTP_W_MODE_SHIFT 0x1 |
| 2081 | #define RG_NANDTREE_MODE_MASK 0x1 |
| 2082 | #define RG_NANDTREE_MODE_SHIFT 0x0 |
| 2083 | |
| 2084 | // (0x09) TEST_CON9 (RW) |
| 2085 | #define RG_TEST_AUXADC_MASK 0x1 |
| 2086 | #define RG_TEST_AUXADC_SHIFT 0x7 |
| 2087 | #define RG_TEST_FGPLL_MASK 0x1 |
| 2088 | #define RG_TEST_FGPLL_SHIFT 0x6 |
| 2089 | #define RG_TEST_FG1_MASK 0x1 |
| 2090 | #define RG_TEST_FG1_SHIFT 0x5 |
| 2091 | #define RG_TEST_FG2_MASK 0x1 |
| 2092 | #define RG_TEST_FG2_SHIFT 0x4 |
| 2093 | #define RG_TEST_IO_FG_SEL_MASK 0x1 |
| 2094 | #define RG_TEST_IO_FG_SEL_SHIFT 0x3 |
| 2095 | #define RG_TEST_CLASSD_MASK 0x1 |
| 2096 | #define RG_TEST_CLASSD_SHIFT 0x2 |
| 2097 | #define RG_TEST_DRIVER_MASK 0x1 |
| 2098 | #define RG_TEST_DRIVER_SHIFT 0x1 |
| 2099 | #define RG_TEST_BOOST_MASK 0x1 |
| 2100 | #define RG_TEST_BOOST_SHIFT 0x0 |
| 2101 | |
| 2102 | // (0x0A) TEST_CON10 (RO) |
| 2103 | #define RO_MON_MASK 0xFF |
| 2104 | #define RO_MON_SHIFT 0x0 |
| 2105 | |
| 2106 | // (0x0B) TEST_CON11 (RO) |
| 2107 | #define RO_DVS1_IN_MASK 0x1 |
| 2108 | #define RO_DVS1_IN_SHIFT 0x7 |
| 2109 | #define RO_DVS2_IN_MASK 0x1 |
| 2110 | #define RO_DVS2_IN_SHIFT 0x6 |
| 2111 | #define RO_PASEL0_IN_MASK 0x1 |
| 2112 | #define RO_PASEL0_IN_SHIFT 0x5 |
| 2113 | #define RO_PASEL1_IN_MASK 0x1 |
| 2114 | #define RO_PASEL1_IN_SHIFT 0x4 |
| 2115 | #define RO_PASEL2_IN_MASK 0x1 |
| 2116 | #define RO_PASEL2_IN_SHIFT 0x3 |
| 2117 | #define RO_SYSRSTB_IN_MASK 0x1 |
| 2118 | #define RO_SYSRSTB_IN_SHIFT 0x2 |
| 2119 | #define RO_SRCLKEN_IN_MASK 0x1 |
| 2120 | #define RO_SRCLKEN_IN_SHIFT 0x1 |
| 2121 | #define RO_BLPWM_IN_MASK 0x1 |
| 2122 | #define RO_BLPWM_IN_SHIFT 0x0 |
| 2123 | |
| 2124 | // (0x0C) RST_CON0 (RW) |
| 2125 | #define RG_PWRKEY_RST_EN_MASK 0x1 |
| 2126 | #define RG_PWRKEY_RST_EN_SHIFT 0x4 |
| 2127 | #define RG_HOMEKEY_RST_EN_MASK 0x1 |
| 2128 | #define RG_HOMEKEY_RST_EN_SHIFT 0x3 |
| 2129 | #define RG_PWRKEY_RST_TD_MASK 0x3 |
| 2130 | #define RG_PWRKEY_RST_TD_SHIFT 0x1 |
| 2131 | #define RG_PWRRST_TMR_DIS_MASK 0x1 |
| 2132 | #define RG_PWRRST_TMR_DIS_SHIFT 0x0 |
| 2133 | |
| 2134 | // (0x0D) RST_CON1 (RW) |
| 2135 | #define RG_RST_PART_SEL_MASK 0x1 |
| 2136 | #define RG_RST_PART_SEL_SHIFT 0x7 |
| 2137 | #define RG_OTP_MAN_RST_MASK 0x1 |
| 2138 | #define RG_OTP_MAN_RST_SHIFT 0x5 |
| 2139 | #define RG_PCHR_MAN_RST_EN_MASK 0x1 |
| 2140 | #define RG_PCHR_MAN_RST_EN_SHIFT 0x4 |
| 2141 | #define RG_PCHR_MAN_RST_MASK 0x1 |
| 2142 | #define RG_PCHR_MAN_RST_SHIFT 0x3 |
| 2143 | #define RG_STRUP_MAN_RST_EN_MASK 0x1 |
| 2144 | #define RG_STRUP_MAN_RST_EN_SHIFT 0x2 |
| 2145 | #define RG_SIF_TST_CK_DIS_MASK 0x1 |
| 2146 | #define RG_SIF_TST_CK_DIS_SHIFT 0x1 |
| 2147 | #define RG_SYSRSTB_EN_MASK 0x1 |
| 2148 | #define RG_SYSRSTB_EN_SHIFT 0x0 |
| 2149 | |
| 2150 | // (0x14) TOP2_CON0 (RW) |
| 2151 | #define RG_75K_EXT_SEL_MASK 0x1 |
| 2152 | #define RG_75K_EXT_SEL_SHIFT 0x7 |
| 2153 | #define RG_FG_TST_CK_SEL_MASK 0x1 |
| 2154 | #define RG_FG_TST_CK_SEL_SHIFT 0x6 |
| 2155 | #define RG_CHR1M_TST_CK_SEL_MASK 0x1 |
| 2156 | #define RG_CHR1M_TST_CK_SEL_SHIFT 0x5 |
| 2157 | #define RG_CLK_TST_MASK 0x1 |
| 2158 | #define RG_CLK_TST_SHIFT 0x4 |
| 2159 | #define RG_AUXADC_CK_RST_MASK 0x1 |
| 2160 | #define RG_AUXADC_CK_RST_SHIFT 0x3 |
| 2161 | #define RG_AUXADC_CK_SEL_MASK 0x7 |
| 2162 | #define RG_AUXADC_CK_SEL_SHIFT 0x0 |
| 2163 | |
| 2164 | // (0x15) TOP2_CON1 (RW) |
| 2165 | #define RG_10M_CK_DIV_RST_MASK 0x1 |
| 2166 | #define RG_10M_CK_DIV_RST_SHIFT 0x5 |
| 2167 | #define RG_FGADC_CK_PDN_MASK 0x1 |
| 2168 | #define RG_FGADC_CK_PDN_SHIFT 0x4 |
| 2169 | #define RG_OTPC_CK_PDN_MASK 0x1 |
| 2170 | #define RG_OTPC_CK_PDN_SHIFT 0x3 |
| 2171 | #define RG_BST_DRV_CK_PDN_MASK 0x1 |
| 2172 | #define RG_BST_DRV_CK_PDN_SHIFT 0x2 |
| 2173 | #define RG_SPK_CK_PDN_MASK 0x1 |
| 2174 | #define RG_SPK_CK_PDN_SHIFT 0x1 |
| 2175 | #define RG_PWMOC_CK_PDN_MASK 0x1 |
| 2176 | #define RG_PWMOC_CK_PDN_SHIFT 0x0 |
| 2177 | |
| 2178 | // (0x16) CC_CTL1 (RW) |
| 2179 | #define OC_GEAR_BVALID_DET_MASK 0x3 |
| 2180 | #define OC_GEAR_BVALID_DET_SHIFT 0x6 |
| 2181 | #define OC_GEAR_VBATON_UNDET_MASK 0x3 |
| 2182 | #define OC_GEAR_VBATON_UNDET_SHIFT 0x4 |
| 2183 | #define OC_GEAR_LDO_MASK 0x3 |
| 2184 | #define OC_GEAR_LDO_SHIFT 0x0 |
| 2185 | |
| 2186 | // (0x17) INT2_RSV (RW) |
| 2187 | #define RG_INT_RSV_MASK 0x1F |
| 2188 | #define RG_INT_RSV_SHIFT 0x3 |
| 2189 | #define POLARITY_BVALID_DET_MASK 0x1 |
| 2190 | #define POLARITY_BVALID_DET_SHIFT 0x2 |
| 2191 | #define POLARITY_VBATON_UNDET_MASK 0x1 |
| 2192 | #define POLARITY_VBATON_UNDET_SHIFT 0x1 |
| 2193 | #define POLARITY_MASK 0x1 |
| 2194 | #define POLARITY_SHIFT 0x0 |
| 2195 | |
| 2196 | // (0x18) OC_PWMCTL1 (RW) |
| 2197 | #define VPA_OC_WND_MASK 0x3 |
| 2198 | #define VPA_OC_WND_SHIFT 0x6 |
| 2199 | #define VPA_OC_THD_MASK 0x3 |
| 2200 | #define VPA_OC_THD_SHIFT 0x4 |
| 2201 | #define VRF18_OC_WND_MASK 0x3 |
| 2202 | #define VRF18_OC_WND_SHIFT 0x2 |
| 2203 | #define VRF18_OC_THD_MASK 0x3 |
| 2204 | #define VRF18_OC_THD_SHIFT 0x0 |
| 2205 | |
| 2206 | // (0x22) FLASH_CON0 (RW) |
| 2207 | #define FLASH_RSV0_MASK 0x7 |
| 2208 | #define FLASH_RSV0_SHIFT 0x5 |
| 2209 | #define FLASH_DIM_DUTY_MASK 0x1F |
| 2210 | #define FLASH_DIM_DUTY_SHIFT 0x0 |
| 2211 | |
| 2212 | // (0x23) FLASH_CON1 (RW) |
| 2213 | #define FLASH_THER_SHDN_EN_MASK 0x1 |
| 2214 | #define FLASH_THER_SHDN_EN_SHIFT 0x1 |
| 2215 | #define FLASH_EN_MASK 0x1 |
| 2216 | #define FLASH_EN_SHIFT 0x0 |
| 2217 | |
| 2218 | // (0x24) FLASH_CON2 (RW) |
| 2219 | #define FLASH_DIM_DIV_MASK 0xFF |
| 2220 | #define FLASH_DIM_DIV_SHIFT 0x0 |
| 2221 | |
| 2222 | // (0x25) FLASH_CON3 (RW) |
| 2223 | #define FLASH_RSV1_MASK 0x1F |
| 2224 | #define FLASH_RSV1_SHIFT 0x3 |
| 2225 | #define FLASH_SEL_MASK 0x7 |
| 2226 | #define FLASH_SEL_SHIFT 0x0 |
| 2227 | |
| 2228 | // (0x26) FLASH_CON4 (RW) |
| 2229 | #define FLASH_SFSTREN_MASK 0x1 |
| 2230 | #define FLASH_SFSTREN_SHIFT 0x7 |
| 2231 | #define FLASH_SFSTR_MASK 0x3 |
| 2232 | #define FLASH_SFSTR_SHIFT 0x4 |
| 2233 | #define FLASH_MODE_MASK 0x1 |
| 2234 | #define FLASH_MODE_SHIFT 0x0 |
| 2235 | |
| 2236 | // (0x27) KPLED_CON0 (RW) |
| 2237 | #define KPLED_RSV0_MASK 0x7 |
| 2238 | #define KPLED_RSV0_SHIFT 0x5 |
| 2239 | #define KPLED_DIM_DUTY_MASK 0x1F |
| 2240 | #define KPLED_DIM_DUTY_SHIFT 0x0 |
| 2241 | |
| 2242 | // (0x28) KPLED_CON1 (RW) |
| 2243 | #define KPLED_THER_SHDN_EN_MASK 0x1 |
| 2244 | #define KPLED_THER_SHDN_EN_SHIFT 0x1 |
| 2245 | #define KPLED_EN_MASK 0x1 |
| 2246 | #define KPLED_EN_SHIFT 0x0 |
| 2247 | |
| 2248 | // (0x29) KPLED_CON2 (RW) |
| 2249 | #define KPLED_DIM_DIV_MASK 0xFF |
| 2250 | #define KPLED_DIM_DIV_SHIFT 0x0 |
| 2251 | |
| 2252 | // (0x2A) KPLED_CON3 (RW) |
| 2253 | #define KPLED_RSV1_MASK 0x1F |
| 2254 | #define KPLED_RSV1_SHIFT 0x3 |
| 2255 | #define KPLED_SEL_MASK 0x7 |
| 2256 | #define KPLED_SEL_SHIFT 0x0 |
| 2257 | |
| 2258 | // (0x2B) KPLED_CON4 (RW) |
| 2259 | #define KPLED_SFSTREN_MASK 0x1 |
| 2260 | #define KPLED_SFSTREN_SHIFT 0x7 |
| 2261 | #define KPLED_SFSTR_MASK 0x3 |
| 2262 | #define KPLED_SFSTR_SHIFT 0x4 |
| 2263 | #define KPLED_MODE_MASK 0x1 |
| 2264 | #define KPLED_MODE_SHIFT 0x0 |
| 2265 | |
| 2266 | // (0x2C) ISINKS_CON0 (RW) |
| 2267 | #define ISINK_RSV0_MASK 0x7 |
| 2268 | #define ISINK_RSV0_SHIFT 0x5 |
| 2269 | #define ISINK_DIM0_DUTY_MASK 0xF |
| 2270 | #define ISINK_DIM0_DUTY_SHIFT 0x0 |
| 2271 | |
| 2272 | // (0x2D) ISINKS_CON1 (RW) |
| 2273 | #define ISINK_DIM0_FSEL_MASK 0x1F |
| 2274 | #define ISINK_DIM0_FSEL_SHIFT 0x0 |
| 2275 | |
| 2276 | // (0x2E) ISINKS_CON2 (RW) |
| 2277 | #define ISINK_RSV1_MASK 0x7 |
| 2278 | #define ISINK_RSV1_SHIFT 0x5 |
| 2279 | #define ISINK_DIM1_DUTY_MASK 0x1F |
| 2280 | #define ISINK_DIM1_DUTY_SHIFT 0x0 |
| 2281 | |
| 2282 | // (0x2F) ISINKS_CON3 (RW) |
| 2283 | #define ISINK_DIM1_FSEL_MASK 0x1F |
| 2284 | #define ISINK_DIM1_FSEL_SHIFT 0x0 |
| 2285 | |
| 2286 | // (0x30) ISINKS_CON4 (RW) |
| 2287 | #define ISINK_RSV2_MASK 0x7 |
| 2288 | #define ISINK_RSV2_SHIFT 0x5 |
| 2289 | #define ISINK_DIM2_DUTY_MASK 0x1F |
| 2290 | #define ISINK_DIM2_DUTY_SHIFT 0x0 |
| 2291 | |
| 2292 | // (0x31) ISINKS_CON5 (RW) |
| 2293 | #define ISINK_DIM2_FSEL_MASK 0x1F |
| 2294 | #define ISINK_DIM2_FSEL_SHIFT 0x0 |
| 2295 | |
| 2296 | // (0x32) ISINKS_CON6 (RW) |
| 2297 | #define ISINK_RSV3_MASK 0x3 |
| 2298 | #define ISINK_RSV3_SHIFT 0x6 |
| 2299 | #define ISINKS_CH5_EN_MASK 0x1 |
| 2300 | #define ISINKS_CH5_EN_SHIFT 0x5 |
| 2301 | #define ISINKS_CH4_EN_MASK 0x1 |
| 2302 | #define ISINKS_CH4_EN_SHIFT 0x4 |
| 2303 | #define ISINKS_CH3_EN_MASK 0x1 |
| 2304 | #define ISINKS_CH3_EN_SHIFT 0x3 |
| 2305 | #define ISINKS_CH2_EN_MASK 0x1 |
| 2306 | #define ISINKS_CH2_EN_SHIFT 0x2 |
| 2307 | #define ISINKS_CH1_EN_MASK 0x1 |
| 2308 | #define ISINKS_CH1_EN_SHIFT 0x1 |
| 2309 | #define ISINKS_CH0_EN_MASK 0x1 |
| 2310 | #define ISINKS_CH0_EN_SHIFT 0x0 |
| 2311 | |
| 2312 | // (0x33) ISINKS_CON7 (RW) |
| 2313 | #define ISINK_RSV4_MASK 0x3 |
| 2314 | #define ISINK_RSV4_SHIFT 0x6 |
| 2315 | #define ISINKS_CH5_CABC_EN_MASK 0x1 |
| 2316 | #define ISINKS_CH5_CABC_EN_SHIFT 0x5 |
| 2317 | #define ISINKS_CH4_CABC_EN_MASK 0x1 |
| 2318 | #define ISINKS_CH4_CABC_EN_SHIFT 0x4 |
| 2319 | #define ISINKS_CH3_CABC_EN_MASK 0x1 |
| 2320 | #define ISINKS_CH3_CABC_EN_SHIFT 0x3 |
| 2321 | #define ISINKS_CH2_CABC_EN_MASK 0x1 |
| 2322 | #define ISINKS_CH2_CABC_EN_SHIFT 0x2 |
| 2323 | #define ISINKS_CH1_CABC_EN_MASK 0x1 |
| 2324 | #define ISINKS_CH1_CABC_EN_SHIFT 0x1 |
| 2325 | #define ISINKS_CH0_CABC_EN_MASK 0x1 |
| 2326 | #define ISINKS_CH0_CABC_EN_SHIFT 0x0 |
| 2327 | |
| 2328 | // (0x34) ISINKS_CON8 (RW) |
| 2329 | #define ISINKS_CH0_STEP_MASK 0x7 |
| 2330 | #define ISINKS_CH0_STEP_SHIFT 0x4 |
| 2331 | #define ISINKS_CH0_MODE_MASK 0x3 |
| 2332 | #define ISINKS_CH0_MODE_SHIFT 0x0 |
| 2333 | |
| 2334 | // (0x35) ISINKS_CON9 (RW) |
| 2335 | #define ISINKS_CH1_STEP_MASK 0x7 |
| 2336 | #define ISINKS_CH1_STEP_SHIFT 0x4 |
| 2337 | #define ISINKS_CH1_MODE_MASK 0x3 |
| 2338 | #define ISINKS_CH1_MODE_SHIFT 0x0 |
| 2339 | |
| 2340 | // (0x36) ISINKS_CON10 (RW) |
| 2341 | #define ISINKS_CH2_STEP_MASK 0x7 |
| 2342 | #define ISINKS_CH2_STEP_SHIFT 0x4 |
| 2343 | #define ISINKS_CH2_MODE_MASK 0x3 |
| 2344 | #define ISINKS_CH2_MODE_SHIFT 0x0 |
| 2345 | |
| 2346 | // (0x37) ISINKS_CON11 (RW) |
| 2347 | #define ISINKS_CH3_STEP_MASK 0x7 |
| 2348 | #define ISINKS_CH3_STEP_SHIFT 0x4 |
| 2349 | #define ISINKS_CH3_MODE_MASK 0x3 |
| 2350 | #define ISINKS_CH3_MODE_SHIFT 0x0 |
| 2351 | |
| 2352 | // (0x38) ISINKS_CON12 (RW) |
| 2353 | #define ISINKS_CH4_STEP_MASK 0x7 |
| 2354 | #define ISINKS_CH4_STEP_SHIFT 0x4 |
| 2355 | #define ISINKS_CH4_MODE_MASK 0x3 |
| 2356 | #define ISINKS_CH4_MODE_SHIFT 0x0 |
| 2357 | |
| 2358 | // (0x39) ISINKS_CON13 (RW) |
| 2359 | #define ISINKS_CH5_STEP_MASK 0x7 |
| 2360 | #define ISINKS_CH5_STEP_SHIFT 0x4 |
| 2361 | #define ISINKS_CH5_MODE_MASK 0x3 |
| 2362 | #define ISINKS_CH5_MODE_SHIFT 0x0 |
| 2363 | |
| 2364 | // (0x3A) ISINKS_CON14 (RW) |
| 2365 | #define IBIAS_TRIM_EN_MASK 0x1 |
| 2366 | #define IBIAS_TRIM_EN_SHIFT 0x6 |
| 2367 | #define ISINKS_VREF_CAL_MASK 0x1F |
| 2368 | #define ISINKS_VREF_CAL_SHIFT 0x0 |
| 2369 | |
| 2370 | // (0x3B) ISINKS_CON15 (RW) |
| 2371 | #define ISINK_RSV5_MASK 0xF |
| 2372 | #define ISINK_RSV5_SHIFT 0x4 |
| 2373 | #define ISINKS_RSV_MASK 0xF |
| 2374 | #define ISINKS_RSV_SHIFT 0x0 |
| 2375 | |
| 2376 | // (0x3C) ISINKS_CON16 (RW) |
| 2377 | #define DRV_RSV0_MASK 0xFF |
| 2378 | #define DRV_RSV0_SHIFT 0x0 |
| 2379 | |
| 2380 | // (0x3F) BOOST_CON0 (RW) |
| 2381 | #define BOOST_ISINK_HW_SEL_MASK 0x1 |
| 2382 | #define BOOST_ISINK_HW_SEL_SHIFT 0x7 |
| 2383 | #define BOOST_MODE_MASK 0x3 |
| 2384 | #define BOOST_MODE_SHIFT 0x4 |
| 2385 | #define BOOST_CABC_EN_MASK 0x1 |
| 2386 | #define BOOST_CABC_EN_SHIFT 0x2 |
| 2387 | #define BOOST_EN_MASK 0x1 |
| 2388 | #define BOOST_EN_SHIFT 0x0 |
| 2389 | |
| 2390 | // (0x40) BOOST_CON1 (RW) |
| 2391 | #define BOOST_SR_NMOS_MASK 0x3 |
| 2392 | #define BOOST_SR_NMOS_SHIFT 0x6 |
| 2393 | #define BOOST_VRSEL_MASK 0xF |
| 2394 | #define BOOST_VRSEL_SHIFT 0x0 |
| 2395 | |
| 2396 | // (0x41) BOOST_CON2 (RW) |
| 2397 | #define BOOST_RC_MASK 0x3 |
| 2398 | #define BOOST_RC_SHIFT 0x4 |
| 2399 | #define BOOST_CS_MASK 0x3 |
| 2400 | #define BOOST_CS_SHIFT 0x2 |
| 2401 | #define BOOST_CC_MASK 0x3 |
| 2402 | #define BOOST_CC_SHIFT 0x0 |
| 2403 | |
| 2404 | // (0x42) BOOST_CON3 (RW) |
| 2405 | #define BOOST_SLP_MASK 0x3 |
| 2406 | #define BOOST_SLP_SHIFT 0x2 |
| 2407 | #define BOOST_CL_MASK 0x3 |
| 2408 | #define BOOST_CL_SHIFT 0x0 |
| 2409 | |
| 2410 | // (0x43) BOOST_CON4 (RW) |
| 2411 | #define BOOST_SS_MASK 0x7 |
| 2412 | #define BOOST_SS_SHIFT 0x4 |
| 2413 | #define BOOST_RSV_MASK 0xF |
| 2414 | #define BOOST_RSV_SHIFT 0x0 |
| 2415 | |
| 2416 | // (0x46) SPK_CON0 (RW) |
| 2417 | #define SPK_THER_SHDN_L_EN_MASK 0x1 |
| 2418 | #define SPK_THER_SHDN_L_EN_SHIFT 0x6 |
| 2419 | #define SPK_TRIM_EN_L_MASK 0x1 |
| 2420 | #define SPK_TRIM_EN_L_SHIFT 0x4 |
| 2421 | #define SPKMODE_L_MASK 0x1 |
| 2422 | #define SPKMODE_L_SHIFT 0x2 |
| 2423 | #define SPK_EN_L_MASK 0x1 |
| 2424 | #define SPK_EN_L_SHIFT 0x0 |
| 2425 | |
| 2426 | // (0x47) SPK_CON1 (RW) |
| 2427 | #define SPK_OC_EN_L_MASK 0x1 |
| 2428 | #define SPK_OC_EN_L_SHIFT 0x7 |
| 2429 | #define SPKAB_OC_EN_L_MASK 0x1 |
| 2430 | #define SPKAB_OC_EN_L_SHIFT 0x6 |
| 2431 | #define SPK_OC_SHDN_DL_MASK 0x1 |
| 2432 | #define SPK_OC_SHDN_DL_SHIFT 0x4 |
| 2433 | #define SPK_VOL_L_MASK 0x7 |
| 2434 | #define SPK_VOL_L_SHIFT 0x0 |
| 2435 | |
| 2436 | // (0x48) SPK_CON2 (RO/RW) |
| 2437 | #define SPK_RSV0_MASK 0x3F |
| 2438 | #define SPK_RSV0_SHIFT 0x2 |
| 2439 | #define SPK_AB_OC_L_DEG_MASK 0x1 |
| 2440 | #define SPK_AB_OC_L_DEG_SHIFT 0x1 |
| 2441 | #define SPK_D_OC_L_DEG_MASK 0x1 |
| 2442 | #define SPK_D_OC_L_DEG_SHIFT 0x0 |
| 2443 | |
| 2444 | // (0x49) SPK_CON3 (RO/RW) |
| 2445 | #define SPK_OFFSET_L_OV_MASK 0x1 |
| 2446 | #define SPK_OFFSET_L_OV_SHIFT 0x7 |
| 2447 | #define SPK_OFFSET_L_MODE_MASK 0x1 |
| 2448 | #define SPK_OFFSET_L_MODE_SHIFT 0x6 |
| 2449 | #define SPK_LEAD_L_SW_MASK 0x1 |
| 2450 | #define SPK_LEAD_L_SW_SHIFT 0x5 |
| 2451 | #define SPK_OFFSET_L_SW_MASK 0x1F |
| 2452 | #define SPK_OFFSET_L_SW_SHIFT 0x0 |
| 2453 | |
| 2454 | // (0x4A) SPK_CON4 (RO) |
| 2455 | #define SPK_TRIM_DONE_L_MASK 0x1 |
| 2456 | #define SPK_TRIM_DONE_L_SHIFT 0x7 |
| 2457 | #define SPK_LEAD_L_FLAG_MASK 0x1 |
| 2458 | #define SPK_LEAD_L_FLAG_SHIFT 0x6 |
| 2459 | #define SPK_LEAD_L_FLAG_DEG_MASK 0x1 |
| 2460 | #define SPK_LEAD_L_FLAG_DEG_SHIFT 0x5 |
| 2461 | #define SPK_OFFSET_L_MASK 0x1F |
| 2462 | #define SPK_OFFSET_L_SHIFT 0x0 |
| 2463 | |
| 2464 | // (0x4B) SPK_CON5 (RW) |
| 2465 | #define SPK_RSV1_MASK 0x1 |
| 2466 | #define SPK_RSV1_SHIFT 0x7 |
| 2467 | #define SPKRCV_EN_L_MASK 0x1 |
| 2468 | #define SPKRCV_EN_L_SHIFT 0x6 |
| 2469 | #define SPKAB_OBIAS_L_MASK 0x3 |
| 2470 | #define SPKAB_OBIAS_L_SHIFT 0x4 |
| 2471 | #define SPK_SLEW_L_MASK 0x3 |
| 2472 | #define SPK_SLEW_L_SHIFT 0x2 |
| 2473 | #define SPK_FORCE_EN_L_MASK 0x1 |
| 2474 | #define SPK_FORCE_EN_L_SHIFT 0x1 |
| 2475 | #define SPK_INTG_RST_L_MASK 0x1 |
| 2476 | #define SPK_INTG_RST_L_SHIFT 0x0 |
| 2477 | |
| 2478 | // (0x4C) SPK_CON6 (RW) |
| 2479 | #define SPK_THER_SHDN_R_EN_MASK 0x1 |
| 2480 | #define SPK_THER_SHDN_R_EN_SHIFT 0x6 |
| 2481 | #define SPK_TRIM_EN_R_MASK 0x1 |
| 2482 | #define SPK_TRIM_EN_R_SHIFT 0x4 |
| 2483 | #define SPKMODE_R_MASK 0x1 |
| 2484 | #define SPKMODE_R_SHIFT 0x2 |
| 2485 | #define SPK_EN_R_MASK 0x1 |
| 2486 | #define SPK_EN_R_SHIFT 0x0 |
| 2487 | |
| 2488 | // (0x4D) SPK_CON7 (RW) |
| 2489 | #define SPK_OC_EN_R_MASK 0x1 |
| 2490 | #define SPK_OC_EN_R_SHIFT 0x7 |
| 2491 | #define SPKAB_OC_EN_R_MASK 0x1 |
| 2492 | #define SPKAB_OC_EN_R_SHIFT 0x6 |
| 2493 | #define SPK_OC_SHDN_DR_MASK 0x1 |
| 2494 | #define SPK_OC_SHDN_DR_SHIFT 0x4 |
| 2495 | #define SPK_VOL_R_MASK 0x7 |
| 2496 | #define SPK_VOL_R_SHIFT 0x0 |
| 2497 | |
| 2498 | // (0x4E) SPK_CON8 (RO/RW) |
| 2499 | #define SPK_RSV2_MASK 0x3F |
| 2500 | #define SPK_RSV2_SHIFT 0x2 |
| 2501 | #define SPK_AB_OC_R_DEG_MASK 0x1 |
| 2502 | #define SPK_AB_OC_R_DEG_SHIFT 0x1 |
| 2503 | #define SPK_D_OC_R_DEG_MASK 0x1 |
| 2504 | #define SPK_D_OC_R_DEG_SHIFT 0x0 |
| 2505 | |
| 2506 | // (0x4F) SPK_CON9 (RO/RW) |
| 2507 | #define SPK_OFFSET_R_OV_MASK 0x1 |
| 2508 | #define SPK_OFFSET_R_OV_SHIFT 0x7 |
| 2509 | #define SPK_OFFSET_R_MODE_MASK 0x1 |
| 2510 | #define SPK_OFFSET_R_MODE_SHIFT 0x6 |
| 2511 | #define SPK_LEAD_R_SW_MASK 0x1 |
| 2512 | #define SPK_LEAD_R_SW_SHIFT 0x5 |
| 2513 | #define SPK_OFFSET_R_SW_MASK 0x1F |
| 2514 | #define SPK_OFFSET_R_SW_SHIFT 0x0 |
| 2515 | |
| 2516 | // (0x50) SPK_CON10 (RO) |
| 2517 | #define SPK_TRIM_DONE_R_MASK 0x1 |
| 2518 | #define SPK_TRIM_DONE_R_SHIFT 0x7 |
| 2519 | #define SPK_LEAD_R_FLAG_MASK 0x1 |
| 2520 | #define SPK_LEAD_R_FLAG_SHIFT 0x6 |
| 2521 | #define SPK_LEAD_R_FLAG_DEG_MASK 0x1 |
| 2522 | #define SPK_LEAD_R_FLAG_DEG_SHIFT 0x5 |
| 2523 | #define SPK_OFFSET_R_MASK 0x1F |
| 2524 | #define SPK_OFFSET_R_SHIFT 0x0 |
| 2525 | |
| 2526 | // (0x51) SPK_CON11 (RW) |
| 2527 | #define SPK_RSV3_MASK 0x1 |
| 2528 | #define SPK_RSV3_SHIFT 0x7 |
| 2529 | #define SPKRCV_EN_R_MASK 0x1 |
| 2530 | #define SPKRCV_EN_R_SHIFT 0x6 |
| 2531 | #define SPKAB_OBIAS_R_MASK 0x3 |
| 2532 | #define SPKAB_OBIAS_R_SHIFT 0x4 |
| 2533 | #define SPK_SLEW_R_MASK 0x3 |
| 2534 | #define SPK_SLEW_R_SHIFT 0x2 |
| 2535 | #define SPK_FORCE_EN_R_MASK 0x1 |
| 2536 | #define SPK_FORCE_EN_R_SHIFT 0x1 |
| 2537 | #define SPK_INTG_RST_R_MASK 0x1 |
| 2538 | #define SPK_INTG_RST_R_SHIFT 0x0 |
| 2539 | |
| 2540 | // (0x52) SPK_CON12 (RW) |
| 2541 | #define SPK_OC_AUTOFF_MASK 0x1 |
| 2542 | #define SPK_OC_AUTOFF_SHIFT 0x3 |
| 2543 | #define SPK_OC_DGLH_MASK 0x3 |
| 2544 | #define SPK_OC_DGLH_SHIFT 0x1 |
| 2545 | #define SPK_OCTH_D_MASK 0x1 |
| 2546 | #define SPK_OCTH_D_SHIFT 0x0 |
| 2547 | |
| 2548 | // (0x53) SPK_CON13 (RW) |
| 2549 | #define SPK_OC_WND_MASK 0x3 |
| 2550 | #define SPK_OC_WND_SHIFT 0x4 |
| 2551 | #define SPK_OC_THD_MASK 0x3 |
| 2552 | #define SPK_OC_THD_SHIFT 0x0 |
| 2553 | |
| 2554 | // (0x54) SPK_CON14 (RW) |
| 2555 | #define SPK_TRIM_DIV_MASK 0x3 |
| 2556 | #define SPK_TRIM_DIV_SHIFT 0x4 |
| 2557 | #define SPK_TRIM_DEG_MASK 0x3 |
| 2558 | #define SPK_TRIM_DEG_SHIFT 0x0 |
| 2559 | |
| 2560 | // (0x55) SPK_CON15 (RW) |
| 2561 | #define SPKAB_OBIAS_MASK 0x3 |
| 2562 | #define SPKAB_OBIAS_SHIFT 0x6 |
| 2563 | #define SPKAB_FB_ATT_MASK 0x3 |
| 2564 | #define SPKAB_FB_ATT_SHIFT 0x2 |
| 2565 | #define SPKAB_OVDRV_MASK 0x1 |
| 2566 | #define SPKAB_OVDRV_SHIFT 0x0 |
| 2567 | |
| 2568 | // (0x56) SPK_CON16 (RW) |
| 2569 | #define SPK_FBRC_EN_MASK 0x1 |
| 2570 | #define SPK_FBRC_EN_SHIFT 0x6 |
| 2571 | #define SPK_IBIAS_SEL_MASK 0x3 |
| 2572 | #define SPK_IBIAS_SEL_SHIFT 0x4 |
| 2573 | #define SPK_VCM_IBSEL_MASK 0x1 |
| 2574 | #define SPK_VCM_IBSEL_SHIFT 0x3 |
| 2575 | #define SPK_VCM_SEL_MASK 0x1 |
| 2576 | #define SPK_VCM_SEL_SHIFT 0x2 |
| 2577 | #define SPK_EN_VIEW_CLK_MASK 0x1 |
| 2578 | #define SPK_EN_VIEW_CLK_SHIFT 0x1 |
| 2579 | #define SPK_EN_VIEW_VCM_MASK 0x1 |
| 2580 | #define SPK_EN_VIEW_VCM_SHIFT 0x0 |
| 2581 | |
| 2582 | // (0x57) SPK_CON17 (RW) |
| 2583 | #define SPK_CCODE_MASK 0xF |
| 2584 | #define SPK_CCODE_SHIFT 0x4 |
| 2585 | #define SPK_BTL_SET_MASK 0x3 |
| 2586 | #define SPK_BTL_SET_SHIFT 0x0 |
| 2587 | |
| 2588 | // (0x58) SPK_CON18 (RW) |
| 2589 | #define SPK_RSV_MASK 0xF |
| 2590 | #define SPK_RSV_SHIFT 0x0 |
| 2591 | |
| 2592 | // (0x59) SPK_CON19 (RW) |
| 2593 | #define SPK_TD1_MASK 0x3 |
| 2594 | #define SPK_TD1_SHIFT 0x4 |
| 2595 | #define SPK_TD2_MASK 0x3 |
| 2596 | #define SPK_TD2_SHIFT 0x0 |
| 2597 | |
| 2598 | // (0x5A) SPK_CON20 (RW) |
| 2599 | #define SPK_DEPOP_EN_L_SW_MASK 0x1 |
| 2600 | #define SPK_DEPOP_EN_L_SW_SHIFT 0x7 |
| 2601 | #define SPK_DEPOP_EN_R_SW_MASK 0x1 |
| 2602 | #define SPK_DEPOP_EN_R_SW_SHIFT 0x6 |
| 2603 | #define SPKMODE_L_SW_MASK 0x1 |
| 2604 | #define SPKMODE_L_SW_SHIFT 0x5 |
| 2605 | #define SPKMODE_R_SW_MASK 0x1 |
| 2606 | #define SPKMODE_R_SW_SHIFT 0x4 |
| 2607 | #define SPK_RST_L_SW_MASK 0x1 |
| 2608 | #define SPK_RST_L_SW_SHIFT 0x3 |
| 2609 | #define SPK_RST_R_SW_MASK 0x1 |
| 2610 | #define SPK_RST_R_SW_SHIFT 0x2 |
| 2611 | #define SPK_EN_MODE_MASK 0x1 |
| 2612 | #define SPK_EN_MODE_SHIFT 0x0 |
| 2613 | |
| 2614 | // (0x5B) SPK_CON21 (RW) |
| 2615 | #define SPK_TRIM_EN_L_SW_MASK 0x1 |
| 2616 | #define SPK_TRIM_EN_L_SW_SHIFT 0x7 |
| 2617 | #define SPK_TRIM_EN_R_SW_MASK 0x1 |
| 2618 | #define SPK_TRIM_EN_R_SW_SHIFT 0x6 |
| 2619 | #define SPK_OUTSTG_EN_L_SW_MASK 0x1 |
| 2620 | #define SPK_OUTSTG_EN_L_SW_SHIFT 0x5 |
| 2621 | #define SPK_OUTSTG_EN_R_SW_MASK 0x1 |
| 2622 | #define SPK_OUTSTG_EN_R_SW_SHIFT 0x4 |
| 2623 | #define SPK_EN_L_SW_MASK 0x1 |
| 2624 | #define SPK_EN_L_SW_SHIFT 0x3 |
| 2625 | #define SPK_EN_R_SW_MASK 0x1 |
| 2626 | #define SPK_EN_R_SW_SHIFT 0x2 |
| 2627 | #define SPK_VCM_FAST_SW_MASK 0x1 |
| 2628 | #define SPK_VCM_FAST_SW_SHIFT 0x0 |
| 2629 | |
| 2630 | // (0x5C) SPK_CON22 (RW) |
| 2631 | #define SPK_TRIM_STOP_L_SW_MASK 0x1 |
| 2632 | #define SPK_TRIM_STOP_L_SW_SHIFT 0x1 |
| 2633 | #define SPK_TRIM_STOP_R_SW_MASK 0x1 |
| 2634 | #define SPK_TRIM_STOP_R_SW_SHIFT 0x0 |
| 2635 | |
| 2636 | // (0x5F) ASW_CON0 (RW) |
| 2637 | #define RG_ANA_SW_SEL_MASK 0x1 |
| 2638 | #define RG_ANA_SW_SEL_SHIFT 0x0 |
| 2639 | |
| 2640 | // (0x60) FGPLL_CON0 (RW) |
| 2641 | #define FGPLL_PDIV1_MASK 0xF |
| 2642 | #define FGPLL_PDIV1_SHIFT 0x4 |
| 2643 | #define FGPLL_PDIV1_EN_MASK 0x1 |
| 2644 | #define FGPLL_PDIV1_EN_SHIFT 0x3 |
| 2645 | #define FGPLL_BS_RST_MASK 0x1 |
| 2646 | #define FGPLL_BS_RST_SHIFT 0x1 |
| 2647 | #define FGPLL_EN_MASK 0x1 |
| 2648 | #define FGPLL_EN_SHIFT 0x0 |
| 2649 | |
| 2650 | // (0x61) FGPLL_CON1 (RW) |
| 2651 | #define FGPLL_DIV1_MASK 0x3F |
| 2652 | #define FGPLL_DIV1_SHIFT 0x0 |
| 2653 | |
| 2654 | // (0x62) FGPLL_CON2 (RW) |
| 2655 | #define FGPLL_BC_MASK 0x3 |
| 2656 | #define FGPLL_BC_SHIFT 0x4 |
| 2657 | #define FGPLL_BP_MASK 0x3 |
| 2658 | #define FGPLL_BP_SHIFT 0x2 |
| 2659 | #define FGPLL_BR_MASK 0x3 |
| 2660 | #define FGPLL_BR_SHIFT 0x0 |
| 2661 | |
| 2662 | // (0x63) FGPLL_CON3 (RW) |
| 2663 | #define FGPLL_CDIV_MASK 0x7 |
| 2664 | #define FGPLL_CDIV_SHIFT 0x5 |
| 2665 | #define FGPLL_VCOBAND_MASK 0x7 |
| 2666 | #define FGPLL_VCOBAND_SHIFT 0x2 |
| 2667 | #define FGPLL_CKO_SEL_MASK 0x3 |
| 2668 | #define FGPLL_CKO_SEL_SHIFT 0x0 |
| 2669 | |
| 2670 | // (0x64) FGPLL_CON4 (RW) |
| 2671 | #define FGPLL_IBSEL_MASK 0x3 |
| 2672 | #define FGPLL_IBSEL_SHIFT 0x6 |
| 2673 | #define FGPLL_RLATCH_EN_MASK 0x1 |
| 2674 | #define FGPLL_RLATCH_EN_SHIFT 0x5 |
| 2675 | #define FGPLL_CKDRV_EN_MASK 0x1 |
| 2676 | #define FGPLL_CKDRV_EN_SHIFT 0x4 |
| 2677 | #define FGPLL_VCT_EN_MASK 0x1 |
| 2678 | #define FGPLL_VCT_EN_SHIFT 0x3 |
| 2679 | #define FGPLL_CKT_SEL_MASK 0x3 |
| 2680 | #define FGPLL_CKT_SEL_SHIFT 0x1 |
| 2681 | #define FGPLL_CKT_EN_MASK 0x1 |
| 2682 | #define FGPLL_CKT_EN_SHIFT 0x0 |
| 2683 | |
| 2684 | // (0x65) FGPLL_CON5 (RW) |
| 2685 | #define FGPLL_RSVA_MASK 0xFF |
| 2686 | #define FGPLL_RSVA_SHIFT 0x0 |
| 2687 | |
| 2688 | // (0x66) FGPLL_CON6 (RW) |
| 2689 | #define FGPLL_RSVB_MASK 0xFF |
| 2690 | #define FGPLL_RSVB_SHIFT 0x0 |
| 2691 | |
| 2692 | // (0x69) FGADC_CON0 (RW) |
| 2693 | #define FG_CLKSRC_MASK 0x1 |
| 2694 | #define FG_CLKSRC_SHIFT 0x7 |
| 2695 | #define FG_AUTOCALRATE_MASK 0x7 |
| 2696 | #define FG_AUTOCALRATE_SHIFT 0x4 |
| 2697 | #define FG_CAL_MASK 0x3 |
| 2698 | #define FG_CAL_SHIFT 0x2 |
| 2699 | #define FG_VMODE_MASK 0x1 |
| 2700 | #define FG_VMODE_SHIFT 0x1 |
| 2701 | #define FG_ON_MASK 0x1 |
| 2702 | #define FG_ON_SHIFT 0x0 |
| 2703 | |
| 2704 | // (0x6A) FGADC_CON1 (RO/RW) |
| 2705 | #define FG_SW_RSTCLR_MASK 0x1 |
| 2706 | #define FG_SW_RSTCLR_SHIFT 0x7 |
| 2707 | #define FG_CHARGE_RST_MASK 0x1 |
| 2708 | #define FG_CHARGE_RST_SHIFT 0x6 |
| 2709 | #define FG_TIME_RST_MASK 0x1 |
| 2710 | #define FG_TIME_RST_SHIFT 0x5 |
| 2711 | #define FG_OFFSET_RST_MASK 0x1 |
| 2712 | #define FG_OFFSET_RST_SHIFT 0x4 |
| 2713 | #define FG_SW_CLEAR_MASK 0x1 |
| 2714 | #define FG_SW_CLEAR_SHIFT 0x3 |
| 2715 | #define FG_LATCHDATA_ST_MASK 0x1 |
| 2716 | #define FG_LATCHDATA_ST_SHIFT 0x2 |
| 2717 | #define FG_SW_READ_PRE_MASK 0x1 |
| 2718 | #define FG_SW_READ_PRE_SHIFT 0x1 |
| 2719 | #define FG_SW_CR_MASK 0x1 |
| 2720 | #define FG_SW_CR_SHIFT 0x0 |
| 2721 | |
| 2722 | // (0x6B) FGADC_CON2 (RO) |
| 2723 | #define FG_CAR_35_32_MASK 0xF |
| 2724 | #define FG_CAR_35_32_SHIFT 0x0 |
| 2725 | |
| 2726 | // (0x6C) FGADC_CON3 (RO) |
| 2727 | #define FG_CAR_31_24_MASK 0xFF |
| 2728 | #define FG_CAR_31_24_SHIFT 0x0 |
| 2729 | |
| 2730 | // (0x6D) FGADC_CON4 (RO) |
| 2731 | #define FG_CAR_23_16_MASK 0xFF |
| 2732 | #define FG_CAR_23_16_SHIFT 0x0 |
| 2733 | |
| 2734 | // (0x6E) FGADC_CON5 (RO) |
| 2735 | #define FG_CAR_15_08_MASK 0xFF |
| 2736 | #define FG_CAR_15_08_SHIFT 0x0 |
| 2737 | |
| 2738 | // (0x6F) FGADC_CON6 (RO) |
| 2739 | #define FG_CAR_07_00_MASK 0xFF |
| 2740 | #define FG_CAR_07_00_SHIFT 0x0 |
| 2741 | |
| 2742 | // (0x70) FGADC_CON7 (RO) |
| 2743 | #define FG_NTER_29_24_MASK 0x3F |
| 2744 | #define FG_NTER_29_24_SHIFT 0x0 |
| 2745 | |
| 2746 | // (0x71) FGADC_CON8 (RO) |
| 2747 | #define FG_NTER_23_16_MASK 0xFF |
| 2748 | #define FG_NTER_23_16_SHIFT 0x0 |
| 2749 | |
| 2750 | // (0x72) FGADC_CON9 (RO) |
| 2751 | #define FG_NTER_15_08_MASK 0xFF |
| 2752 | #define FG_NTER_15_08_SHIFT 0x0 |
| 2753 | |
| 2754 | // (0x73) FGADC_CON10 (RO) |
| 2755 | #define FG_NTER_07_00_MASK 0xFF |
| 2756 | #define FG_NTER_07_00_SHIFT 0x0 |
| 2757 | |
| 2758 | // (0x74) FGADC_CON11 (RW) |
| 2759 | #define FG_BLTR_15_08_MASK 0xFF |
| 2760 | #define FG_BLTR_15_08_SHIFT 0x0 |
| 2761 | |
| 2762 | // (0x75) FGADC_CON12 (RW) |
| 2763 | #define FG_BLTR_07_00_MASK 0xFF |
| 2764 | #define FG_BLTR_07_00_SHIFT 0x0 |
| 2765 | |
| 2766 | // (0x76) FGADC_CON13 (RW) |
| 2767 | #define FG_BFTR_15_08_MASK 0xFF |
| 2768 | #define FG_BFTR_15_08_SHIFT 0x0 |
| 2769 | |
| 2770 | // (0x77) FGADC_CON14 (RW) |
| 2771 | #define FG_BFTR_07_00_MASK 0xFF |
| 2772 | #define FG_BFTR_07_00_SHIFT 0x0 |
| 2773 | |
| 2774 | // (0x78) FGADC_CON15 (RO) |
| 2775 | #define FG_CURRENT_OUT_15_08_MASK 0xFF |
| 2776 | #define FG_CURRENT_OUT_15_08_SHIFT 0x0 |
| 2777 | |
| 2778 | // (0x79) FGADC_CON16 (RO) |
| 2779 | #define FG_CURRENT_OUT_07_00_MASK 0xFF |
| 2780 | #define FG_CURRENT_OUT_07_00_SHIFT 0x0 |
| 2781 | |
| 2782 | // (0x7A) FGADC_CON17 (RW) |
| 2783 | #define FG_ADJUST_OFFSET_VALUE_15_08_MASK 0xFF |
| 2784 | #define FG_ADJUST_OFFSET_VALUE_15_08_SHIFT 0x0 |
| 2785 | |
| 2786 | // (0x7B) FGADC_CON18 (RW) |
| 2787 | #define FG_ADJUST_OFFSET_VALUE_07_00_MASK 0xFF |
| 2788 | #define FG_ADJUST_OFFSET_VALUE_07_00_SHIFT 0x0 |
| 2789 | |
| 2790 | // (0x7C) FGADC_CON19 (RO) |
| 2791 | #define FG_OFFSET_15_08_MASK 0xFF |
| 2792 | #define FG_OFFSET_15_08_SHIFT 0x0 |
| 2793 | |
| 2794 | // (0x7D) FGADC_CON20 (RO) |
| 2795 | #define FG_OFFSET_07_00_MASK 0xFF |
| 2796 | #define FG_OFFSET_07_00_SHIFT 0x0 |
| 2797 | |
| 2798 | // (0x7E) FGADC_CON21 (RW) |
| 2799 | #define FG_RSV0_MASK 0xF |
| 2800 | #define FG_RSV0_SHIFT 0x4 |
| 2801 | #define FG_ANALOGTEST_MASK 0xF |
| 2802 | #define FG_ANALOGTEST_SHIFT 0x0 |
| 2803 | |
| 2804 | // (0x7F) FGADC_CON22 (RW) |
| 2805 | #define FG_SPARE_MASK 0xFF |
| 2806 | #define FG_SPARE_SHIFT 0x0 |
| 2807 | |
| 2808 | // (0x80) FGADC_CON23 (RW) |
| 2809 | #define FG_BLTR_BFTR_EN_MASK 0x1 |
| 2810 | #define FG_BLTR_BFTR_EN_SHIFT 0x7 |
| 2811 | #define FG_ADC_AUTORST_MASK 0x1 |
| 2812 | #define FG_ADC_AUTORST_SHIFT 0x6 |
| 2813 | #define FG_ADJ_OFFSET_EN_MASK 0x1 |
| 2814 | #define FG_ADJ_OFFSET_EN_SHIFT 0x4 |
| 2815 | #define FG_OSR_MASK 0x7 |
| 2816 | #define FG_OSR_SHIFT 0x0 |
| 2817 | |
| 2818 | // (0x81) FGADC_CON24 (RW) |
| 2819 | #define VOL_OSR_MASK 0x7 |
| 2820 | #define VOL_OSR_SHIFT 0x0 |
| 2821 | |
| 2822 | // (0x82) FGADC_CON25 (RO/RW) |
| 2823 | #define FG_ADC_RSTDETECT_MASK 0x1 |
| 2824 | #define FG_ADC_RSTDETECT_SHIFT 0x7 |
| 2825 | #define FG_H_INT_STS_MASK 0x1 |
| 2826 | #define FG_H_INT_STS_SHIFT 0x5 |
| 2827 | #define FG_L_INT_STS_MASK 0x1 |
| 2828 | #define FG_L_INT_STS_SHIFT 0x4 |
| 2829 | #define VOL_FIR1BYPASS_MASK 0x1 |
| 2830 | #define VOL_FIR1BYPASS_SHIFT 0x2 |
| 2831 | #define FG_FIR2BYPASS_MASK 0x1 |
| 2832 | #define FG_FIR2BYPASS_SHIFT 0x1 |
| 2833 | #define FG_FIR1BYPASS_MASK 0x1 |
| 2834 | #define FG_FIR1BYPASS_SHIFT 0x0 |
| 2835 | |
| 2836 | // (0x83) FGADC_CON26 (RO) |
| 2837 | #define VOL_CURRENT_OUT_15_08_MASK 0xFF |
| 2838 | #define VOL_CURRENT_OUT_15_08_SHIFT 0x0 |
| 2839 | |
| 2840 | // (0x84) FGADC_CON27 (RO) |
| 2841 | #define VOL_CURRENT_OUT_07_00_MASK 0xFF |
| 2842 | #define VOL_CURRENT_OUT_07_00_SHIFT 0x0 |
| 2843 | |
| 2844 | // (0x85) FGADC_CON28 (RO) |
| 2845 | #define FG_CIC2_15_08_MASK 0xFF |
| 2846 | #define FG_CIC2_15_08_SHIFT 0x0 |
| 2847 | |
| 2848 | // (0x86) FGADC_CON29 (RO) |
| 2849 | #define FG_CIC2_07_00_MASK 0xFF |
| 2850 | #define FG_CIC2_07_00_SHIFT 0x0 |
| 2851 | |
| 2852 | // (0x87) FGADC_CON30 (RW) |
| 2853 | #define FG_RSV1_MASK 0x7 |
| 2854 | #define FG_RSV1_SHIFT 0x5 |
| 2855 | #define FG_VMODE_SW_MASK 0x1 |
| 2856 | #define FG_VMODE_SW_SHIFT 0x4 |
| 2857 | #define FG_FGADC_EN_SW_MASK 0x1 |
| 2858 | #define FG_FGADC_EN_SW_SHIFT 0x3 |
| 2859 | #define FG_FGCAL_EN_SW_MASK 0x1 |
| 2860 | #define FG_FGCAL_EN_SW_SHIFT 0x2 |
| 2861 | #define FG_RST_SW_MASK 0x1 |
| 2862 | #define FG_RST_SW_SHIFT 0x1 |
| 2863 | #define FG_MODE_MASK 0x1 |
| 2864 | #define FG_MODE_SHIFT 0x0 |
| 2865 | |
| 2866 | // (0x88) FGADC_CON31 (RO) |
| 2867 | #define FG_MON_MASK 0xFF |
| 2868 | #define FG_MON_SHIFT 0x0 |
| 2869 | |
| 2870 | // (0x89) FGADC_CON32 (RW) |
| 2871 | #define FG_RSV2_MASK 0xFF |
| 2872 | #define FG_RSV2_SHIFT 0x0 |
| 2873 | |
| 2874 | // (0x8C) OTPC_CON0 (RO) |
| 2875 | #define RG_OTP_PDO_7_0_MASK 0xFF |
| 2876 | #define RG_OTP_PDO_7_0_SHIFT 0x0 |
| 2877 | |
| 2878 | // (0x8D) OTPC_CON1 (RO) |
| 2879 | #define RG_OTP_PDO_15_8_MASK 0xFF |
| 2880 | #define RG_OTP_PDO_15_8_SHIFT 0x0 |
| 2881 | |
| 2882 | // (0x8E) OTPC_CON2 (RO) |
| 2883 | #define RG_OTP_PDO_23_16_MASK 0xFF |
| 2884 | #define RG_OTP_PDO_23_16_SHIFT 0x0 |
| 2885 | |
| 2886 | // (0x8F) OTPC_CON3 (RO) |
| 2887 | #define RG_OTP_PDO_31_24_MASK 0xFF |
| 2888 | #define RG_OTP_PDO_31_24_SHIFT 0x0 |
| 2889 | |
| 2890 | // (0x90) OTPC_CON4 (RO) |
| 2891 | #define RG_OTP_PDO_39_32_MASK 0xFF |
| 2892 | #define RG_OTP_PDO_39_32_SHIFT 0x0 |
| 2893 | |
| 2894 | // (0x91) OTPC_CON5 (RO) |
| 2895 | #define RG_OTP_PDO_47_40_MASK 0xFF |
| 2896 | #define RG_OTP_PDO_47_40_SHIFT 0x0 |
| 2897 | |
| 2898 | // (0x92) OTPC_CON6 (RO) |
| 2899 | #define RG_OTP_PDO_55_48_MASK 0xFF |
| 2900 | #define RG_OTP_PDO_55_48_SHIFT 0x0 |
| 2901 | |
| 2902 | // (0x93) OTPC_CON7 (RO) |
| 2903 | #define RG_OTP_PDO_63_56_MASK 0xFF |
| 2904 | #define RG_OTP_PDO_63_56_SHIFT 0x0 |
| 2905 | |
| 2906 | // (0x94) OTPC_CON8 (RW) |
| 2907 | #define RG_OTP_PDIN_MASK 0xFF |
| 2908 | #define RG_OTP_PDIN_SHIFT 0x0 |
| 2909 | |
| 2910 | // (0x95) OTPC_CON9 (RW) |
| 2911 | #define RG_OTP_PA_MASK 0x3 |
| 2912 | #define RG_OTP_PA_SHIFT 0x6 |
| 2913 | #define RG_OTP_PTM_MASK 0x3 |
| 2914 | #define RG_OTP_PTM_SHIFT 0x4 |
| 2915 | #define RG_OTP_PWE_MASK 0x3 |
| 2916 | #define RG_OTP_PWE_SHIFT 0x2 |
| 2917 | #define RG_OTP_PPROG_MASK 0x1 |
| 2918 | #define RG_OTP_PPROG_SHIFT 0x1 |
| 2919 | #define RG_OTP_READ_MASK 0x1 |
| 2920 | #define RG_OTP_READ_SHIFT 0x0 |
| 2921 | |
| 2922 | // (0x96) OTPC_CON10 (RW) |
| 2923 | #define RG_OTP_READ_PRD_MASK 0x3 |
| 2924 | #define RG_OTP_READ_PRD_SHIFT 0x6 |
| 2925 | |
| 2926 | // (0x97) OTPC_CON11 (RW) |
| 2927 | #define RG_OTP_TEST_SEL_MASK 0x7 |
| 2928 | #define RG_OTP_TEST_SEL_SHIFT 0x5 |
| 2929 | #define RG_OTP_SKIP_OUT_MASK 0x1 |
| 2930 | #define RG_OTP_SKIP_OUT_SHIFT 0x4 |
| 2931 | #define RG_OTP_OUT_SEL_MASK 0x3 |
| 2932 | #define RG_OTP_OUT_SEL_SHIFT 0x2 |
| 2933 | #define RG_OTP_RSV_MASK 0x3 |
| 2934 | #define RG_OTP_RSV_SHIFT 0x0 |
| 2935 | |
| 2936 | // (0x98) OTPC_CON12 (RW) |
| 2937 | #define RG_OTP_VAL_7_0_MASK 0xFF |
| 2938 | #define RG_OTP_VAL_7_0_SHIFT 0x0 |
| 2939 | |
| 2940 | // (0x99) OTPC_CON13 (RW) |
| 2941 | #define RG_OTP_VAL_15_8_MASK 0xFF |
| 2942 | #define RG_OTP_VAL_15_8_SHIFT 0x0 |
| 2943 | |
| 2944 | // (0x9A) OTPC_CON14 (RW) |
| 2945 | #define RG_OTP_VAL_23_16_MASK 0xFF |
| 2946 | #define RG_OTP_VAL_23_16_SHIFT 0x0 |
| 2947 | |
| 2948 | // (0x9B) OTPC_CON15 (RW) |
| 2949 | #define RG_OTP_VAL_31_24_MASK 0xFF |
| 2950 | #define RG_OTP_VAL_31_24_SHIFT 0x0 |
| 2951 | |
| 2952 | // (0x9C) OTPC_CON16 (RW) |
| 2953 | #define RG_OTP_VAL_39_32_MASK 0xFF |
| 2954 | #define RG_OTP_VAL_39_32_SHIFT 0x0 |
| 2955 | |
| 2956 | // (0x9D) OTPC_CON17 (RW) |
| 2957 | #define RG_OTP_VAL_47_40_MASK 0xFF |
| 2958 | #define RG_OTP_VAL_47_40_SHIFT 0x0 |
| 2959 | |
| 2960 | // (0x9E) OTPC_CON18 (RW) |
| 2961 | #define RG_OTP_VAL_55_48_MASK 0xFF |
| 2962 | #define RG_OTP_VAL_55_48_SHIFT 0x0 |
| 2963 | |
| 2964 | // (0x9F) OTPC_CON19 (RW) |
| 2965 | #define RG_OTP_VAL_63_56_MASK 0xFF |
| 2966 | #define RG_OTP_VAL_63_56_SHIFT 0x0 |
| 2967 | |
| 2968 | // (0xA0) OTPC_CON20 (RO/RW) |
| 2969 | #define RG_OTP_BUSY_MASK 0x1 |
| 2970 | #define RG_OTP_BUSY_SHIFT 0x7 |
| 2971 | #define RG_OTP_VLD_MASK 0x1 |
| 2972 | #define RG_OTP_VLD_SHIFT 0x6 |
| 2973 | #define RG_OTP_READ_RDY_BYPASS_MASK 0x1 |
| 2974 | #define RG_OTP_READ_RDY_BYPASS_SHIFT 0x3 |
| 2975 | |
| 2976 | // (0xA1) OTPC_CON21 (RW) |
| 2977 | #define RG_OTP_W_LOCK_MASK 0x1 |
| 2978 | #define RG_OTP_W_LOCK_SHIFT 0x7 |
| 2979 | #define RG_OTP_W_LOCK_KEY_TOG_MASK 0x1 |
| 2980 | #define RG_OTP_W_LOCK_KEY_TOG_SHIFT 0x4 |
| 2981 | #define RG_OTP_W_LOCK_KEY_MASK 0xF |
| 2982 | #define RG_OTP_W_LOCK_KEY_SHIFT 0x0 |
| 2983 | |
| 2984 | // (0xA4) I2C_CON0 (RW) |
| 2985 | #define I2C_CON0_ADDR 0xA4 |
| 2986 | |
| 2987 | #define SCL_DE_MASK 0x1F |
| 2988 | #define SCL_DE_SHIFT 0x0 |
| 2989 | |
| 2990 | // (0xA5) I2C_CON1 (RW) |
| 2991 | #define I2C_CON1_ADDR 0xA5 |
| 2992 | |
| 2993 | #define SDA_DE_MASK 0x1F |
| 2994 | #define SDA_DE_SHIFT 0x0 |
| 2995 | |
| 2996 | #endif //#if defined(PMIC_6329_REG_API) |
| 2997 | |
| 2998 | #endif // #ifndef __DCL_PMIC6329_HW_H_STRUCT__ |