1. 17 9月, 2013 1 次提交
  2. 30 8月, 2013 1 次提交
  3. 07 8月, 2013 1 次提交
  4. 03 8月, 2013 1 次提交
  5. 31 7月, 2013 2 次提交
    • M
      regulator: core: Provide hints to the core about optional supplies · de1dd9fd
      Mark Brown 提交于
      While the majority of supplies on devices are mandatory and can't be
      physically omitted for electrical reasons some devices do have optional
      supplies and need to know if they are missing, MMC being the most common
      of these.
      
      Currently the core accurately reports all errors when regulators are
      requested since it does not know if the supply is one that must be provided
      even if by a regulator software does not know about or if it is one that
      may genuinely be disconnected. In order to allow this behaviour to be
      changed and stub regulators to be provided in the former case add a new
      regulator request function regulator_get_optional() which provides a hint
      to the core that the regulator may genuinely not be connected.
      
      Currently the implementation is identical to the current behaviour, future
      patches will add support in the core for returning stub regulators in the
      case where normal regulator_get() fails and the board has requested it.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      Acked-by: NChris Ball <cjb@laptop.org>
      de1dd9fd
    • M
      4bdfb272
  6. 25 7月, 2013 1 次提交
  7. 15 7月, 2013 3 次提交
    • Y
      regulator: core: Add support for disabling ramp delay · 1653ccf4
      Yadwinder Singh Brar 提交于
      Some hardwares support disabling ramp delay, so adding ramp_disable flag to
      constraints. It will be used to figure out whether ramp_delay in constraints
      is explicitly set to zero or its unintialized (zero by default).
      And we don't need to call set_voltage_time_sel() for regulators for whom ramp
      delay is disabled in constraints.
      Signed-off-by: NYadwinder Singh Brar <yadi.brar@samsung.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      1653ccf4
    • M
      regulator: core: Add helpers for multiple linear ranges · 94d33c02
      Mark Brown 提交于
      Many regulators have several linear ranges of selector with different
      step sizes, for example offering better resolution at lower voltages.
      Provide regulator_{map,list}_voltage_linear_range() allowing these
      regulators to use generic code. To do so a table of regulator_linear_range
      structs needs to be pointed to from the descriptor.
      
      This was inspired by similar code included in a driver submission from
      Chao Xie and Yi Zhang at Marvell.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      94d33c02
    • M
      regulator: core: Make set_voltage_tol() try for mid-range first · dc9ceed6
      Mark Brown 提交于
      The expected semantic for something expressed as a tolerance is that it
      should deliver the specified value with some deviation allowed but this
      is not what set_voltage_tol() currently does. Instead it just passes
      the maximum possible range to set_voltage() which will typically result
      in a voltage aimed at lower than the target voltage.
      
      Instead first try to set a voltage between the target voltage and the
      upper limit, then fall back on the full range. This will be much more
      robust against physical variation in systems and makes the API behave
      more like users would expect.
      Signed-off-by: NMark Brown <broonie@linaro.org>
      dc9ceed6
  8. 11 6月, 2013 1 次提交
    • L
      regulator: ab8500-ext: Register as a device in its own right · 5a49b4a5
      Lee Jones 提交于
      Some platforms don't support the AB8500 external regulators, so instead
      of having a list of is_<platform>() calls prior to calling
      ab8500_ext_regulator_init() from ab8500_regulator_probe(), we can only
      register as a platform device on platforms which require them. It means
      we also have more control over them when booting with Device Tree.
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: Mark Brown <broonielinaro.org>
      5a49b4a5
  9. 07 6月, 2013 1 次提交
  10. 18 4月, 2013 1 次提交
  11. 12 4月, 2013 1 次提交
  12. 05 4月, 2013 2 次提交
  13. 04 4月, 2013 1 次提交
  14. 03 4月, 2013 1 次提交
  15. 01 4月, 2013 2 次提交
  16. 30 3月, 2013 4 次提交
  17. 28 3月, 2013 1 次提交
  18. 22 3月, 2013 4 次提交
  19. 05 3月, 2013 1 次提交
  20. 04 3月, 2013 3 次提交
    • K
      regulator: core: use regulator_ena_pin member · 7b74d149
      Kim, Milo 提交于
       The regulator_dev has regulator_enable_gpio structure.
       'ena_gpio' and 'ena_gpio_invert' were moved to in regulator_enable_gpio.
      
        regulator_dev   --->   regulator_enable_gpio
        .ena_gpio              .gpio
        .ena_gpio_invert       .ena_gpio_invert
      
        Pointer, 'ena_pin' is used for checking valid enable GPIO pin.
      Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
      Reviewed-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      7b74d149
    • K
      regulator: core: support shared enable GPIO concept · f19b00da
      Kim, Milo 提交于
       A Regulator can be enabled by external GPIO pin.
       This is configurable in the regulator_config.
       At this moment, the GPIO can be owned by only one regulator device.
       In some devices, multiple regulators are enabled by shared one GPIO pin.
       This patch extends this limitation, enabling shared enable GPIO of regulators.
      
       New list for enable GPIO: 'regulator_ena_gpio_list'
         This manages enable GPIO list.
      
       New structure for supporting shared enable GPIO: 'regulator_enable_gpio'
         The enable count is used for balancing GPIO control count.
         This count is incremented when GPIO is enabled.
         On the other hand, it's decremented when GPIO is disabled.
      
       Reference count: 'request_count'
         The reference count, 'request_count' is incremented/decremented on
         requesting/freeing the GPIO. This count makes sure only free the GPIO
         when it has no users.
      
       How it works
         If the GPIO is already used, skip requesting new GPIO usage.
         The GPIO is new one, request GPIO function and add it to the list of
         enable GPIO.
         This list is used for balancing enable GPIO count and pin control.
      
       Updating a GPIO and invert code moved
         'ena_gpio' and 'ena_gpio_invert' of the regulator_config were moved to
          new function, regulator_ena_gpio_request().
          Use regulator_enable_pin structure rather than regulator_dev.
      Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
      Reviewed-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f19b00da
    • M
      regulator: core: Mark all get and enable calls as __must_check · c8801a8e
      Mark Brown 提交于
      It's generally important that devices have power when they expect it so
      drivers really ought to be checking for errors on the power up paths.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      c8801a8e
  21. 01 3月, 2013 1 次提交
    • N
      regulator: core: update kernel documentation for regulator_desc · 5838b032
      Nishanth Menon 提交于
      commit df367931 (regulator: core: Provide regmap get/set bypass
      operations) introduced regulator_[gs]et_bypass_regmap
      
      However structure documentation for regulator_desc needs an update.
      ./scripts/kernel-doc include/linux/regulator/driver.h >/dev/null
      generates:
      Warning(include/linux/regulator/driver.h:233): No description found for parameter 'bypass_reg'
      Warning(include/linux/regulator/driver.h:233): No description found for parameter 'bypass_mask'
      
      Cc: Liam Girdwood <lgirdwood@gmail.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      5838b032
  22. 25 12月, 2012 1 次提交
  23. 06 12月, 2012 1 次提交
  24. 28 11月, 2012 1 次提交
    • A
      regulator: core: Allow specific minimal selector for starting linear mapping · 33234e79
      Axel Lin 提交于
      Some drivers (at least 3 drivers) have such variant of linear mapping that
      the first few selectors are invalid and the reset are linear mapping.
      Let's support this case in core.
      
      This patch adds linear_min_sel in struct regulator_desc,
      so we can allow specific minimal selector for starting linear mapping.
      Then extends regulator_[map|list]_voltage_linear() to support this feature.
      
      Note that for selectors less than min_linear_index, we need count them to
      n_voltages so regulator_list_voltage() won't fail while checking the boundary
      for selector before calling list_voltage callback.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      33234e79
  25. 21 11月, 2012 1 次提交
  26. 19 11月, 2012 1 次提交
  27. 14 11月, 2012 1 次提交