Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * SLG51000 High PSRR, Multi-Output Regulators
0004  * Copyright (C) 2019  Dialog Semiconductor
0005  *
0006  * Author: Eric Jeong <eric.jeong.opensource@diasemi.com>
0007  */
0008 
0009 #ifndef __SLG51000_REGISTERS_H__
0010 #define __SLG51000_REGISTERS_H__
0011 
0012 /* Registers */
0013 
0014 #define SLG51000_SYSCTL_PATN_ID_B0              0x1105
0015 #define SLG51000_SYSCTL_PATN_ID_B1              0x1106
0016 #define SLG51000_SYSCTL_PATN_ID_B2              0x1107
0017 #define SLG51000_SYSCTL_SYS_CONF_A              0x1109
0018 #define SLG51000_SYSCTL_SYS_CONF_D              0x110c
0019 #define SLG51000_SYSCTL_MATRIX_CONF_A           0x110d
0020 #define SLG51000_SYSCTL_MATRIX_CONF_B           0x110e
0021 #define SLG51000_SYSCTL_REFGEN_CONF_C           0x1111
0022 #define SLG51000_SYSCTL_UVLO_CONF_A             0x1112
0023 #define SLG51000_SYSCTL_FAULT_LOG1              0x1115
0024 #define SLG51000_SYSCTL_EVENT                   0x1116
0025 #define SLG51000_SYSCTL_STATUS                  0x1117
0026 #define SLG51000_SYSCTL_IRQ_MASK                0x1118
0027 #define SLG51000_IO_GPIO1_CONF                  0x1500
0028 #define SLG51000_IO_GPIO2_CONF                  0x1501
0029 #define SLG51000_IO_GPIO3_CONF                  0x1502
0030 #define SLG51000_IO_GPIO4_CONF                  0x1503
0031 #define SLG51000_IO_GPIO5_CONF                  0x1504
0032 #define SLG51000_IO_GPIO6_CONF                  0x1505
0033 #define SLG51000_IO_GPIO_STATUS                 0x1506
0034 #define SLG51000_LUTARRAY_LUT_VAL_0             0x1600
0035 #define SLG51000_LUTARRAY_LUT_VAL_1             0x1601
0036 #define SLG51000_LUTARRAY_LUT_VAL_2             0x1602
0037 #define SLG51000_LUTARRAY_LUT_VAL_3             0x1603
0038 #define SLG51000_LUTARRAY_LUT_VAL_4             0x1604
0039 #define SLG51000_LUTARRAY_LUT_VAL_5             0x1605
0040 #define SLG51000_LUTARRAY_LUT_VAL_6             0x1606
0041 #define SLG51000_LUTARRAY_LUT_VAL_7             0x1607
0042 #define SLG51000_LUTARRAY_LUT_VAL_8             0x1608
0043 #define SLG51000_LUTARRAY_LUT_VAL_9             0x1609
0044 #define SLG51000_LUTARRAY_LUT_VAL_10            0x160a
0045 #define SLG51000_LUTARRAY_LUT_VAL_11            0x160b
0046 #define SLG51000_MUXARRAY_INPUT_SEL_0           0x1700
0047 #define SLG51000_MUXARRAY_INPUT_SEL_1           0x1701
0048 #define SLG51000_MUXARRAY_INPUT_SEL_2           0x1702
0049 #define SLG51000_MUXARRAY_INPUT_SEL_3           0x1703
0050 #define SLG51000_MUXARRAY_INPUT_SEL_4           0x1704
0051 #define SLG51000_MUXARRAY_INPUT_SEL_5           0x1705
0052 #define SLG51000_MUXARRAY_INPUT_SEL_6           0x1706
0053 #define SLG51000_MUXARRAY_INPUT_SEL_7           0x1707
0054 #define SLG51000_MUXARRAY_INPUT_SEL_8           0x1708
0055 #define SLG51000_MUXARRAY_INPUT_SEL_9           0x1709
0056 #define SLG51000_MUXARRAY_INPUT_SEL_10          0x170a
0057 #define SLG51000_MUXARRAY_INPUT_SEL_11          0x170b
0058 #define SLG51000_MUXARRAY_INPUT_SEL_12          0x170c
0059 #define SLG51000_MUXARRAY_INPUT_SEL_13          0x170d
0060 #define SLG51000_MUXARRAY_INPUT_SEL_14          0x170e
0061 #define SLG51000_MUXARRAY_INPUT_SEL_15          0x170f
0062 #define SLG51000_MUXARRAY_INPUT_SEL_16          0x1710
0063 #define SLG51000_MUXARRAY_INPUT_SEL_17          0x1711
0064 #define SLG51000_MUXARRAY_INPUT_SEL_18          0x1712
0065 #define SLG51000_MUXARRAY_INPUT_SEL_19          0x1713
0066 #define SLG51000_MUXARRAY_INPUT_SEL_20          0x1714
0067 #define SLG51000_MUXARRAY_INPUT_SEL_21          0x1715
0068 #define SLG51000_MUXARRAY_INPUT_SEL_22          0x1716
0069 #define SLG51000_MUXARRAY_INPUT_SEL_23          0x1717
0070 #define SLG51000_MUXARRAY_INPUT_SEL_24          0x1718
0071 #define SLG51000_MUXARRAY_INPUT_SEL_25          0x1719
0072 #define SLG51000_MUXARRAY_INPUT_SEL_26          0x171a
0073 #define SLG51000_MUXARRAY_INPUT_SEL_27          0x171b
0074 #define SLG51000_MUXARRAY_INPUT_SEL_28          0x171c
0075 #define SLG51000_MUXARRAY_INPUT_SEL_29          0x171d
0076 #define SLG51000_MUXARRAY_INPUT_SEL_30          0x171e
0077 #define SLG51000_MUXARRAY_INPUT_SEL_31          0x171f
0078 #define SLG51000_MUXARRAY_INPUT_SEL_32          0x1720
0079 #define SLG51000_MUXARRAY_INPUT_SEL_33          0x1721
0080 #define SLG51000_MUXARRAY_INPUT_SEL_34          0x1722
0081 #define SLG51000_MUXARRAY_INPUT_SEL_35          0x1723
0082 #define SLG51000_MUXARRAY_INPUT_SEL_36          0x1724
0083 #define SLG51000_MUXARRAY_INPUT_SEL_37          0x1725
0084 #define SLG51000_MUXARRAY_INPUT_SEL_38          0x1726
0085 #define SLG51000_MUXARRAY_INPUT_SEL_39          0x1727
0086 #define SLG51000_MUXARRAY_INPUT_SEL_40          0x1728
0087 #define SLG51000_MUXARRAY_INPUT_SEL_41          0x1729
0088 #define SLG51000_MUXARRAY_INPUT_SEL_42          0x172a
0089 #define SLG51000_MUXARRAY_INPUT_SEL_43          0x172b
0090 #define SLG51000_MUXARRAY_INPUT_SEL_44          0x172c
0091 #define SLG51000_MUXARRAY_INPUT_SEL_45          0x172d
0092 #define SLG51000_MUXARRAY_INPUT_SEL_46          0x172e
0093 #define SLG51000_MUXARRAY_INPUT_SEL_47          0x172f
0094 #define SLG51000_MUXARRAY_INPUT_SEL_48          0x1730
0095 #define SLG51000_MUXARRAY_INPUT_SEL_49          0x1731
0096 #define SLG51000_MUXARRAY_INPUT_SEL_50          0x1732
0097 #define SLG51000_MUXARRAY_INPUT_SEL_51          0x1733
0098 #define SLG51000_MUXARRAY_INPUT_SEL_52          0x1734
0099 #define SLG51000_MUXARRAY_INPUT_SEL_53          0x1735
0100 #define SLG51000_MUXARRAY_INPUT_SEL_54          0x1736
0101 #define SLG51000_MUXARRAY_INPUT_SEL_55          0x1737
0102 #define SLG51000_MUXARRAY_INPUT_SEL_56          0x1738
0103 #define SLG51000_MUXARRAY_INPUT_SEL_57          0x1739
0104 #define SLG51000_MUXARRAY_INPUT_SEL_58          0x173a
0105 #define SLG51000_MUXARRAY_INPUT_SEL_59          0x173b
0106 #define SLG51000_MUXARRAY_INPUT_SEL_60          0x173c
0107 #define SLG51000_MUXARRAY_INPUT_SEL_61          0x173d
0108 #define SLG51000_MUXARRAY_INPUT_SEL_62          0x173e
0109 #define SLG51000_MUXARRAY_INPUT_SEL_63          0x173f
0110 #define SLG51000_PWRSEQ_RESOURCE_EN_0           0x1900
0111 #define SLG51000_PWRSEQ_RESOURCE_EN_1           0x1901
0112 #define SLG51000_PWRSEQ_RESOURCE_EN_2           0x1902
0113 #define SLG51000_PWRSEQ_RESOURCE_EN_3           0x1903
0114 #define SLG51000_PWRSEQ_RESOURCE_EN_4           0x1904
0115 #define SLG51000_PWRSEQ_RESOURCE_EN_5           0x1905
0116 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP0       0x1906
0117 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN0     0x1907
0118 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP1       0x1908
0119 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN1     0x1909
0120 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP2       0x190a
0121 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN2     0x190b
0122 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP3       0x190c
0123 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN3     0x190d
0124 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP4       0x190e
0125 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN4     0x190f
0126 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_UP5       0x1910
0127 #define SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN5     0x1911
0128 #define SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_A    0x1912
0129 #define SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_B    0x1913
0130 #define SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_C    0x1914
0131 #define SLG51000_PWRSEQ_INPUT_SENSE_CONF_A      0x1915
0132 #define SLG51000_PWRSEQ_INPUT_SENSE_CONF_B      0x1916
0133 #define SLG51000_LDO1_VSEL                      0x2000
0134 #define SLG51000_LDO1_MINV                      0x2060
0135 #define SLG51000_LDO1_MAXV                      0x2061
0136 #define SLG51000_LDO1_MISC1                     0x2064
0137 #define SLG51000_LDO1_VSEL_ACTUAL               0x2065
0138 #define SLG51000_LDO1_EVENT                     0x20c0
0139 #define SLG51000_LDO1_STATUS                    0x20c1
0140 #define SLG51000_LDO1_IRQ_MASK                  0x20c2
0141 #define SLG51000_LDO2_VSEL                      0x2200
0142 #define SLG51000_LDO2_MINV                      0x2260
0143 #define SLG51000_LDO2_MAXV                      0x2261
0144 #define SLG51000_LDO2_MISC1                     0x2264
0145 #define SLG51000_LDO2_VSEL_ACTUAL               0x2265
0146 #define SLG51000_LDO2_EVENT                     0x22c0
0147 #define SLG51000_LDO2_STATUS                    0x22c1
0148 #define SLG51000_LDO2_IRQ_MASK                  0x22c2
0149 #define SLG51000_LDO3_VSEL                      0x2300
0150 #define SLG51000_LDO3_MINV                      0x2360
0151 #define SLG51000_LDO3_MAXV                      0x2361
0152 #define SLG51000_LDO3_CONF1                     0x2364
0153 #define SLG51000_LDO3_CONF2                     0x2365
0154 #define SLG51000_LDO3_VSEL_ACTUAL               0x2366
0155 #define SLG51000_LDO3_EVENT                     0x23c0
0156 #define SLG51000_LDO3_STATUS                    0x23c1
0157 #define SLG51000_LDO3_IRQ_MASK                  0x23c2
0158 #define SLG51000_LDO4_VSEL                      0x2500
0159 #define SLG51000_LDO4_MINV                      0x2560
0160 #define SLG51000_LDO4_MAXV                      0x2561
0161 #define SLG51000_LDO4_CONF1                     0x2564
0162 #define SLG51000_LDO4_CONF2                     0x2565
0163 #define SLG51000_LDO4_VSEL_ACTUAL               0x2566
0164 #define SLG51000_LDO4_EVENT                     0x25c0
0165 #define SLG51000_LDO4_STATUS                    0x25c1
0166 #define SLG51000_LDO4_IRQ_MASK                  0x25c2
0167 #define SLG51000_LDO5_VSEL                      0x2700
0168 #define SLG51000_LDO5_MINV                      0x2760
0169 #define SLG51000_LDO5_MAXV                      0x2761
0170 #define SLG51000_LDO5_TRIM2                     0x2763
0171 #define SLG51000_LDO5_CONF1                     0x2765
0172 #define SLG51000_LDO5_CONF2                     0x2766
0173 #define SLG51000_LDO5_VSEL_ACTUAL               0x2767
0174 #define SLG51000_LDO5_EVENT                     0x27c0
0175 #define SLG51000_LDO5_STATUS                    0x27c1
0176 #define SLG51000_LDO5_IRQ_MASK                  0x27c2
0177 #define SLG51000_LDO6_VSEL                      0x2900
0178 #define SLG51000_LDO6_MINV                      0x2960
0179 #define SLG51000_LDO6_MAXV                      0x2961
0180 #define SLG51000_LDO6_TRIM2                     0x2963
0181 #define SLG51000_LDO6_CONF1                     0x2965
0182 #define SLG51000_LDO6_CONF2                     0x2966
0183 #define SLG51000_LDO6_VSEL_ACTUAL               0x2967
0184 #define SLG51000_LDO6_EVENT                     0x29c0
0185 #define SLG51000_LDO6_STATUS                    0x29c1
0186 #define SLG51000_LDO6_IRQ_MASK                  0x29c2
0187 #define SLG51000_LDO7_VSEL                      0x3100
0188 #define SLG51000_LDO7_MINV                      0x3160
0189 #define SLG51000_LDO7_MAXV                      0x3161
0190 #define SLG51000_LDO7_CONF1                     0x3164
0191 #define SLG51000_LDO7_CONF2                     0x3165
0192 #define SLG51000_LDO7_VSEL_ACTUAL               0x3166
0193 #define SLG51000_LDO7_EVENT                     0x31c0
0194 #define SLG51000_LDO7_STATUS                    0x31c1
0195 #define SLG51000_LDO7_IRQ_MASK                  0x31c2
0196 #define SLG51000_OTP_EVENT                      0x782b
0197 #define SLG51000_OTP_IRQ_MASK                   0x782d
0198 #define SLG51000_OTP_LOCK_OTP_PROG              0x78fe
0199 #define SLG51000_OTP_LOCK_CTRL                  0x78ff
0200 #define SLG51000_LOCK_GLOBAL_LOCK_CTRL1         0x8000
0201 
0202 /* Register Bit Fields */
0203 
0204 /* SLG51000_SYSCTL_PATTERN_ID_BYTE0 = 0x1105 */
0205 #define SLG51000_PATTERN_ID_BYTE0_SHIFT         0
0206 #define SLG51000_PATTERN_ID_BYTE0_MASK          (0xff << 0)
0207 
0208 /* SLG51000_SYSCTL_PATTERN_ID_BYTE1 = 0x1106 */
0209 #define SLG51000_PATTERN_ID_BYTE1_SHIFT         0
0210 #define SLG51000_PATTERN_ID_BYTE1_MASK          (0xff << 0)
0211 
0212 /* SLG51000_SYSCTL_PATTERN_ID_BYTE2 = 0x1107 */
0213 #define SLG51000_PATTERN_ID_BYTE2_SHIFT         0
0214 #define SLG51000_PATTERN_ID_BYTE2_MASK          (0xff << 0)
0215 
0216 /* SLG51000_SYSCTL_SYS_CONF_A = 0x1109 */
0217 #define SLG51000_I2C_ADDRESS_SHIFT              0
0218 #define SLG51000_I2C_ADDRESS_MASK               (0x7f << 0)
0219 #define SLG51000_I2C_DISABLE_SHIFT              7
0220 #define SLG51000_I2C_DISABLE_MASK               (0x01 << 7)
0221 
0222 /* SLG51000_SYSCTL_SYS_CONF_D = 0x110c */
0223 #define SLG51000_CS_T_DEB_SHIFT                 6
0224 #define SLG51000_CS_T_DEB_MASK                  (0x03 << 6)
0225 #define SLG51000_I2C_CLR_MODE_SHIFT             5
0226 #define SLG51000_I2C_CLR_MODE_MASK              (0x01 << 5)
0227 
0228 /* SLG51000_SYSCTL_MATRIX_CTRL_CONF_A = 0x110d */
0229 #define SLG51000_RESOURCE_CTRL_SHIFT            0
0230 #define SLG51000_RESOURCE_CTRL_MASK             (0xff << 0)
0231 
0232 /* SLG51000_SYSCTL_MATRIX_CTRL_CONF_B = 0x110e */
0233 #define SLG51000_MATRIX_EVENT_SENSE_SHIFT       0
0234 #define SLG51000_MATRIX_EVENT_SENSE_MASK        (0x07 << 0)
0235 
0236 /* SLG51000_SYSCTL_REFGEN_CONF_C = 0x1111 */
0237 #define SLG51000_REFGEN_SEL_TEMP_WARN_DEBOUNCE_SHIFT    2
0238 #define SLG51000_REFGEN_SEL_TEMP_WARN_DEBOUNCE_MASK     (0x03 << 2)
0239 #define SLG51000_REFGEN_SEL_TEMP_WARN_THR_SHIFT         0
0240 #define SLG51000_REFGEN_SEL_TEMP_WARN_THR_MASK          (0x03 << 0)
0241 
0242 /* SLG51000_SYSCTL_UVLO_CONF_A = 0x1112 */
0243 #define SLG51000_VMON_UVLO_SEL_THR_SHIFT        0
0244 #define SLG51000_VMON_UVLO_SEL_THR_MASK         (0x1f << 0)
0245 
0246 /* SLG51000_SYSCTL_FAULT_LOG1 = 0x1115 */
0247 #define SLG51000_FLT_POR_SHIFT                  5
0248 #define SLG51000_FLT_POR_MASK                   (0x01 << 5)
0249 #define SLG51000_FLT_RST_SHIFT                  4
0250 #define SLG51000_FLT_RST_MASK                   (0x01 << 4)
0251 #define SLG51000_FLT_POWER_SEQ_CRASH_REQ_SHIFT  2
0252 #define SLG51000_FLT_POWER_SEQ_CRASH_REQ_MASK   (0x01 << 2)
0253 #define SLG51000_FLT_OVER_TEMP_SHIFT            1
0254 #define SLG51000_FLT_OVER_TEMP_MASK             (0x01 << 1)
0255 
0256 /* SLG51000_SYSCTL_EVENT = 0x1116 */
0257 #define SLG51000_EVT_MATRIX_SHIFT               1
0258 #define SLG51000_EVT_MATRIX_MASK                (0x01 << 1)
0259 #define SLG51000_EVT_HIGH_TEMP_WARN_SHIFT       0
0260 #define SLG51000_EVT_HIGH_TEMP_WARN_MASK        (0x01 << 0)
0261 
0262 /* SLG51000_SYSCTL_STATUS = 0x1117 */
0263 #define SLG51000_STA_MATRIX_SHIFT               1
0264 #define SLG51000_STA_MATRIX_MASK                (0x01 << 1)
0265 #define SLG51000_STA_HIGH_TEMP_WARN_SHIFT       0
0266 #define SLG51000_STA_HIGH_TEMP_WARN_MASK        (0x01 << 0)
0267 
0268 /* SLG51000_SYSCTL_IRQ_MASK = 0x1118 */
0269 #define SLG51000_IRQ_MATRIX_SHIFT               1
0270 #define SLG51000_IRQ_MATRIX_MASK                (0x01 << 1)
0271 #define SLG51000_IRQ_HIGH_TEMP_WARN_SHIFT       0
0272 #define SLG51000_IRQ_HIGH_TEMP_WARN_MASK        (0x01 << 0)
0273 
0274 /* SLG51000_IO_GPIO1_CONF ~ SLG51000_IO_GPIO5_CONF =
0275  * 0x1500, 0x1501, 0x1502, 0x1503, 0x1504
0276  */
0277 #define SLG51000_GPIO_DIR_SHIFT                 7
0278 #define SLG51000_GPIO_DIR_MASK                  (0x01 << 7)
0279 #define SLG51000_GPIO_SENS_SHIFT                5
0280 #define SLG51000_GPIO_SENS_MASK                 (0x03 << 5)
0281 #define SLG51000_GPIO_INVERT_SHIFT              4
0282 #define SLG51000_GPIO_INVERT_MASK               (0x01 << 4)
0283 #define SLG51000_GPIO_BYP_SHIFT                 3
0284 #define SLG51000_GPIO_BYP_MASK                  (0x01 << 3)
0285 #define SLG51000_GPIO_T_DEB_SHIFT               1
0286 #define SLG51000_GPIO_T_DEB_MASK                (0x03 << 1)
0287 #define SLG51000_GPIO_LEVEL_SHIFT               0
0288 #define SLG51000_GPIO_LEVEL_MASK                (0x01 << 0)
0289 
0290 /* SLG51000_IO_GPIO6_CONF = 0x1505 */
0291 #define SLG51000_GPIO6_SENS_SHIFT               5
0292 #define SLG51000_GPIO6_SENS_MASK                (0x03 << 5)
0293 #define SLG51000_GPIO6_INVERT_SHIFT             4
0294 #define SLG51000_GPIO6_INVERT_MASK              (0x01 << 4)
0295 #define SLG51000_GPIO6_T_DEB_SHIFT              1
0296 #define SLG51000_GPIO6_T_DEB_MASK               (0x03 << 1)
0297 #define SLG51000_GPIO6_LEVEL_SHIFT              0
0298 #define SLG51000_GPIO6_LEVEL_MASK               (0x01 << 0)
0299 
0300 /* SLG51000_IO_GPIO_STATUS = 0x1506 */
0301 #define SLG51000_GPIO6_STATUS_SHIFT             5
0302 #define SLG51000_GPIO6_STATUS_MASK              (0x01 << 5)
0303 #define SLG51000_GPIO5_STATUS_SHIFT             4
0304 #define SLG51000_GPIO5_STATUS_MASK              (0x01 << 4)
0305 #define SLG51000_GPIO4_STATUS_SHIFT             3
0306 #define SLG51000_GPIO4_STATUS_MASK              (0x01 << 3)
0307 #define SLG51000_GPIO3_STATUS_SHIFT             2
0308 #define SLG51000_GPIO3_STATUS_MASK              (0x01 << 2)
0309 #define SLG51000_GPIO2_STATUS_SHIFT             1
0310 #define SLG51000_GPIO2_STATUS_MASK              (0x01 << 1)
0311 #define SLG51000_GPIO1_STATUS_SHIFT             0
0312 #define SLG51000_GPIO1_STATUS_MASK              (0x01 << 0)
0313 
0314 /* SLG51000_LUTARRAY_LUT_VAL_0 ~ SLG51000_LUTARRAY_LUT_VAL_11
0315  * 0x1600, 0x1601, 0x1602, 0x1603, 0x1604, 0x1605,
0316  * 0x1606, 0x1607, 0x1608, 0x1609, 0x160a, 0x160b
0317  */
0318 #define SLG51000_LUT_VAL_SHIFT                  0
0319 #define SLG51000_LUT_VAL_MASK                   (0xff << 0)
0320 
0321 /* SLG51000_MUXARRAY_INPUT_SEL_0 ~ SLG51000_MUXARRAY_INPUT_SEL_63
0322  * 0x1700, 0x1701, 0x1702, 0x1703, 0x1704, 0x1705,
0323  * 0x1706, 0x1707, 0x1708, 0x1709, 0x170a, 0x170b,
0324  * 0x170c, 0x170d, 0x170e, 0x170f, 0x1710, 0x1711,
0325  * 0x1712, 0x1713, 0x1714, 0x1715, 0x1716, 0x1717,
0326  * 0x1718, 0x1719, 0x171a, 0x171b, 0x171c, 0x171d,
0327  * 0x171e, 0x171f, 0x1720, 0x1721, 0x1722, 0x1723,
0328  * 0x1724, 0x1725, 0x1726, 0x1727, 0x1728, 0x1729,
0329  * 0x173a, 0x173b, 0x173c, 0x173d, 0x173e, 0x173f,
0330  */
0331 #define SLG51000_INPUT_SEL_SHIFT                0
0332 #define SLG51000_INPUT_SEL_MASK                 (0x3f << 0)
0333 
0334 /* SLG51000_PWRSEQ_RESOURCE_EN_0 ~ SLG51000_PWRSEQ_RESOURCE_EN_5
0335  * 0x1900, 0x1901, 0x1902, 0x1903, 0x1904, 0x1905
0336  */
0337 #define SLG51000_RESOURCE_EN_DOWN0_SHIFT        4
0338 #define SLG51000_RESOURCE_EN_DOWN0_MASK         (0x07 << 4)
0339 #define SLG51000_RESOURCE_EN_UP0_SHIFT          0
0340 #define SLG51000_RESOURCE_EN_UP0_MASK           (0x07 << 0)
0341 
0342 /* SLG51000_PWRSEQ_SLOT_TIME_MIN_UP0 ~ SLG51000_PWRSEQ_SLOT_TIME_MIN_UP5
0343  * 0x1906, 0x1908, 0x190a, 0x190c, 0x190e, 0x1910
0344  */
0345 #define SLG51000_SLOT_TIME_MIN_UP_SHIFT         0
0346 #define SLG51000_SLOT_TIME_MIN_UP_MASK          (0xff << 0)
0347 
0348 /* SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN0 ~ SLG51000_PWRSEQ_SLOT_TIME_MIN_DOWN5
0349  * 0x1907, 0x1909, 0x190b, 0x190d, 0x190f, 0x1911
0350  */
0351 #define SLG51000_SLOT_TIME_MIN_DOWN_SHIFT       0
0352 #define SLG51000_SLOT_TIME_MIN_DOWN_MASK        (0xff << 0)
0353 
0354 /* SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_A ~ SLG51000_PWRSEQ_SLOT_TIME_MAX_CONF_C
0355  * 0x1912, 0x1913, 0x1914
0356  */
0357 #define SLG51000_SLOT_TIME_MAX_DOWN1_SHIFT      6
0358 #define SLG51000_SLOT_TIME_MAX_DOWN1_MASK       (0x03 << 6)
0359 #define SLG51000_SLOT_TIME_MAX_UP1_SHIFT        4
0360 #define SLG51000_SLOT_TIME_MAX_UP1_MASK         (0x03 << 4)
0361 #define SLG51000_SLOT_TIME_MAX_DOWN0_SHIFT      2
0362 #define SLG51000_SLOT_TIME_MAX_DOWN0_MASK       (0x03 << 2)
0363 #define SLG51000_SLOT_TIME_MAX_UP0_SHIFT        0
0364 #define SLG51000_SLOT_TIME_MAX_UP0_MASK         (0x03 << 0)
0365 
0366 /* SLG51000_PWRSEQ_INPUT_SENSE_CONF_A = 0x1915 */
0367 #define SLG51000_TRIG_UP_SENSE_SHIFT            6
0368 #define SLG51000_TRIG_UP_SENSE_MASK             (0x01 << 6)
0369 #define SLG51000_UP_EN_SENSE5_SHIFT             5
0370 #define SLG51000_UP_EN_SENSE5_MASK              (0x01 << 5)
0371 #define SLG51000_UP_EN_SENSE4_SHIFT             4
0372 #define SLG51000_UP_EN_SENSE4_MASK              (0x01 << 4)
0373 #define SLG51000_UP_EN_SENSE3_SHIFT             3
0374 #define SLG51000_UP_EN_SENSE3_MASK              (0x01 << 3)
0375 #define SLG51000_UP_EN_SENSE2_SHIFT             2
0376 #define SLG51000_UP_EN_SENSE2_MASK              (0x01 << 2)
0377 #define SLG51000_UP_EN_SENSE1_SHIFT             1
0378 #define SLG51000_UP_EN_SENSE1_MASK              (0x01 << 1)
0379 #define SLG51000_UP_EN_SENSE0_SHIFT             0
0380 #define SLG51000_UP_EN_SENSE0_MASK              (0x01 << 0)
0381 
0382 /* SLG51000_PWRSEQ_INPUT_SENSE_CONF_B = 0x1916 */
0383 #define SLG51000_CRASH_DETECT_SENSE_SHIFT       7
0384 #define SLG51000_CRASH_DETECT_SENSE_MASK        (0x01 << 7)
0385 #define SLG51000_TRIG_DOWN_SENSE_SHIFT          6
0386 #define SLG51000_TRIG_DOWN_SENSE_MASK           (0x01 << 6)
0387 #define SLG51000_DOWN_EN_SENSE5_SHIFT           5
0388 #define SLG51000_DOWN_EN_SENSE5_MASK            (0x01 << 5)
0389 #define SLG51000_DOWN_EN_SENSE4_SHIFT           4
0390 #define SLG51000_DOWN_EN_SENSE4_MASK            (0x01 << 4)
0391 #define SLG51000_DOWN_EN_SENSE3_SHIFT           3
0392 #define SLG51000_DOWN_EN_SENSE3_MASK            (0x01 << 3)
0393 #define SLG51000_DOWN_EN_SENSE2_SHIFT           2
0394 #define SLG51000_DOWN_EN_SENSE2_MASK            (0x01 << 2)
0395 #define SLG51000_DOWN_EN_SENSE1_SHIFT           1
0396 #define SLG51000_DOWN_EN_SENSE1_MASK            (0x01 << 1)
0397 #define SLG51000_DOWN_EN_SENSE0_SHIFT           0
0398 #define SLG51000_DOWN_EN_SENSE0_MASK            (0x01 << 0)
0399 
0400 /* SLG51000_LDO1_VSEL ~ SLG51000_LDO7_VSEL =
0401  * 0x2000, 0x2200, 0x2300, 0x2500, 0x2700, 0x2900, 0x3100
0402  */
0403 #define SLG51000_VSEL_SHIFT                     0
0404 #define SLG51000_VSEL_MASK                      (0xff << 0)
0405 
0406 /* SLG51000_LDO1_MINV ~ SLG51000_LDO7_MINV =
0407  * 0x2060, 0x2260, 0x2360, 0x2560, 0x2760, 0x2960, 0x3160
0408  */
0409 #define SLG51000_MINV_SHIFT                     0
0410 #define SLG51000_MINV_MASK                      (0xff << 0)
0411 
0412 /* SLG51000_LDO1_MAXV ~ SLG51000_LDO7_MAXV =
0413  * 0x2061, 0x2261, 0x2361, 0x2561, 0x2761, 0x2961, 0x3161
0414  */
0415 #define SLG51000_MAXV_SHIFT                     0
0416 #define SLG51000_MAXV_MASK                      (0xff << 0)
0417 
0418 /* SLG51000_LDO1_MISC1 = 0x2064, SLG51000_LDO2_MISC1 = 0x2264 */
0419 #define SLG51000_SEL_VRANGE_SHIFT               0
0420 #define SLG51000_SEL_VRANGE_MASK                (0x01 << 0)
0421 
0422 /* SLG51000_LDO1_VSEL_ACTUAL ~ SLG51000_LDO7_VSEL_ACTUAL =
0423  * 0x2065, 0x2265, 0x2366, 0x2566, 0x2767, 0x2967, 0x3166
0424  */
0425 #define SLG51000_VSEL_ACTUAL_SHIFT              0
0426 #define SLG51000_VSEL_ACTUAL_MASK               (0xff << 0)
0427 
0428 /* SLG51000_LDO1_EVENT ~ SLG51000_LDO7_EVENT =
0429  * 0x20c0, 0x22c0, 0x23c0, 0x25c0, 0x27c0, 0x29c0, 0x31c0
0430  */
0431 #define SLG51000_EVT_ILIM_FLAG_SHIFT            0
0432 #define SLG51000_EVT_ILIM_FLAG_MASK             (0x01 << 0)
0433 #define SLG51000_EVT_VOUT_OK_FLAG_SHIFT         1
0434 #define SLG51000_EVT_VOUT_OK_FLAG_MASK          (0x01 << 1)
0435 
0436 /* SLG51000_LDO1_STATUS ~ SLG51000_LDO7_STATUS =
0437  * 0x20c1, 0x22c1, 0x23c1, 0x25c1, 0x27c1, 0x29c1, 0x31c1
0438  */
0439 #define SLG51000_STA_ILIM_FLAG_SHIFT            0
0440 #define SLG51000_STA_ILIM_FLAG_MASK             (0x01 << 0)
0441 #define SLG51000_STA_VOUT_OK_FLAG_SHIFT         1
0442 #define SLG51000_STA_VOUT_OK_FLAG_MASK          (0x01 << 1)
0443 
0444 /* SLG51000_LDO1_IRQ_MASK ~ SLG51000_LDO7_IRQ_MASK =
0445  * 0x20c2, 0x22c2, 0x23c2, 0x25c2, 0x27c2, 0x29c2, 0x31c2
0446  */
0447 #define SLG51000_IRQ_ILIM_FLAG_SHIFT            0
0448 #define SLG51000_IRQ_ILIM_FLAG_MASK             (0x01 << 0)
0449 
0450 /* SLG51000_LDO3_CONF1 ~ SLG51000_LDO7_CONF1 =
0451  * 0x2364, 0x2564, 0x2765, 0x2965, 0x3164
0452  */
0453 #define SLG51000_SEL_START_ILIM_SHIFT           0
0454 #define SLG51000_SEL_START_ILIM_MASK            (0x7f << 0)
0455 
0456 /* SLG51000_LDO3_CONF2 ~ SLG51000_LDO7_CONF2 =
0457  * 0x2365, 0x2565, 0x2766, 0x2966, 0x3165
0458  */
0459 #define SLG51000_SEL_FUNC_ILIM_SHIFT            0
0460 #define SLG51000_SEL_FUNC_ILIM_MASK             (0x7f << 0)
0461 
0462 /* SLG51000_LDO5_TRIM2 = 0x2763, SLG51000_LDO6_TRIM2 = 0x2963 */
0463 #define SLG51000_SEL_BYP_SLEW_RATE_SHIFT        2
0464 #define SLG51000_SEL_BYP_SLEW_RATE_MASK         (0x03 << 2)
0465 #define SLG51000_SEL_BYP_VGATE_SHIFT            1
0466 #define SLG51000_SEL_BYP_VGATE_MASK             (0x01 << 1)
0467 #define SLG51000_SEL_BYP_MODE_SHIFT             0
0468 #define SLG51000_SEL_BYP_MODE_MASK              (0x01 << 0)
0469 
0470 /* SLG51000_OTP_EVENT = 0x782b */
0471 #define SLG51000_EVT_CRC_SHIFT                  0
0472 #define SLG51000_EVT_CRC_MASK                   (0x01 << 0)
0473 
0474 /* SLG51000_OTP_IRQ_MASK = 0x782d */
0475 #define SLG51000_IRQ_CRC_SHIFT                  0
0476 #define SLG51000_IRQ_CRC_MASK                   (0x01 << 0)
0477 
0478 /* SLG51000_OTP_LOCK_OTP_PROG = 0x78fe */
0479 #define SLG51000_LOCK_OTP_PROG_SHIFT            0
0480 #define SLG51000_LOCK_OTP_PROG_MASK             (0x01 << 0)
0481 
0482 /* SLG51000_OTP_LOCK_CTRL = 0x78ff */
0483 #define SLG51000_LOCK_DFT_SHIFT                 1
0484 #define SLG51000_LOCK_DFT_MASK                  (0x01 << 1)
0485 #define SLG51000_LOCK_RWT_SHIFT                 0
0486 #define SLG51000_LOCK_RWT_MASK                  (0x01 << 0)
0487 
0488 /* SLG51000_LOCK_GLOBAL_LOCK_CTRL1 = 0x8000 */
0489 #define SLG51000_LDO7_LOCK_SHIFT                7
0490 #define SLG51000_LDO7_LOCK_MASK                 (0x01 << 7)
0491 #define SLG51000_LDO6_LOCK_SHIFT                6
0492 #define SLG51000_LDO6_LOCK_MASK                 (0x01 << 6)
0493 #define SLG51000_LDO5_LOCK_SHIFT                5
0494 #define SLG51000_LDO5_LOCK_MASK                 (0x01 << 5)
0495 #define SLG51000_LDO4_LOCK_SHIFT                4
0496 #define SLG51000_LDO4_LOCK_MASK                 (0x01 << 4)
0497 #define SLG51000_LDO3_LOCK_SHIFT                3
0498 #define SLG51000_LDO3_LOCK_MASK                 (0x01 << 3)
0499 #define SLG51000_LDO2_LOCK_SHIFT                2
0500 #define SLG51000_LDO2_LOCK_MASK                 (0x01 << 2)
0501 #define SLG51000_LDO1_LOCK_SHIFT                1
0502 #define SLG51000_LDO1_LOCK_MASK                 (0x01 << 1)
0503 
0504 #endif /* __SLG51000_REGISTERS_H__ */
0505