1. 07 5月, 2014 1 次提交
    • T
      ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode · 3b8c4ebb
      Tony Lindgren 提交于
      While debugging legacy mode vs device tree booted PM regressions,
      I noticed that omap3 is not toggling sys_clkreq and sys_off_mode
      pins like it should.
      
      The sys_clkreq and sys_off_mode pins are not toggling because of
      the following issues:
      
      1. The default polarity for the sys_off_mode pin is wrong.
         OFFMODE_POL needs to be cleared for sys_off_mode to go down when
         hitting off-idle, while CLKREQ_POL needs to be set so sys_clkreq
         goes down when hitting retention.
      
      2. The values for voltctrl register need to be updated dynamically.
         We need to set either the retention idle bits, or off idle bits
         in the voltctrl register depending the idle mode we're targeting
         to hit.
      
      Let's fix these two issues as otherwise the system will just
      hang if any twl4030 PMIC idle scripts are loaded. The only case
      where the system does not hang is if only retention idle over I2C4
      is configured by the bootloader.
      
      Note that even without the twl4030 PMIC scripts, these fixes will
      do the proper signaling of sys_clkreq and sys_off_mode pins, so
      the fixes are needed to fix monitoring of PM states with LEDs or
      an oscilloscope.
      
      Cc: Kevin Hilman <khilman@linaro.org>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Tero Kristo <t-kristo@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      3b8c4ebb
  2. 22 7月, 2013 1 次提交
  3. 13 11月, 2012 1 次提交
  4. 21 10月, 2012 2 次提交
    • P
      ARM: OMAP2+: PRM: create PRM reset source API for the watchdog timer driver · 2bb2a5d3
      Paul Walmsley 提交于
      The OMAP watchdog timer driver needs to determine what caused the SoC
      to reset for its GETBOOTSTATUS ioctl.  So, define a set of standard
      reset sources across OMAP SoCs.  For OMAP2xxx, 3xxx, and 4xxx SoCs,
      define mappings from the SoC-specific reset source register bits to
      the standardized reset source IDs.  Create SoC-specific PRM functions
      that read the appropriate per-SoC register and use the mapping to
      return the standardized reset bits.  Register the SoC-specific PRM
      functions with the common PRM code via prm_register().  Create a
      function in the common PRM code, prm_read_reset_sources(), that
      calls the SoC-specific function, registered during boot.
      
      This patch does not yet handle some SoCs, such as AM33xx.  Those SoCs
      were not handled by the code this will replace.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      2bb2a5d3
    • P
      ARM: OMAP2+: PRM: split PRM functions into OMAP2, OMAP3-specific files · 139563ad
      Paul Walmsley 提交于
      Move OMAP3xxx-specific PRM functions & macros into prm3xxx.[ch] and
      OMAP2xxx-specific macros into prm2xxx.h.  (prm2xxx.c will be created
      by a subsequent patch when it's needed.)  Move basic PRM register
      access functions into static inline functions in prm2xxx_3xxx.h, leaving
      only OMAP2/3 hardreset functions in prm2xxx_3xxx.c.
      
      Also clarify the initcall function naming to reinforce that this code
      is specifically for the PRM IP block.
      
      This is in preparation for the upcoming powerdomain series and the
      upcoming move of this code to drivers/.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Reviewed-by: NRuss Dill <Russ.Dill@ti.com>
      Acked-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      139563ad
  5. 22 12月, 2010 1 次提交
  6. 10 11月, 2010 1 次提交
  7. 30 9月, 2010 1 次提交
  8. 21 5月, 2010 1 次提交
    • P
      OMAP3 PRCM: convert OMAP3 PRCM macros to the _SHIFT/_MASK suffixes · 2bc4ef71
      Paul Walmsley 提交于
      Fix all of the remaining OMAP3 PRCM register shift/bitmask macros that
      did not use the _SHIFT/_MASK suffixes to use them.  This makes the use
      of these macros consistent.  It is intended to reduce error, as code
      can be inspected visually by reviewers to ensure that bitshifts and
      bitmasks are used in the appropriate places.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Kevin Hilman <khilman@deeprootsystems.com>
      2bc4ef71
  9. 12 11月, 2009 1 次提交
  10. 16 5月, 2009 1 次提交
  11. 09 2月, 2009 1 次提交
  12. 19 8月, 2008 1 次提交
  13. 15 4月, 2008 1 次提交