1. 09 10月, 2011 1 次提交
    • H
      regulator: Add driver for gpio-controlled regulators · 3f0292ae
      Heiko Stübner 提交于
      This patch adds support for regulators that can be controlled via gpios.
      
      Examples for such regulators are the TI-tps65024x voltage regulators
      with 4 fixed and 1 runtime-switchable voltage regulators
      or the TI-bq240XX charger regulators.
      
      The number of controlling gpios is not limited, the mapping between
      voltage/current and target gpio state is done via the states map
      and the driver can be used for either voltage or current regulators.
      
      A mapping for a regulator with two GPIOs could look like:
      
      gpios = {
      	{ .gpio = GPIO1, .flags = GPIOF_OUT_INIT_HIGH, .label = "gpio name 1" },
      	{ .gpio = GPIO2, .flags = GPIOF_OUT_INIT_LOW,  .label = "gpio name 2" },
      }
      
      The flags element of the gpios array determines the initial state of
      the gpio, set during probe. The initial state of the regulator is also
      calculated from these values
      
      states = {
      	{ .value = volt_or_cur1, .gpios = (0 << 1) | (0 << 0) },
      	{ .value = volt_or_cur2, .gpios = (0 << 1) | (1 << 0) },
      	{ .value = volt_or_cur3, .gpios = (1 << 1) | (0 << 0) },
      	{ .value = volt_or_cur4, .gpios = (1 << 1) | (1 << 0) },
      }
      
      The target-state for the n-th gpio is determined by the n-th bit
      in the bitfield of the target-value.
      Signed-off-by: NHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      3f0292ae
  2. 01 8月, 2011 2 次提交
  3. 27 5月, 2011 1 次提交
  4. 25 5月, 2011 1 次提交
  5. 23 3月, 2011 2 次提交
  6. 12 1月, 2011 3 次提交
  7. 29 10月, 2010 3 次提交
  8. 11 8月, 2010 5 次提交
  9. 08 3月, 2010 1 次提交
  10. 03 3月, 2010 3 次提交
  11. 17 12月, 2009 3 次提交
  12. 14 12月, 2009 1 次提交
  13. 22 9月, 2009 1 次提交
  14. 17 9月, 2009 6 次提交
  15. 15 6月, 2009 3 次提交
  16. 31 3月, 2009 1 次提交
    • D
      regulator: twl4030 regulators · fa16a5c1
      David Brownell 提交于
      Support most of the LDO regulators in the twl4030 family chips.
      In the case of LDOs supporting MMC/SD, the voltage controls are
      used; but in most other cases, the regulator framework is only
      used to enable/disable a supplies, conserving power when a given
      voltage rail is not needed.
      
      The drivers/mfd/twl4030-core.c code already sets up the various
      regulators according to board-specific configuration, and knows
      that some chips don't provide the full set of voltage rails.
      
      The omitted regulators are intended to be under hardware control,
      such as during the hardware-mediated system powerup, powerdown,
      and suspend states.  Unless/until software hooks are known to
      be safe, they won't be exported here.
      
      These regulators implement the new get_status() operation, but
      can't realistically implement get_mode(); the status output is
      effectively the result of a vote, with the relevant hardware
      inputs not exposed.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      fa16a5c1
  17. 11 1月, 2009 1 次提交
  18. 14 10月, 2008 2 次提交