1. 16 3月, 2010 1 次提交
  2. 03 3月, 2010 4 次提交
    • M
      regulator: Provide optional dummy regulator for consumers · 34abbd68
      Mark Brown 提交于
      In order to ease transitions with drivers are boards start using regulators
      provide an option to cause all regulator_get() calls to succeed, with a
      dummy always on regulator being supplied where one has not been configured.
      A warning is printed whenever the dummy regulator is used to aid system
      development.
      
      This regulator does not implement any regulator operations but will allow
      simple consumers which only do enable() and disable() calls to run. It
      is kept separate from the fixed voltage regulator to avoid Kconfig
      confusion on the part of users when it is extended to allow boards to
      explicitly use the dummy regulator to simplify cases where the majority
      of supplies are from fixed regulators without software control.
      
      This option is currently only effective for systems which do not specify
      full constriants. If required an override could also be provided to allow
      these systems to use the dummy regulator, though it is likely that
      unconfigured supplies on such systems will lead to error due to
      regulators being powered down more aggressively when not in use.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      34abbd68
    • M
      regulator: Assume regulators are enabled if they don't report anything · 9a7f6a4c
      Mark Brown 提交于
      If a regulator driver does not provide a way to query if the driver is
      enabled then assume that it is enabled.  This is very likely to reflect
      the actual state is more useful for callers than reporting an error.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      9a7f6a4c
    • M
      regulator: Allow regulators to specify the time taken to ramp on enable · 31aae2be
      Mark Brown 提交于
      Regulators may sometimes take longer to enable than the control operation
      used to do so, either because the regulator has ramp rate control used to
      limit inrush current or because the control operation is very fast (GPIO
      being the most common example of this).  In order to ensure that consumers
      do not rely on the regulator before it is enabled provide an enable_time()
      operation and have the core delay for that time before returning to the
      caller.
      
      This is implemented as a function since the ramp rate may be specified in
      voltage per unit time and therefore the time depend on the configuration.
      In future it would be desirable to allow the bulk operations to run the
      delays for multiple enables in parallel but this is not currently supported.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      31aae2be
    • M
      regulator: Add notifier event on regulator disable · 84b68263
      Mark Brown 提交于
      The intended use case is for drivers which disable regulators to save
      power but need to do some work to restore the hardware state when
      restarting.  If the supplies are not actually disabled due to board
      limits or sharing with other active devices this notifier allows the
      driver to avoid unneeded reinitialisation, particularly when used with
      runtime PM.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      84b68263
  3. 12 2月, 2010 1 次提交
  4. 17 12月, 2009 8 次提交
  5. 16 11月, 2009 1 次提交
  6. 22 9月, 2009 10 次提交
  7. 17 9月, 2009 1 次提交
  8. 29 4月, 2009 4 次提交
  9. 31 3月, 2009 10 次提交