regulator: ab8500: Clean out SoC registers
[firefly-linux-kernel-4.4.55.git] / include / linux / regulator / ab8500.h
index 7bd73bbdfd1bce8cbbb22a512ae221dd1eee700f..26792ff360be7c722e7bcdad8c4ffa8d84d34314 100644 (file)
@@ -48,13 +48,15 @@ enum ab9540_regulator_id {
 /* AB8500 and AB9540 register initialization */
 struct ab8500_regulator_reg_init {
        int id;
+       u8 mask;
        u8 value;
 };
 
-#define INIT_REGULATOR_REGISTER(_id, _value)   \
-       {                                       \
-               .id = _id,                      \
-               .value = _value,                \
+#define INIT_REGULATOR_REGISTER(_id, _mask, _value)    \
+       {                                               \
+               .id = _id,                              \
+               .mask = _mask,                          \
+               .value = _value,                        \
        }
 
 /* AB8500 registers */
@@ -86,7 +88,6 @@ enum ab8500_regulator_reg {
        AB8500_REGUCTRL2SPARE,
        AB8500_REGUCTRLDISCH,
        AB8500_REGUCTRLDISCH2,
-       AB8500_VSMPS1SEL1,
        AB8500_NUM_REGULATOR_REGISTERS,
 };
 
@@ -139,4 +140,11 @@ enum ab9540_regulator_reg {
        AB9540_NUM_REGULATOR_REGISTERS,
 };
 
+struct ab8500_regulator_platform_data {
+       int num_reg_init;
+       struct ab8500_regulator_reg_init *reg_init;
+       int num_regulator;
+       struct regulator_init_data *regulator;
+};
+
 #endif