1. 29 12月, 2011 1 次提交
  2. 30 11月, 2011 1 次提交
  3. 28 11月, 2011 1 次提交
  4. 24 11月, 2011 2 次提交
    • R
      regulator: map consumer regulator based on device tree · 69511a45
      Rajendra Nayak 提交于
      Device nodes in DT can associate themselves with one or more
      regulators/supply by providing a list of phandles (to regulator nodes)
      and corresponding supply names.
      
      For Example:
      	devicenode: node@0x0 {
      		...
      		...
      		vmmc-supply = <&regulator1>;
      		vpll-supply = <&regulator2>;
      	};
      
      The driver would then do a regulator_get(dev, "vmmc"); to get
      regulator1 and do a regulator_get(dev, "vpll"); to get
      regulator2.
      
      of_get_regulator() extracts the regulator node for a given
      device, based on the supply name.
      
      Use it to look up the regulator for a given consumer from device tree, during
      a regulator_get(). If not found fallback and lookup through
      the regulator_map_list instead.
      
      Also, since the regulator dt nodes can use the same binding to
      associate with a parent regulator/supply, allow the drivers to
      specify a supply_name, which can then be used to lookup dt
      to find the parent phandle.
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      Acked-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      69511a45
    • R
      regulator: pass additional of_node to regulator_register() · 2c043bcb
      Rajendra Nayak 提交于
      With device tree support for regulators, its needed that the
      regulator_dev->dev device has the right of_node attached.
      To be able to do this add an additional parameter to the
      regulator_register() api, wherein the dt-adapted driver can
      then pass this additional info onto the regulator core.
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      2c043bcb
  5. 23 11月, 2011 1 次提交
  6. 01 11月, 2011 1 次提交
  7. 15 10月, 2011 1 次提交
  8. 04 10月, 2011 1 次提交
  9. 14 9月, 2011 1 次提交
    • M
      regulator: Implement deferred disable support · da07ecd9
      Mark Brown 提交于
      It is a reasonably common pattern for hardware to require some delay after
      being quiesced before the disable has finalised, especially in mixed signal
      devices. For example, an active discharge may be required to ensure that
      the circuit starts up again in a known state. Avoid having to implement
      such delays in the regulator API by providing regulator_deferred_disable()
      which will do a regulator_disable() a specified number of milliseconds
      after it is called.
      
      Due to the reference counting done on regulators a deferred disable can
      be cancelled by doing another regulator_enable().
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      da07ecd9
  10. 29 8月, 2011 1 次提交
  11. 22 7月, 2011 3 次提交
  12. 05 7月, 2011 1 次提交
  13. 10 6月, 2011 4 次提交
  14. 30 5月, 2011 1 次提交
    • M
      regulator: Do bulk enables of regulators in parallel · f21e0e81
      Mark Brown 提交于
      In order to reduce the impact of ramp times rather than enabling the
      regulators for a device in series use async tasks to run the actual
      enables. This means that the delays which the enables implement can all
      run in parallel, though it does mean that the order in which the
      supplies come on may be unstable.
      
      For super bonus fun points if any of the regulators are shared between
      multiple supplies on the same device (as is rather likely) then this
      will test our locking.  Note that in this case we only delay once for
      each physical regulator so the threads shouldn't block each other while
      delaying.
      
      It'd be even nicer if we could coalesce writes to a shared enable registers
      in PMICs but that's definitely future work, and it may also be useful
      and is certainly more achievable to optimise out the parallelism if none
      of the regulators implement ramp delays.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      f21e0e81
  15. 27 5月, 2011 8 次提交
  16. 31 3月, 2011 1 次提交
  17. 26 3月, 2011 4 次提交
  18. 12 1月, 2011 7 次提交