1. 09 8月, 2013 1 次提交
  2. 07 8月, 2013 1 次提交
  3. 25 7月, 2013 1 次提交
  4. 18 7月, 2013 3 次提交
  5. 15 7月, 2013 2 次提交
  6. 07 6月, 2013 1 次提交
  7. 21 5月, 2013 1 次提交
  8. 02 5月, 2013 1 次提交
  9. 18 4月, 2013 1 次提交
  10. 17 4月, 2013 1 次提交
  11. 05 4月, 2013 1 次提交
  12. 25 3月, 2013 1 次提交
  13. 05 3月, 2013 1 次提交
  14. 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: manage enable GPIO list · 967cfb18
      Kim, Milo 提交于
       To support shared enable GPIO pin, replace GPIO code with new static functions
      
       Reference count: 'enable_count'
         Balance the reference count of each GPIO and actual pin control.
         The count is incremented with enabling GPIO.
         On the other hand, it is decremented on disabling GPIO.
         Actual GPIO pin is enabled at the initial use.(enable_count = 0)
         The pin is disabled if it is not used(shared) any more. (enable_count <=1)
         Regardless of the enable count, update GPIO state of the regulator.
      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>
      967cfb18
    • 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
  15. 01 3月, 2013 2 次提交
  16. 15 2月, 2013 1 次提交
    • R
      regulator: Fix memory garbage dev_err printout. · 9c7b4e8a
      Russ Dill 提交于
      commit dd8004af: 'regulator: core: Log when a device causes a voltage
      constraint fail', tried to print out some information about the
      check consumer min/max uV fixup, however, it uses a garbage pointer
      left over from list_for_each_entry leading to boot messages in the
      form:
      
      '[    2.079890] <RANDOM ASCII>: Restricting voltage, 3735899821-4294967295uV'
      
      Because it references regulator->dev, it could potentially read memory from
      anywhere causing a panic.
      
      This patch instead uses rdev and the updated min/max uV values.
      Signed-off-by: NRuss Dill <Russ.Dill@ti.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      9c7b4e8a
  17. 08 2月, 2013 1 次提交
  18. 05 2月, 2013 1 次提交
  19. 03 1月, 2013 1 次提交
  20. 25 12月, 2012 2 次提交
  21. 15 12月, 2012 1 次提交
  22. 11 12月, 2012 1 次提交
  23. 06 12月, 2012 1 次提交
  24. 29 11月, 2012 2 次提交
  25. 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
  26. 15 11月, 2012 1 次提交
  27. 14 11月, 2012 1 次提交
  28. 29 10月, 2012 1 次提交
  29. 15 10月, 2012 1 次提交
  30. 10 9月, 2012 2 次提交
  31. 08 9月, 2012 1 次提交