]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/regulator/hi6421-regulator.c
regulator: add driver for hi6421 voltage regulator
authorGuodong Xu <guodong.xu@linaro.org>
Wed, 13 Aug 2014 11:33:42 +0000 (19:33 +0800)
committerMark Brown <broonie@linaro.org>
Sat, 16 Aug 2014 21:58:15 +0000 (16:58 -0500)
commit87ca186f7eb663fc5e52b65452a91fe0fec170a0
treecaeb09468cf072bd94f6a78e58c18f50e065e348
parent871f565055ed232e5751da18a331b73e8254adaf
regulator: add driver for hi6421 voltage regulator

Add driver support for HiSilicon Hi6421 voltage regulators.

Two rules for regulator enabling are defined in hi6421 spec:
1) Between disable and enable of each regulator (LDOs or BUCKs), there must
   be a protection gap. Use @off_on_delay of regulator core to implement this.
2) No two regulators can be enabled at the same time. Use mutex in
   hi6421_regulator_pdata to ensure this. A protection gap of 100us is added
   into each LDO/BUCK's .enable_time.

Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/hi6421-regulator.c [new file with mode: 0644]