1. 17 12月, 2015 1 次提交
  2. 17 3月, 2015 3 次提交
  3. 20 10月, 2014 1 次提交
  4. 10 9月, 2014 1 次提交
  5. 03 7月, 2014 6 次提交
  6. 24 6月, 2014 1 次提交
  7. 23 6月, 2014 3 次提交
  8. 21 6月, 2014 1 次提交
    • N
      regulator: palmas: Fix SMPS enable/disable/is_enabled · 318dbb02
      Nishanth Menon 提交于
      We use regmap regulator ops to enable/disable and check if regulator
      is enabled for various SMPS. However, these depend on valid
      enable_reg, enable_mask and enable_value in regulator descriptor.
      
      Currently we do not populate these for SMPS other than SMPS10, this
      results in spurious results as regmap assumes that the values are
      valid and ends up reading register 0x0 RTC:SECONDS_REG on Palmas
      variants that do have RTC! To fix this, we update proper parameters
      for the descriptor fields.
      
      Further, we want to ensure the behavior consistent with logic
      prior to commit dbabd624, where, once you do a set_mode,
      enable/disable ensure the logic remains consistent and configures
      Palmas to the configuration that we set with set_mode (since the
      configuration register is common). To do this, we can rely on the
      regulator core's regulator_register behavior where the regulator
      descriptor pointer provided by the regulator driver is stored. (no
      reallocation and copy is done). This lets us update the enable_value
      post registration, to remain consistent with the mode we configure as
      part of set_mode.
      
      Fixes: dbabd624 ("regulator: palmas: Reemove open coded functions with helper functions")
      Reported-by: NAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Tested-by: NAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      318dbb02
  9. 05 6月, 2014 1 次提交
    • N
      regulator: palmas: Fix SMPS list for 0V · 6b7f2d82
      Nishanth Menon 提交于
      get_voltage_sel reads from SMPS register - if the read selector value
      is 0, the SMPS is actually disabled - So, this is in addition to the
      ctrl_register that may also be used to enable/disable the SMPS.
      
      The original logic(prior to commit dbabd624) used to be:
      static int palmas_map_voltage_smps(struct regulator_dev *rdev,
                     int min_uV, int max_uV)
      <snip>
             if (min_uV == 0)
                     return 0;
      
      To handle this scenario, with the transition to regulator_list
      implementation, we seem to have missed the data necessary to mark as
      one of the valid entries as "0" 'disabled regulator' which results in
      0 volts - So, stick with pre-existing logic.
      
      Without this added to the list, palmas regulator driver,
      on probe, attempts to setup constraints and in the case of
      OMAP5uEVM, SMPS9 (which is mapped for 2v1 audio supply) fails in
      regulator_list_voltage_linear_range mapping of '0', and as a fall back
      of constraints not being applied, the entire regulator list is not
      enumerated due to assumption that something system wide has gone bad
      on with the PMIC.
      
      Fixes: dbabd624 ("regulator: palmas: Reemove open coded functions with helper functions")
      Reported-by: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      6b7f2d82
  10. 22 5月, 2014 1 次提交
  11. 08 5月, 2014 1 次提交
  12. 07 10月, 2013 1 次提交
  13. 17 9月, 2013 5 次提交
  14. 10 9月, 2013 1 次提交
  15. 04 9月, 2013 1 次提交
    • L
      regulator: palmas: fix the n_voltages for smps to 122 · 0f45aa84
      Laxman Dewangan 提交于
      With the following change
      ---------
      commit ad02e846
      Author: Axel Lin <axel.lin@ingics.com>
      
          regulator: palmas: Return raw register values as the selectors in [get|set]_voltage_sel
      
          Don't adjust the selector in [get|set]_voltage_sel, fix it in list_voltage() instead.
      
          For smps*(except smps10), the vsel reg-value and voltage mapping as below:
      ----------
      The list_voltage() takes the true value of selector which is
      programmed in the register.  As per smsp voltage table
          reg-value       volt (uV) ( Assume RANGE is x1 )
          0               0
          1               500000
          2               500000
          3               500000
          4               500000
          5               500000
          6               500000 (0.49V + 1 * 0.01V) * RANGE
          7               510000 (0.49V + 2 * 0.01V) * RANGE
          8               520000 (0.49V + 3 * 0.01V) * RANGE
          9               530000 (0.49V + 4 * 0.01V) * RANGE
          ....
          121            1650000 (0.49V + 116 * 0.1) * RANGE
      
      Hence making n_voltages for smps to 122.
      Signed-off-by: NLaxman Dewangan <ldewangan@nvidia.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      0f45aa84
  16. 12 8月, 2013 1 次提交
  17. 30 7月, 2013 1 次提交
  18. 27 6月, 2013 1 次提交
  19. 20 6月, 2013 1 次提交
  20. 30 5月, 2013 2 次提交
  21. 22 4月, 2013 2 次提交
  22. 19 4月, 2013 4 次提交