1. 09 5月, 2016 1 次提交
  2. 22 6月, 2015 1 次提交
    • T
      mfd: twl4030-power: Fix pmic for boards that need AC charger disabled · 5c188d74
      Tony Lindgren 提交于
      I noticed the PMIC configuration on 37xx-evm won't actually shut down
      the voltages during off-idle. Turns out 37xx-evm needs the AC charger
      state transitions disabled like we are doing for SDP and LDP in the
      legacy booting case.
      
      Let's fix this for device tree based booting by setting up the quirk
      flag based on the compatible flag. And let's also use the existing
      define for STARTON_CHG.
      
      Note that SDP and EVM do not have the PMIC clken wired to gate the
      the oscillator while LDP has.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      5c188d74
  3. 26 3月, 2015 1 次提交
  4. 26 11月, 2014 1 次提交
  5. 10 11月, 2014 1 次提交
  6. 20 10月, 2014 1 次提交
  7. 26 9月, 2014 1 次提交
  8. 28 8月, 2014 1 次提交
    • T
      mfd: twl4030-power: Fix PM idle pin configuration to not conflict with regulators · daebabd5
      Tony Lindgren 提交于
      Commit 43fef47f (mfd: twl4030-power: Add a configuration to turn
      off oscillator during off-idle) added support for configuring the PMIC
      to cut off resources during deeper idle states to save power.
      
      This however caused regression for n900 display power that needed the
      PMIC configuration to be disabled with commit d937678a (ARM: dts:
      Revert enabling of twl configuration for n900).
      
      Turns out the root cause of the problem is that we must use
      TWL4030_RESCONFIG_UNDEF instead of DEV_GRP_NULL to avoid disabling
      regulators that may have been enabled before the init function
      for twl4030-power.c runs. With TWL4030_RESCONFIG_UNDEF we let the
      regulator framework control the regulators like it should. Here we
      need to only configure the sys_clken and sys_off_mode triggers for
      the regulators that cannot be done by the regulator framework as
      it's not running at that point.
      
      This allows us to enable the PMIC configuration for n900.
      
      Fixes: 43fef47f (mfd: twl4030-power: Add a configuration to turn off oscillator during off-idle)
      
      Cc: stable@vger.kernel.org # v3.16
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Tested-by: NAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      daebabd5
  9. 28 5月, 2014 6 次提交
    • T
      mfd: twl4030-power: Add a configuration to turn off oscillator during off-idle · 43fef47f
      Tony Lindgren 提交于
      Some oscillators can be turned off during off-idle saving few
      a little bit power at the cost of the oscillator start up
      latency.
      
      If you board can do this, you can now enable it by using the
      ti,twl4030-power-idle-osc-off compatible flag.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      43fef47f
    • T
      mfd: twl4030-power: Add support for board specific configuration · 482e7db1
      Tony Lindgren 提交于
      With the recommended twl4030 configuration added, we can now add
      board specific changes as modifications to the recommended
      configuration.
      
      Note that the data is private to this driver, and the data must
      always have a NULL resource in the sentinel.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      482e7db1
    • T
      mfd: twl4030-power: Add recommended idle configuration · 76714d2c
      Tony Lindgren 提交于
      These settings are based on the "Recommended Sleep Sequences for
      the Zoom Platform".
      
      The settings assume most of the regulators are under control of
      Linux, and twl4030 only cuts off VDD1 and VDD2 during off-idle as
      Linux cannot do it.
      
      For any board specific changes to these, let's patch them in as
      changes to the generic data in the follow-up patches. This keeps
      the board specific changes small.
      
      Note that this does not consider the twl5030 errata 27 and 28.
      That can be added later on after it has been tested. For more
      information about errata 27 and 28.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      76714d2c
    • T
      mfd: twl4030-power: Add generic reset configuration · e7cd1d1e
      Tony Lindgren 提交于
      The twl4030 PMIC needs to be configured properly for things like
      warm reset and deeper idle states so the PMIC manages the regulators
      properly based on the hardware triggers from the SoC. Earlier
      we have configured twl4030 using platform data, but we want to
      do it for device tree based booting also.
      
      In some cases configuring twl4030 is needed for things to work.
      For example, when rebooting an OMAP3530 at 125 MHz, it hangs.
      With this patch, TWL4030 will be reset when a warm reset occures,
      and OMAP3530 does not hang on reboot.
      
      Let's add device tree support and configure things for warm reset
      as the default when compatible = "ti,twl4030-power". More
      complicated configurations can be added to the driver based on
      other compatible flags.
      
      Note we now also make the pdata const like it should be.
      This allows use it for match->data with the device tree
      related functions.
      
      Based on earlier patch by Matthias Brugger <matthias.bgg@gmail.com>
      and Lesly A M <leslyam@ti.com>.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      e7cd1d1e
    • T
      mfd: twl4030-power: Fix some defines for SW_EVENTS · 32057281
      Tony Lindgren 提交于
      We have these bits partially defined in two different
      places, so let's fix them up and add defines for the
      missing bits. These bits are the same for P1_SW_EVENTS,
      P2_SW_EVENTS and P3_SW_EVENTS.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      32057281
    • T
      mfd: twl4030-power: Fix hang on reboot if sleep configuration was loaded earlier · fc7d76e4
      Tony Lindgren 提交于
      Looks like we can still hit the issue of wrong load order of
      twl4030 configuration. If we have a sleep configuration loaded,
      and do a warm reset, the device can hang while initializing the
      wakeup12 sequence. We do have a warning message about wrong order
      of twl4030 configuration, but in this case it does not help as
      the sleep configuration was loaded during the previous boot and
      the state of twl4030 is maintained throughout the warm reset.
      
      Fix the issue by clearing any existing sleep configuration
      before we load the warm reset configuration.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      fc7d76e4
  10. 01 8月, 2013 1 次提交
    • J
      mfd: twl4030-power: Staticize local functions · fae01582
      Jingoo Han 提交于
      twl4030_power_configure_scripts(), twl4030_power_configure_resources(),
      twl4030_power_probe() are used only in this file.
      
      Fix the following sparse warnings:
      
      drivers/mfd/twl4030-power.c:496:5: warning: symbol 'twl4030_power_configure_scripts' was not declared. Should it be static?
      drivers/mfd/twl4030-power.c:512:5: warning: symbol 'twl4030_power_configure_resources' was not declared. Should it be static?
      drivers/mfd/twl4030-power.c:556:5: warning: symbol 'twl4030_power_probe' was not declared. Should it be static?
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      fae01582
  11. 31 7月, 2013 1 次提交
  12. 19 6月, 2013 5 次提交
  13. 27 1月, 2013 1 次提交
  14. 29 11月, 2012 1 次提交
  15. 21 11月, 2012 1 次提交
  16. 13 2月, 2012 1 次提交
  17. 09 1月, 2012 1 次提交
  18. 27 5月, 2011 3 次提交
  19. 11 5月, 2011 1 次提交
  20. 29 10月, 2010 1 次提交
  21. 08 3月, 2010 2 次提交
  22. 14 12月, 2009 7 次提交