1. 17 12月, 2011 2 次提交
    • T
      ARM: OMAP: PRCM: add suspend prepare / finish support · 91285b6f
      Tero Kristo 提交于
      PRCM chain handler needs to disable forwarding of interrupts during
      suspend, because runtime PM is disabled and most of the drivers
      are potentially not able to handle interrupts coming at this time.
      
      This patch masks all the PRCM interrupt events if a PRCM interrupt
      occurs during suspend, but does not ack them. Once suspend finish
      is called, all the masked events will be re-enabled, which causes
      immediate PRCM interrupt and handles the postponed event.
      
      The suspend prepare and complete  callbacks will be called from
      pm34xx.c / pm44xx.c files in the following patches.
      
      The functions defined in this patch should eventually be moved to
      suspend->prepare and suspend->finish driver hooks, once the PRCM
      chain handler will be made as its own driver.
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      Cc: Kevin Hilman <khilman@ti.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Tested-by: NKevin Hilman <khilman@ti.com>
      Reviewed-by: NKevin Hilman <khilman@ti.com>
      [paul@pwsan.com: add kerneldoc, add omap_prcm_irq_setup.saved_mask, add fn
       ptrs for save_and_clear_irqen() and restore_irqen()]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      91285b6f
    • T
      ARM: OMAP: PRCM: add support for chain interrupt handler · 0a84a91c
      Tero Kristo 提交于
      Introduce a chained interrupt handler mechanism for the PRCM
      interrupt, so that individual PRCM event can cleanly be handled by
      handlers in separate drivers. We do this by introducing PRCM event
      names, which are then matched to the particular PRCM interrupt bit
      depending on the specific OMAP SoC being used.
      
      PRCM interrupts have two priority levels, high or normal. High priority
      is needed for IO event handling, so that we can be sure that IO events
      are processed before other events. This reduces latency for IO event
      customers and also prevents incorrect ack sequence on OMAP3.
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Kevin Hilman <khilman@ti.com>
      Cc: Avinash.H.M <avinashhm@ti.com>
      Cc: Benoit Cousson <b-cousson@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Govindraj.R <govindraj.raja@ti.com>
      Tested-by: NKevin Hilman <khilman@ti.com>
      Reviewed-by: NKevin Hilman <khilman@ti.com>
      [paul@pwsan.com: drop some dead code; use SoC-specific pending IRQ
       detection; move code to prm_common.c; add lots of documentation;
       remove saved_mask; add OCP barrier on ISR exit; improved error
       handling; split out per-SoC initialization to a separate patch]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      0a84a91c
  2. 02 3月, 2011 1 次提交
  3. 25 2月, 2011 1 次提交
  4. 22 12月, 2010 2 次提交
  5. 11 12月, 2010 1 次提交
    • P
      OMAP2: PRCM: fix some SHIFT macros that were actually bitmasks · c2015dc8
      Paul Walmsley 提交于
      After Charu's GPIO hwmod patches, GPIO initialization on N800 emits
      the following messages for all GPIO banks:
      
      omap_hwmod: gpio1: cannot be enabled (3)
      
      This is due to OMAP24XX_ST_GPIOS_SHIFT being defined as a bitmask.
      Fix this and also fix two other macros that had the same problem.
      
      Thanks to Tony Lindgren <tony@atomide.com> for originally reporting
      this bug.
      
      Signed-off-by: Paul Walmsley <paul@pwsan.com
      Cc: Charulatha Varadarajan <charu@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      c2015dc8
  6. 30 9月, 2010 2 次提交
  7. 21 5月, 2010 3 次提交
  8. 27 1月, 2010 1 次提交
  9. 12 12月, 2009 2 次提交
  10. 29 5月, 2009 1 次提交
    • K
      OMAP2/3: PM: push core PM code from linux-omap · 8bd22949
      Kevin Hilman 提交于
      This patch is to sync the core linux-omap PM code with mainline.  This
      code has evolved and been used for a while the linux-omap tree, but
      the attempt here is to finally get this into mainline.
      
      Following this will be a series of patches from the 'PM branch' of the
      linux-omap tree to add full PM hardware support from the linux-omap
      tree.
      
      Much of this PM core code was written by Jouni Hogander with
      significant contributions from Paul Walmsley as well as many others
      from Nokia, Texas Instruments and linux-omap community.
      Signed-off-by: NJouni Hogander <jouni.hogander@nokia.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      8bd22949
  11. 09 2月, 2009 1 次提交
    • P
      [ARM] OMAP2 PRCM: clean up CM_IDLEST bits · da0747d4
      Paul Walmsley 提交于
      This patch fixes a few OMAP2xxx CM_IDLEST bits that were incorrectly
      marked as being OMAP2xxx-wide, when they were actually 2420-specific.
      
      Also, originally when the PRCM register macros were defined, bit shift
      macros used a "_SHIFT" suffix, and mask macros used none.  This became
      a source of bugs and confusion, as the mask macros were mistakenly
      used for shift values.  Gradually, the mask macros have been updated,
      piece by piece, to add a "_MASK" suffix on the end to clarify.  This
      patch applies this change to the CM_IDLEST_* register bits.
      
      The patch also adds a few bits that were missing, mostly from the 3430ES1
      to ES2 revisions.
      
      linux-omap source commits are d18eff5b5fa15e170794397a6a94486d1f774f77,
      e1f1a5cc24615fb790cc763c96d1c5cfe6296f5b, and part of
      9fe6b6cf8d9e0cbb429fd64553a4b3160a9e99e1
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      da0747d4
  12. 19 8月, 2008 1 次提交
  13. 03 7月, 2008 1 次提交
  14. 15 4月, 2008 1 次提交