@@ -109,7 +109,7 @@ struct twlreg_info {
109109#define SMPS_OFFSET_EN BIT(0)
110110#define SMPS_EXTENDED_EN BIT(1)
111111
112- /* twl6025 SMPS EPROM values */
112+ /* twl6032 SMPS EPROM values */
113113#define TWL6030_SMPS_OFFSET 0xB0
114114#define TWL6030_SMPS_MULT 0xB3
115115#define SMPS_MULTOFFSET_SMPS4 BIT(0)
@@ -173,7 +173,7 @@ static int twl6030reg_is_enabled(struct regulator_dev *rdev)
173173 struct twlreg_info * info = rdev_get_drvdata (rdev );
174174 int grp = 0 , val ;
175175
176- if (!(twl_class_is_6030 () && (info -> features & TWL6025_SUBCLASS ))) {
176+ if (!(twl_class_is_6030 () && (info -> features & TWL6032_SUBCLASS ))) {
177177 grp = twlreg_grp (rdev );
178178 if (grp < 0 )
179179 return grp ;
@@ -211,7 +211,7 @@ static int twl6030reg_enable(struct regulator_dev *rdev)
211211 int grp = 0 ;
212212 int ret ;
213213
214- if (!(twl_class_is_6030 () && (info -> features & TWL6025_SUBCLASS )))
214+ if (!(twl_class_is_6030 () && (info -> features & TWL6032_SUBCLASS )))
215215 grp = twlreg_grp (rdev );
216216 if (grp < 0 )
217217 return grp ;
@@ -245,7 +245,7 @@ static int twl6030reg_disable(struct regulator_dev *rdev)
245245 int grp = 0 ;
246246 int ret ;
247247
248- if (!(twl_class_is_6030 () && (info -> features & TWL6025_SUBCLASS )))
248+ if (!(twl_class_is_6030 () && (info -> features & TWL6032_SUBCLASS )))
249249 grp = P1_GRP_6030 | P2_GRP_6030 | P3_GRP_6030 ;
250250
251251 /* For 6030, set the off state for all grps enabled */
@@ -339,7 +339,7 @@ static int twl6030reg_set_mode(struct regulator_dev *rdev, unsigned mode)
339339 int grp = 0 ;
340340 int val ;
341341
342- if (!(twl_class_is_6030 () && (info -> features & TWL6025_SUBCLASS )))
342+ if (!(twl_class_is_6030 () && (info -> features & TWL6032_SUBCLASS )))
343343 grp = twlreg_grp (rdev );
344344
345345 if (grp < 0 )
@@ -899,14 +899,14 @@ static const struct twlreg_info TWL6030_INFO_##label = { \
899899 }, \
900900 }
901901
902- #define TWL6025_ADJUSTABLE_LDO (label , offset , min_mVolts , max_mVolts ) \
903- static const struct twlreg_info TWL6025_INFO_ ##label = { \
902+ #define TWL6032_ADJUSTABLE_LDO (label , offset , min_mVolts , max_mVolts ) \
903+ static const struct twlreg_info TWL6032_INFO_ ##label = { \
904904 .base = offset, \
905905 .min_mV = min_mVolts, \
906906 .max_mV = max_mVolts, \
907907 .desc = { \
908908 .name = #label, \
909- .id = TWL6025_REG_ ##label, \
909+ .id = TWL6032_REG_ ##label, \
910910 .n_voltages = 32, \
911911 .ops = &twl6030ldo_ops, \
912912 .type = REGULATOR_VOLTAGE, \
@@ -933,14 +933,14 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
933933 }, \
934934 }
935935
936- #define TWL6025_ADJUSTABLE_SMPS (label , offset ) \
936+ #define TWL6032_ADJUSTABLE_SMPS (label , offset ) \
937937static const struct twlreg_info TWLSMPS_INFO_##label = { \
938938 .base = offset, \
939939 .min_mV = 600, \
940940 .max_mV = 2100, \
941941 .desc = { \
942942 .name = #label, \
943- .id = TWL6025_REG_ ##label, \
943+ .id = TWL6032_REG_ ##label, \
944944 .n_voltages = 63, \
945945 .ops = &twlsmps_ops, \
946946 .type = REGULATOR_VOLTAGE, \
@@ -981,15 +981,15 @@ TWL6030_ADJUSTABLE_LDO(VMMC, 0x68, 1000, 3300);
981981TWL6030_ADJUSTABLE_LDO (VPP , 0x6c , 1000 , 3300 );
982982TWL6030_ADJUSTABLE_LDO (VUSIM , 0x74 , 1000 , 3300 );
983983/* 6025 are renamed compared to 6030 versions */
984- TWL6025_ADJUSTABLE_LDO (LDO2 , 0x54 , 1000 , 3300 );
985- TWL6025_ADJUSTABLE_LDO (LDO4 , 0x58 , 1000 , 3300 );
986- TWL6025_ADJUSTABLE_LDO (LDO3 , 0x5c , 1000 , 3300 );
987- TWL6025_ADJUSTABLE_LDO (LDO5 , 0x68 , 1000 , 3300 );
988- TWL6025_ADJUSTABLE_LDO (LDO1 , 0x6c , 1000 , 3300 );
989- TWL6025_ADJUSTABLE_LDO (LDO7 , 0x74 , 1000 , 3300 );
990- TWL6025_ADJUSTABLE_LDO (LDO6 , 0x60 , 1000 , 3300 );
991- TWL6025_ADJUSTABLE_LDO (LDOLN , 0x64 , 1000 , 3300 );
992- TWL6025_ADJUSTABLE_LDO (LDOUSB , 0x70 , 1000 , 3300 );
984+ TWL6032_ADJUSTABLE_LDO (LDO2 , 0x54 , 1000 , 3300 );
985+ TWL6032_ADJUSTABLE_LDO (LDO4 , 0x58 , 1000 , 3300 );
986+ TWL6032_ADJUSTABLE_LDO (LDO3 , 0x5c , 1000 , 3300 );
987+ TWL6032_ADJUSTABLE_LDO (LDO5 , 0x68 , 1000 , 3300 );
988+ TWL6032_ADJUSTABLE_LDO (LDO1 , 0x6c , 1000 , 3300 );
989+ TWL6032_ADJUSTABLE_LDO (LDO7 , 0x74 , 1000 , 3300 );
990+ TWL6032_ADJUSTABLE_LDO (LDO6 , 0x60 , 1000 , 3300 );
991+ TWL6032_ADJUSTABLE_LDO (LDOLN , 0x64 , 1000 , 3300 );
992+ TWL6032_ADJUSTABLE_LDO (LDOUSB , 0x70 , 1000 , 3300 );
993993TWL4030_FIXED_LDO (VINTANA1 , 0x3f , 1500 , 11 , 100 , 0x08 );
994994TWL4030_FIXED_LDO (VINTDIG , 0x47 , 1500 , 13 , 100 , 0x08 );
995995TWL4030_FIXED_LDO (VUSB1V5 , 0x71 , 1500 , 17 , 100 , 0x08 );
@@ -1001,9 +1001,9 @@ TWL6030_FIXED_LDO(VDAC, 0x64, 1800, 0);
10011001TWL6030_FIXED_LDO (VUSB , 0x70 , 3300 , 0 );
10021002TWL6030_FIXED_LDO (V1V8 , 0x16 , 1800 , 0 );
10031003TWL6030_FIXED_LDO (V2V1 , 0x1c , 2100 , 0 );
1004- TWL6025_ADJUSTABLE_SMPS (SMPS3 , 0x34 );
1005- TWL6025_ADJUSTABLE_SMPS (SMPS4 , 0x10 );
1006- TWL6025_ADJUSTABLE_SMPS (VIO , 0x16 );
1004+ TWL6032_ADJUSTABLE_SMPS (SMPS3 , 0x34 );
1005+ TWL6032_ADJUSTABLE_SMPS (SMPS4 , 0x10 );
1006+ TWL6032_ADJUSTABLE_SMPS (VIO , 0x16 );
10071007
10081008static u8 twl_get_smps_offset (void )
10091009{
@@ -1031,7 +1031,7 @@ static u8 twl_get_smps_mult(void)
10311031
10321032#define TWL4030_OF_MATCH (comp , label ) TWL_OF_MATCH(comp, TWL4030, label)
10331033#define TWL6030_OF_MATCH (comp , label ) TWL_OF_MATCH(comp, TWL6030, label)
1034- #define TWL6025_OF_MATCH (comp , label ) TWL_OF_MATCH(comp, TWL6025 , label)
1034+ #define TWL6032_OF_MATCH (comp , label ) TWL_OF_MATCH(comp, TWL6032 , label)
10351035#define TWLFIXED_OF_MATCH (comp , label ) TWL_OF_MATCH(comp, TWLFIXED, label)
10361036#define TWLSMPS_OF_MATCH (comp , label ) TWL_OF_MATCH(comp, TWLSMPS, label)
10371037
@@ -1060,15 +1060,15 @@ static const struct of_device_id twl_of_match[] = {
10601060 TWL6030_OF_MATCH ("ti,twl6030-vmmc" , VMMC ),
10611061 TWL6030_OF_MATCH ("ti,twl6030-vpp" , VPP ),
10621062 TWL6030_OF_MATCH ("ti,twl6030-vusim" , VUSIM ),
1063- TWL6025_OF_MATCH ("ti,twl6025 -ldo2" , LDO2 ),
1064- TWL6025_OF_MATCH ("ti,twl6025 -ldo4" , LDO4 ),
1065- TWL6025_OF_MATCH ("ti,twl6025 -ldo3" , LDO3 ),
1066- TWL6025_OF_MATCH ("ti,twl6025 -ldo5" , LDO5 ),
1067- TWL6025_OF_MATCH ("ti,twl6025 -ldo1" , LDO1 ),
1068- TWL6025_OF_MATCH ("ti,twl6025 -ldo7" , LDO7 ),
1069- TWL6025_OF_MATCH ("ti,twl6025 -ldo6" , LDO6 ),
1070- TWL6025_OF_MATCH ("ti,twl6025 -ldoln" , LDOLN ),
1071- TWL6025_OF_MATCH ("ti,twl6025 -ldousb" , LDOUSB ),
1063+ TWL6032_OF_MATCH ("ti,twl6032 -ldo2" , LDO2 ),
1064+ TWL6032_OF_MATCH ("ti,twl6032 -ldo4" , LDO4 ),
1065+ TWL6032_OF_MATCH ("ti,twl6032 -ldo3" , LDO3 ),
1066+ TWL6032_OF_MATCH ("ti,twl6032 -ldo5" , LDO5 ),
1067+ TWL6032_OF_MATCH ("ti,twl6032 -ldo1" , LDO1 ),
1068+ TWL6032_OF_MATCH ("ti,twl6032 -ldo7" , LDO7 ),
1069+ TWL6032_OF_MATCH ("ti,twl6032 -ldo6" , LDO6 ),
1070+ TWL6032_OF_MATCH ("ti,twl6032 -ldoln" , LDOLN ),
1071+ TWL6032_OF_MATCH ("ti,twl6032 -ldousb" , LDOUSB ),
10721072 TWLFIXED_OF_MATCH ("ti,twl4030-vintana1" , VINTANA1 ),
10731073 TWLFIXED_OF_MATCH ("ti,twl4030-vintdig" , VINTDIG ),
10741074 TWLFIXED_OF_MATCH ("ti,twl4030-vusb1v5" , VUSB1V5 ),
@@ -1080,9 +1080,9 @@ static const struct of_device_id twl_of_match[] = {
10801080 TWLFIXED_OF_MATCH ("ti,twl6030-vusb" , VUSB ),
10811081 TWLFIXED_OF_MATCH ("ti,twl6030-v1v8" , V1V8 ),
10821082 TWLFIXED_OF_MATCH ("ti,twl6030-v2v1" , V2V1 ),
1083- TWLSMPS_OF_MATCH ("ti,twl6025 -smps3" , SMPS3 ),
1084- TWLSMPS_OF_MATCH ("ti,twl6025 -smps4" , SMPS4 ),
1085- TWLSMPS_OF_MATCH ("ti,twl6025 -vio" , VIO ),
1083+ TWLSMPS_OF_MATCH ("ti,twl6032 -smps3" , SMPS3 ),
1084+ TWLSMPS_OF_MATCH ("ti,twl6032 -smps4" , SMPS4 ),
1085+ TWLSMPS_OF_MATCH ("ti,twl6032 -vio" , VIO ),
10861086 {},
10871087};
10881088MODULE_DEVICE_TABLE (of , twl_of_match );
@@ -1163,19 +1163,19 @@ static int twlreg_probe(struct platform_device *pdev)
11631163 }
11641164
11651165 switch (id ) {
1166- case TWL6025_REG_SMPS3 :
1166+ case TWL6032_REG_SMPS3 :
11671167 if (twl_get_smps_mult () & SMPS_MULTOFFSET_SMPS3 )
11681168 info -> flags |= SMPS_EXTENDED_EN ;
11691169 if (twl_get_smps_offset () & SMPS_MULTOFFSET_SMPS3 )
11701170 info -> flags |= SMPS_OFFSET_EN ;
11711171 break ;
1172- case TWL6025_REG_SMPS4 :
1172+ case TWL6032_REG_SMPS4 :
11731173 if (twl_get_smps_mult () & SMPS_MULTOFFSET_SMPS4 )
11741174 info -> flags |= SMPS_EXTENDED_EN ;
11751175 if (twl_get_smps_offset () & SMPS_MULTOFFSET_SMPS4 )
11761176 info -> flags |= SMPS_OFFSET_EN ;
11771177 break ;
1178- case TWL6025_REG_VIO :
1178+ case TWL6032_REG_VIO :
11791179 if (twl_get_smps_mult () & SMPS_MULTOFFSET_VIO )
11801180 info -> flags |= SMPS_EXTENDED_EN ;
11811181 if (twl_get_smps_offset () & SMPS_MULTOFFSET_VIO )
0 commit comments