1. 03 3月, 2010 1 次提交
    • M
      regulator: Add notifier event on regulator disable · 84b68263
      Mark Brown 提交于
      The intended use case is for drivers which disable regulators to save
      power but need to do some work to restore the hardware state when
      restarting.  If the supplies are not actually disabled due to board
      limits or sharing with other active devices this notifier allows the
      driver to avoid unneeded reinitialisation, particularly when used with
      runtime PM.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      84b68263
  2. 17 12月, 2009 1 次提交
  3. 22 9月, 2009 2 次提交
    • M
      regulator: Add regulator voltage range check API · a7a1ad90
      Mark Brown 提交于
      Simplify checking of support for voltage ranges by providing an API which
      wraps the existing count and list operations.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      a7a1ad90
    • M
      regulator: Add regulator_get_exclusive() API · 5ffbd136
      Mark Brown 提交于
      Some consumers require complete control of the regulator and can't
      tolerate sharing it with other consumers, most commonly because they need
      to have the regulator actually disabled so can't have other consumers
      forcing it on. This new regulator_get_exclusive() API call allows these
      consumers to explicitly request this, documenting the assumptions that
      they are making.
      
      In order to simplify coding of such consumers the use count for regulators
      they request is forced to match the enabled state of the regulator when
      it is requested. This is not possible for consumers which can share
      regulators due to the need to keep track of the ownership of use counts.
      
      A new API call is used rather than an additional argument to the existing
      regulator_get() in order to avoid merge headaches with driver code in
      other trees.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      5ffbd136
  4. 31 3月, 2009 3 次提交
  5. 09 1月, 2009 1 次提交
  6. 30 7月, 2008 1 次提交
    • L
      regulator: consumer device interface · e2ce4eaa
      Liam Girdwood 提交于
      Add support to allow consumer device drivers to control their regulator
      power supply.
      
      This uses a similar API to the kernel clock interface in that consumer
      drivers can get and put a regulator (like they can with clocks atm) and
      get/set voltage, current limit, mode, enable and disable. This should
      allow consumers complete control over their supply voltage and current
      limit. This also compiles out if not in use so drivers can be reused in
      systems with no regulator based power control.
      Signed-off-by: NLiam Girdwood <lg@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      e2ce4eaa