]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
regulator: pfuze100-regulator: add coin support to PF0100
authorAdam Ford <aford173@gmail.com>
Tue, 30 Oct 2018 14:55:07 +0000 (09:55 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 6 Nov 2018 17:27:46 +0000 (17:27 +0000)
The driver currently supports coin cell / super cap charging, so
this patch extends it to support PF0100.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pfuze100-regulator.c
include/linux/regulator/pfuze100.h

index dd41a9bb3f5c62b7b2ef32ce27895e0db1976ecc..df5df1c495adb861322e356d59c091bbf94b342f 100644 (file)
@@ -370,6 +370,7 @@ static struct pfuze_regulator pfuze100_regulators[] = {
        PFUZE100_VGEN_REG(PFUZE100, VGEN4, PFUZE100_VGEN4VOL, 1800000, 3300000, 100000),
        PFUZE100_VGEN_REG(PFUZE100, VGEN5, PFUZE100_VGEN5VOL, 1800000, 3300000, 100000),
        PFUZE100_VGEN_REG(PFUZE100, VGEN6, PFUZE100_VGEN6VOL, 1800000, 3300000, 100000),
+       PFUZE100_COIN_REG(PFUZE100, COIN, PFUZE100_COINVOL, 0x7, pfuze100_coin),
 };
 
 static struct pfuze_regulator pfuze200_regulators[] = {
@@ -436,6 +437,7 @@ static struct of_regulator_match pfuze100_matches[] = {
        { .name = "vgen4",      },
        { .name = "vgen5",      },
        { .name = "vgen6",      },
+       { .name = "coin",       },
 };
 
 /* PFUZE200 */
index cb5aecd40f07d95478141af180d071e43f53af6e..331d7d940c7aadb02a5ae93e4906c55e1ad83294 100644 (file)
@@ -33,7 +33,8 @@
 #define PFUZE100_VGEN4         12
 #define PFUZE100_VGEN5         13
 #define PFUZE100_VGEN6         14
-#define PFUZE100_MAX_REGULATOR 15
+#define PFUZE100_COIN          15
+#define PFUZE100_MAX_REGULATOR 16
 
 #define PFUZE200_SW1AB         0
 #define PFUZE200_SW2           1