diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-07-14 15:31:49 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:43 -0800 |
commit | 4407a42da2ae91a7526fc49b65e8dd9c3a299a4c (patch) | |
tree | 37734fba5bd29ca7c066de18e1217d26d6b81d85 /include/linux/regulator | |
parent | 2b840bd33f91f709c8c85c96e00daf11f5b4adcb (diff) |
mfd: tps80031: Move rail definition to regulator header
Moving the definitions of regulator rail names into regulator
header from core header.
bug 849977
Original-Change-Id: Ia2e4e9394b6ee013e2e12355038e15609d5077ea
Reviewed-on: http://git-master/r/41023
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Rebase-Id: Rb37a8ce8264396ddb18708596cf7908df2fac3ff
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/tps80031-regulator.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/include/linux/regulator/tps80031-regulator.h b/include/linux/regulator/tps80031-regulator.h index 92787df097ce..fe4e0a553104 100644 --- a/include/linux/regulator/tps80031-regulator.h +++ b/include/linux/regulator/tps80031-regulator.h @@ -26,6 +26,28 @@ #include <linux/regulator/machine.h> +#define tps80031_rails(_name) "tps80031_"#_name + +enum { + TPS80031_ID_VIO, + TPS80031_ID_SMPS1, + TPS80031_ID_SMPS2, + TPS80031_ID_SMPS3, + TPS80031_ID_SMPS4, + TPS80031_ID_VANA, + TPS80031_ID_LDO1, + TPS80031_ID_LDO2, + TPS80031_ID_LDO3, + TPS80031_ID_LDO4, + TPS80031_ID_LDO5, + TPS80031_ID_LDO6, + TPS80031_ID_LDO7, + TPS80031_ID_LDOLN, + TPS80031_ID_LDOUSB, + TPS80031_ID_VBUS, +}; + + enum { /* USBLDO input selection */ USBLDO_INPUT_VSYS = 0x00000001, @@ -52,7 +74,7 @@ enum { * @init_enable: Enable or do not enable the rails during initialization. * @init_apply: Init parameter applied or not. * @flags: Configuration flag to configure the rails. It should be ORed of - * above enums. + * above enums. */ struct tps80031_regulator_platform_data { |