1. 22 9月, 2009 1 次提交
    • 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
  2. 31 3月, 2009 3 次提交
  3. 09 1月, 2009 1 次提交
  4. 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