1. 18 1月, 2015 1 次提交
    • M
      ARM: OMAP: Work around hardcoded interrupts · 0fb22a8f
      Marc Zyngier 提交于
      Commit 9a1091ef ("irqchip: gic: Support hierarchy irq domain")
      changed the GIC driver to use a non-legacy IRQ domain on DT
      platforms. This patch assumes that DT-driven systems are getting
      all of their interrupts from device tree.
      
      Turns out that OMAP has quite a few hidden gems, and still uses
      hardcoded interrupts despite having fairly complete DTs.
      
      This patch attempts to work around these by offering a translation
      method that can be called directly from the hwmod code, if present.
      The same hack is sprinkled over PRCM and TWL.
      
      It isn't pretty, but it seems to do the job without having to add
      more hacks to the interrupt controller code.
      
      Tested on OMAP4 (Panda-ES) and OMAP5 (UEVM5432).
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      Acked-by: NNishanth Menon <nm@ti.com>
      [tony@atomide.com: updated to fix make randconfig issue]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      0fb22a8f
  2. 16 5月, 2014 3 次提交
  3. 23 8月, 2013 1 次提交
  4. 18 6月, 2013 1 次提交
  5. 09 11月, 2012 2 次提交
  6. 24 9月, 2012 1 次提交
  7. 09 7月, 2012 1 次提交
  8. 28 6月, 2012 1 次提交
    • P
      ARM: OMAP AM35xx: clock and hwmod data: fix UART4 data · bf765237
      Paul Walmsley 提交于
      Add missing terminators to the arrays of IRQ, DMA, and address space
      structure records in the AM35xx UART4 hwmod data.  Without these
      terminators, the following warnings appear on boot:
      
      omap_uart.3: failed to claim resource 58
      omap_device: omap_uart: build failed (-16)
      WARNING: at /home/paul/linux/arch/arm/mach-omap2/serial.c:375 omap_serial_init_port+0x198/0x284()
      Could not build omap_device for omap_uart: uart4.
      
      Also, AM35xx uart4_fck has an incorrect parent clock pointer.  Fix it
      and clean up a whitespace issue.
      
      Fix some incorrectly-named macros related to AM35xx UART4.
      
      Cc: Kyle Manna <kyle.manna@fuel7.com>
      Cc: Mark A. Greer <mgreer@animalcreek.com>
      Cc: Ranjith Lohithakshan <ranjithl@ti.com>
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Tested-by: NMark A. Greer <mgreer@animalcreek.com>
      bf765237
  9. 22 6月, 2012 1 次提交
    • V
      ARM: OMAP3: PM: Move IO Daisychain function to omap3 prm file · 09659fa7
      Vishwanath BS 提交于
      Since IO Daisychain modifies only PRM registers, it makes sense to move
      it to PRM File. Also changed the timeout value for IO chain enable to
      100us and added a wait for status disable at the end.
      
      Thanks to Nishanth Menon <nm@ti.com> for contributing a fix to the
      timeout code waiting for WUCLKOUT to go high.
      Signed-off-by: NVishwanath BS <vishwanath.bs@ti.com>
      Signed-off-by: NTero Kristo <t-kristo@ti.com>
      Cc: Nishanth Menon <nm@ti.com>
      Reviewed-by: NRajendra Nayak <rnayak@ti.com>
      [paul@pwsan.com: renamed omap3_trigger_io_chain() to better describe the
       end result and to match other PRM functions; removed
       omap3_disable_io_chain(); moved MAX_IOPAD_LATCH_TIME to prcm-common as it
       will also be used by the OMAP4 code; removed unnecessary barrier;
       added kerneldoc; added credit for fix from Nishanth]
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      09659fa7
  10. 08 5月, 2012 2 次提交
  11. 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
  12. 16 12月, 2011 1 次提交
  13. 02 3月, 2011 1 次提交
  14. 25 2月, 2011 1 次提交
  15. 22 12月, 2010 2 次提交
  16. 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
  17. 30 9月, 2010 2 次提交
  18. 21 5月, 2010 3 次提交
  19. 27 1月, 2010 1 次提交
  20. 12 12月, 2009 2 次提交
  21. 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
  22. 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
  23. 19 8月, 2008 1 次提交
  24. 03 7月, 2008 1 次提交
  25. 15 4月, 2008 1 次提交