1. 24 11月, 2011 3 次提交
  2. 01 11月, 2011 2 次提交
  3. 24 10月, 2011 2 次提交
  4. 15 10月, 2011 1 次提交
  5. 12 10月, 2011 1 次提交
  6. 11 10月, 2011 1 次提交
  7. 09 10月, 2011 2 次提交
    • H
      regulator: Add driver for gpio-controlled regulators · 3f0292ae
      Heiko Stübner 提交于
      This patch adds support for regulators that can be controlled via gpios.
      
      Examples for such regulators are the TI-tps65024x voltage regulators
      with 4 fixed and 1 runtime-switchable voltage regulators
      or the TI-bq240XX charger regulators.
      
      The number of controlling gpios is not limited, the mapping between
      voltage/current and target gpio state is done via the states map
      and the driver can be used for either voltage or current regulators.
      
      A mapping for a regulator with two GPIOs could look like:
      
      gpios = {
      	{ .gpio = GPIO1, .flags = GPIOF_OUT_INIT_HIGH, .label = "gpio name 1" },
      	{ .gpio = GPIO2, .flags = GPIOF_OUT_INIT_LOW,  .label = "gpio name 2" },
      }
      
      The flags element of the gpios array determines the initial state of
      the gpio, set during probe. The initial state of the regulator is also
      calculated from these values
      
      states = {
      	{ .value = volt_or_cur1, .gpios = (0 << 1) | (0 << 0) },
      	{ .value = volt_or_cur2, .gpios = (0 << 1) | (1 << 0) },
      	{ .value = volt_or_cur3, .gpios = (1 << 1) | (0 << 0) },
      	{ .value = volt_or_cur4, .gpios = (1 << 1) | (1 << 0) },
      }
      
      The target-state for the n-th gpio is determined by the n-th bit
      in the bitfield of the target-value.
      Signed-off-by: NHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      3f0292ae
    • H
      regulator: remove duplicate REG_CTRL2 defines in tps65023 · e3efe666
      H Hartley Sweeten 提交于
      There are two sets of defines for the REG_CTRL2 bitfields and one
      of them has TPS65023_REG_CTRL2_DCDC1 defined incorrectly. Remove
      the duplicates and leave the correct one for TPS65023_REG_CTRL2_DCDC1.
      
      This fixes the following sparse warnings:
      
      drivers/regulator/tps65023-regulator.c:77:9: warning: preprocessor token TPS65023_REG_CTRL2_DCDC1 redefined
      drivers/regulator/tps65023-regulator.c:70:9: this was the original definition
      Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      e3efe666
  8. 07 10月, 2011 1 次提交
  9. 04 10月, 2011 1 次提交
  10. 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
  11. 29 8月, 2011 6 次提交
  12. 09 8月, 2011 7 次提交
  13. 01 8月, 2011 3 次提交
  14. 28 7月, 2011 6 次提交
  15. 23 7月, 2011 1 次提交
  16. 22 7月, 2011 2 次提交