1. 31 1月, 2013 1 次提交
  2. 30 1月, 2013 1 次提交
  3. 27 1月, 2013 1 次提交
  4. 08 1月, 2013 1 次提交
    • A
      regulator: max8997: Use uV in voltage_map_desc · bc3b7756
      Axel Lin 提交于
      Current code does integer division (min_vol = min_uV / 1000) before pass
      min_vol to max8997_get_voltage_proper_val().
      So it is possible min_vol is truncated to a smaller value.
      
      For example, if the request min_uV is 800900 for ldo.
      min_vol = 800900 / 1000 = 800 (mV)
      Then max8997_get_voltage_proper_val returns 800 mV for this case which is lower
      than the requested voltage.
      
      Use uV rather than mV in voltage_map_desc to prevent truncation by integer
      division.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@vger.kernel.org
      bc3b7756
  5. 28 12月, 2012 2 次提交
  6. 28 11月, 2012 1 次提交
  7. 25 11月, 2012 2 次提交
  8. 20 11月, 2012 3 次提交
  9. 16 7月, 2012 1 次提交
    • A
      regulator: max8997: Properly handle gpio_request failure · 8fa25eda
      Axel Lin 提交于
      Convert to devm_gpio_request to save a few error handling code.
      
      This patch properly handle the gpio_request failure with -EBUSY, we should
      return error rather than ommit the gpio_request failure with -EBUSY.
      
      I think one of the reason we got -EBUSY is because current code does not free
      gpios in max8997_pmic_remove(). So it got -EBUSY when reload the module.
      
      Yest another reason is in current code if gpio_request() returns -EBUSY,
      the rest of the code still calls gpio_direction_output to config buck125_gpios
      and set gpio value in max8997_set_gpio().  This looks wrong to me.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      8fa25eda
  10. 23 4月, 2012 4 次提交
  11. 17 4月, 2012 3 次提交
  12. 10 4月, 2012 2 次提交
  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. 01 4月, 2012 2 次提交
  15. 12 3月, 2012 1 次提交
  16. 25 1月, 2012 1 次提交
  17. 24 11月, 2011 1 次提交
  18. 01 11月, 2011 1 次提交
  19. 09 7月, 2011 3 次提交
  20. 27 5月, 2011 2 次提交
  21. 27 3月, 2011 1 次提交
  22. 23 3月, 2011 1 次提交
    • M
      regulator: MAX8997/8966 support · bd6ca2cf
      MyungJoo Ham 提交于
      This patch supports PMIC/Regulator part of MAX8997/MAX8966 MFD.
      In this initial release, selecting voltages or current-limit
      and switching on/off the regulators are supported.
      
      Controlling voltages for DVS with GPIOs is not implemented fully
      and requires more considerations: it controls multiple bucks (selection
      of 1, 2, and 5) at the same time with SET1~3 gpios. Thus, when DVS-GPIO
      is activated, we lose the ability to control the voltage of a single
      buck regulator independently; i.e., contolling a buck affects other two
      bucks. Therefore, using the conventional regulator framework directly
      might be problematic. However, in this driver, we try to choose
      a setting without such side effect of affecting other regulators and
      then try to choose a setting with the minimum side effect (the sum of
      voltage changes in other regulators).
      
      On the other hand, controlling all the three bucks simultenously based
      on the voltage set table may help build cpufreq and similar system
      more robust; i.e., all the three voltages are consistent every time
      without glitches during transition.
      Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      bd6ca2cf