1. 18 6月, 2012 2 次提交
    • A
      regulator: core: Support table based mapping in regulator_set_voltage_time_sel · 398715ab
      Axel Lin 提交于
      For table based mapping, we can calculate voltage difference by below equation:
      abs(rdev->desc->volt_table[new_selector] - rdev->desc->volt_table[old_selector])
      
      Thus we can make regulator_set_voltage_time_sel work for table based mapping.
      
      regulator_set_voltage_time_sel() only supports linear or table based mapping.
      In case it is misused, also warn if neither linear nor table based mapping
      is used with regulator_set_voltage_time_sel().
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      398715ab
    • Y
      regulator: Add ramp_delay configuration to constraints · 6f0b2c69
      Yadwinder Singh Brar 提交于
      For some hardwares ramp_delay for BUCKs is a configurable parameter which can
      be configured through DT or board file.This patch adds ramp_delay to regulator
      constraints and allow user to configure it for regulators which supports this
      feature, through DT or board file. It will provide two ways of setting the
      ramp_delay for a regulator:
      	First, by setting it as constraints in board file(for configurable
      regulators) and set_machine_constraints() will take care of setting it on
      hardware by calling(the provided) .set_ramp_delay() operation(callback).
      	Second, by setting it as data in regulator_desc(as fixed/default
      ramp_delay rate) for a regulator in driver.
      
      regulator_set_voltage_time_sel() will give preference to
      constraints->ramp_delay while reading ramp_delay rate for regulator. Similarly
      users should also take care accordingly while refering ramp_delay rate(in case
      of implementing their private .set_voltage_time_sel() callbacks for different
      regulators).
      
      [Rewrote subject for 80 columns -- broonie]
      Signed-off-by: NYadwinder Singh Brar <yadi.brar@samsung.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      6f0b2c69
  2. 11 6月, 2012 2 次提交
  3. 08 6月, 2012 1 次提交
  4. 03 6月, 2012 4 次提交
  5. 14 5月, 2012 3 次提交
  6. 12 5月, 2012 2 次提交
  7. 10 5月, 2012 1 次提交
  8. 07 5月, 2012 1 次提交
  9. 20 4月, 2012 1 次提交
    • M
      regulator: core: Optimise enable/disable path for always on regulators · 6492bc1b
      Mark Brown 提交于
      If a regulator is always on for any reason then cache that when the
      consumer is created and use it to optimise away the need to take locks
      or recurse up the supply tree when consumers do enable or disable calls.
      The scheduling of asynchronous work for bulk enables is also skipped.
      
      We don't actually check if the device physically supports control on the
      basis that constraints allowing status changes on physically always on
      regulators are nonsensical anyway.
      
      This is a very common pattern in hardware - it's normal to have some
      power supplies that have either no software control or are critical to
      system function - so many systems should be able to benefit.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@ti.com>
      6492bc1b
  10. 17 4月, 2012 4 次提交
  11. 16 4月, 2012 2 次提交
  12. 11 4月, 2012 1 次提交
  13. 09 4月, 2012 1 次提交
    • M
      regulator: core: Use a struct to pass in regulator runtime configuration · c172708d
      Mark Brown 提交于
      Rather than adding new arguments to regulator_register() every time we
      want to add a new bit of dynamic information at runtime change the function
      to take these via a struct. By doing this we avoid needing to do further
      changes like the recent addition of device tree support which required each
      regulator driver to be updated to take an additional parameter.
      
      The regulator_desc which should (mostly) be static data is still passed
      separately as most drivers are able to configure this statically at build
      time.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      c172708d
  14. 05 4月, 2012 1 次提交
  15. 04 4月, 2012 1 次提交
  16. 03 4月, 2012 3 次提交
  17. 30 3月, 2012 1 次提交
  18. 17 3月, 2012 1 次提交
  19. 13 3月, 2012 1 次提交
  20. 24 2月, 2012 1 次提交
  21. 21 2月, 2012 2 次提交
  22. 20 2月, 2012 1 次提交
  23. 19 2月, 2012 1 次提交
  24. 10 2月, 2012 2 次提交