1. 01 9月, 2013 1 次提交
  2. 30 8月, 2013 7 次提交
  3. 22 8月, 2013 1 次提交
  4. 19 8月, 2013 1 次提交
  5. 15 8月, 2013 1 次提交
  6. 13 8月, 2013 4 次提交
  7. 12 8月, 2013 1 次提交
  8. 09 8月, 2013 1 次提交
  9. 08 8月, 2013 1 次提交
  10. 07 8月, 2013 2 次提交
  11. 03 8月, 2013 1 次提交
  12. 02 8月, 2013 3 次提交
  13. 01 8月, 2013 1 次提交
  14. 31 7月, 2013 1 次提交
    • 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
  15. 30 7月, 2013 2 次提交
  16. 29 7月, 2013 5 次提交
    • A
      regulator: pfuze100: Use regulator_map_voltage_ascend · 2e04cc41
      Axel Lin 提交于
      All table based voltage list have ascendant order.
      Use regulator_map_voltage_ascend for them.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      2e04cc41
    • A
      regulator: pfuze100: Fix module alias prefix · 40839bff
      Axel Lin 提交于
      i2c drivers use "i2c:" prefix for module alias.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      40839bff
    • A
      regulator: pfuze100: Use i2c_[set|get]_clientdata · 8c86ab25
      Axel Lin 提交于
      Since this is a i2c driver, use i2c_[set|get]_clientdata instead of
      dev_[set|get]_drvdata.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      8c86ab25
    • A
      regulator: pfuze100: REGULATOR_PFUZE100 needs to select REGMAP_I2C · 94421b05
      Axel Lin 提交于
      This fixes below build errors:
      
        CC [M]  drivers/regulator/pfuze100-regulator.o
      drivers/regulator/pfuze100-regulator.c:342:21: error: variable 'pfuze_regmap_config' has initializer but incomplete type
      drivers/regulator/pfuze100-regulator.c:343:2: error: unknown field 'reg_bits' specified in initializer
      drivers/regulator/pfuze100-regulator.c:343:2: warning: excess elements in struct initializer [enabled by default]
      drivers/regulator/pfuze100-regulator.c:343:2: warning: (near initialization for 'pfuze_regmap_config') [enabled by default]
      drivers/regulator/pfuze100-regulator.c:344:2: error: unknown field 'val_bits' specified in initializer
      drivers/regulator/pfuze100-regulator.c:344:2: warning: excess elements in struct initializer [enabled by default]
      drivers/regulator/pfuze100-regulator.c:344:2: warning: (near initialization for 'pfuze_regmap_config') [enabled by default]
      drivers/regulator/pfuze100-regulator.c:345:2: error: unknown field 'max_register' specified in initializer
      drivers/regulator/pfuze100-regulator.c:345:2: warning: excess elements in struct initializer [enabled by default]
      drivers/regulator/pfuze100-regulator.c:345:2: warning: (near initialization for 'pfuze_regmap_config') [enabled by default]
      drivers/regulator/pfuze100-regulator.c:346:2: error: unknown field 'cache_type' specified in initializer
      drivers/regulator/pfuze100-regulator.c:346:2: warning: excess elements in struct initializer [enabled by default]
      drivers/regulator/pfuze100-regulator.c:346:2: warning: (near initialization for 'pfuze_regmap_config') [enabled by default]
      drivers/regulator/pfuze100-regulator.c: In function 'pfuze100_regulator_probe':
      drivers/regulator/pfuze100-regulator.c:370:2: error: implicit declaration of function 'devm_regmap_init_i2c' [-Werror=implicit-function-declaration]
      drivers/regulator/pfuze100-regulator.c:370:21: warning: assignment makes pointer from integer without a cast [enabled by default]
      cc1: some warnings being treated as errors
      make[2]: *** [drivers/regulator/pfuze100-regulator.o] Error 1
      make[1]: *** [drivers/regulator] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      94421b05
    • R
      regulator: pfuze100: add MODULE_LICENSE() in pfuze100 driver · 12d20fc2
      Robin Gong 提交于
      Fix building error on x86_64 and i386:
      WARNING: modpost: missing MODULE_LICENSE() in
      drivers/regulator/pfuze100-regulator.o
      Signed-off-by: NRobin Gong <b38343@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      12d20fc2
  17. 28 7月, 2013 1 次提交
    • A
      regulator: da903x: Convert da9034 ldo12 to use linear ranges · 550bf893
      Axel Lin 提交于
      The voltage table of da9034 LDO12 is:
      1700000, 1750000, 1800000, 1850000, 1900000, 1950000, 2000000, 2050000
      2700000, 2750000, 2800000, 2850000, 2900000, 2950000, 3000000, 3050000
      
      The voltage table is composed of two linear ranges:
      for selector 0 ... 7:
              volt = 1700000 + 50000 * selector
      for selector: 8 ... 15:
              volt = 2700000 + 50000 * (selector - 8)
      
      This patch converts da9034 LDO12 to use newly introduced helpers for multiple
      linear ranges.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      550bf893
  18. 27 7月, 2013 1 次提交
  19. 25 7月, 2013 2 次提交
  20. 24 7月, 2013 2 次提交
    • A
      regulator: tps65912: Convert tps65912_ops_ldo to use linear ranges · fba6583b
      Axel Lin 提交于
      The ldo voltage table is composed of linear ranges.
      
      Below is the equation in original code (tps65912_vsel_to_uv_ldo):
      0 ... 32:      uv = vsel * 25000 + 800000;
      33 ... 60:     uv = (vsel - 32) * 50000 + 1600000;
                        = (vsel -33) * 50000 + 1650000;
      61 ...63:      uv = (vsel - 60) * 100000 + 3000000;
                        = (vsel - 61) * 100000 + 3100000;
      
      This patch converts tps65912_ops_ldo to use multiple linear ranges APIs.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      fba6583b
    • A
      regulator: as3711: Convert to use linear ranges · 9234c636
      Axel Lin 提交于
      The SD, ALDO, and DLDO vlotage tables are composed of linear ranges.
      This patch converts as3711 to use newly introduced helpers for multiple
      linear ranges.
      
      Below is the voltage table on datasheet:
      
      SD:
      00h:     DC/DC powered down
      01h-40h: Volt = 0.6V + sdx_vsel * 12.5mV
      41h-70h: Volt = 1.4V + (sdx_vsel - 40h) * 25mV
      71h-7Fh: Volt = 2.6V + (sdx_vsel - 70h) * 50mV
      
      ALDO:
      0h-0Fh:  1.2V + ldox_vsel * 50mV
      10h-1Fh: 1.8V + (ldox_vsel - 10h) * 100mV
      
      DLDO:
      00h-10h: Volt = 0.9V + ldox_vsel * 50mV
      11h-1fh: Do not use
      20h-3fh: Volt = 1.75V + (ldox_vsel - 20h) * 50mV
      
      Note, when convert to use linear ranges APIs, the equation for SD needs below
      adjustment because the linear ranges APIs wiil substract range->min_sel when
      apply the equation.
      
      SD ( the equation to be used with linear ranges APIs )
      01h-40h: Volt = 0.6125V + (sdx_vsel - 1h) * 12.5mV
      41h-70h: Volt = 1.425V + (sdx_vsel - 41h) * 25mV
      71h-7Fh: Volt = 2.650V + (sdx_vsel - 71h) * 50mV
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      9234c636
  21. 20 7月, 2013 1 次提交