regulator: tps6586x: Add support for TPS658624
authorryang <decatf@gmail.com>
Thu, 19 Apr 2018 16:18:50 +0000 (12:18 -0400)
committerMark Brown <broonie@kernel.org>
Fri, 20 Apr 2018 10:44:34 +0000 (11:44 +0100)
This version is exists in the Samsung Galaxy Tab 10.1 which is based on the
Nvidia Tegra 2 board. The TPS658624 has the same SM2 voltage table as
TPS658623.

Signed-off-by: ryang <decatf@gmail.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps6586x-regulator.c
include/linux/mfd/tps6586x.h

index 9e9d22038017a3b54ecdec3c10ad5f705f6ee777..ba3dae7b2d2d5f8a01829e7a9dd7f72ad2dd0fbc 100644 (file)
@@ -342,6 +342,7 @@ static struct tps6586x_regulator *find_regulator_info(int id, int version)
 
        switch (version) {
        case TPS658623:
+       case TPS658624:
                table = tps658623_regulator;
                num = ARRAY_SIZE(tps658623_regulator);
                break;
index 2fe68e48123092f16dd4e97ad89f5bd1f84c8db9..b19c2801a30e770f5dd1056376bbdd9a95151a24 100644 (file)
@@ -18,6 +18,7 @@
 #define TPS658621A     0x15
 #define TPS658621CD    0x2c
 #define TPS658623      0x1b
+#define TPS658624      0x0a
 #define TPS658640      0x01
 #define TPS658640v2    0x02
 #define TPS658643      0x03