MLK-11465-1: regulator: pfuze100: update voltage setting for SW1A of PF3000
authorRobin Gong <b38343@freescale.com>
Tue, 1 Sep 2015 01:21:58 +0000 (09:21 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:10 +0000 (14:49 -0500)
Regards to the pfuze3000 doc update, regulator driver need to be updated too.
Otherwise the voltage information show wrongly.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit ac1992e3eab0d31195781bb7d1c4ff7ccea1c86a)

drivers/regulator/pfuze100-regulator.c

index aad7a6b..35bc366 100644 (file)
@@ -92,6 +92,13 @@ static const int pfuze100_vsnvs[] = {
        1000000, 1100000, 1200000, 1300000, 1500000, 1800000, 3000000,
 };
 
+static const int pfuze3000_sw1a[] = {
+       700000, 725000, 750000, 775000, 800000, 825000, 850000, 875000,
+       900000, 925000, 950000, 975000, 1000000, 1025000, 1050000, 1075000,
+       1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000,
+       1300000, 1325000, 1350000, 1375000, 1400000, 1425000, 1800000, 3300000,
+};
+
 static const int pfuze3000_sw2lo[] = {
        1500000, 1550000, 1600000, 1650000, 1700000, 1750000, 1800000, 1850000,
 };
@@ -331,7 +338,7 @@ static struct pfuze_regulator pfuze200_regulators[] = {
 };
 
 static struct pfuze_regulator pfuze3000_regulators[] = {
-       PFUZE100_SW_REG(PFUZE3000, SW1A, PFUZE100_SW1ABVOL, 700000, 1475000, 25000),
+       PFUZE100_SWB_REG(PFUZE3000, SW1A, PFUZE100_SW1ABVOL, 0x1f, pfuze3000_sw1a),
        PFUZE100_SW_REG(PFUZE3000, SW1B, PFUZE100_SW1CVOL, 700000, 1475000, 25000),
        PFUZE100_SWB_REG(PFUZE3000, SW2, PFUZE100_SW2VOL, 0x7, pfuze3000_sw2lo),
        PFUZE3000_SW3_REG(PFUZE3000, SW3, PFUZE100_SW3AVOL, 900000, 1650000, 50000),