1. 30 Nov, 2012 1 commit
  2. 26 Nov, 2012 1 commit
  3. 21 Nov, 2012 4 commits
    • Peter Ujfalusi's avatar
      ARM: OMAP2+: omap_device: Correct resource handling for DT boot · c567b058
      Peter Ujfalusi authored
      When booting with DT the OF core can fill up the resources provided within
      the DT blob.
      The current way of handling the DT boot prevents us from removing hwmod data
      for platforms only suppose to boot with DT (OMAP5 for example) since we need
      to keep the whole hwmod database intact in order to have more resources in
      hwmod than in DT (to be able to append the DMA resource from hwmod).
      
      To fix this issue we just examine the OF provided resources:
      If we do not have resources we use hwmod to fill them.
      If we have resources we check if we already able to recive DMA resource, if
      no we only append the DMA resurce from hwmod to the OF provided ones.
      
      In this way we can start removing hwmod data for devices which have their
      resources correctly configured in DT without regressions.
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Acked-by: default avatarBenoît Cousson <b-cousson@ti.com>
      [paul@pwsan.com: fixed checkpatch problem; updated to apply]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      c567b058
    • Peter Ujfalusi's avatar
      ARM: OMAP2+: hwmod: Add possibility to count hwmod resources based on type · dad4191d
      Peter Ujfalusi authored
      Add flags parameter for omap_hwmod_count_resources() so users can tell which
      type of resources they are interested when counting them in hwmod database.
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Acked-by: default avatarBenoît Cousson <b-cousson@ti.com>
      [paul@pwsan.com: updated to apply]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      dad4191d
    • Rajendra Nayak's avatar
      ARM: OMAP2+: hwmod: Add support for per hwmod/module context lost count · e6d3a8b0
      Rajendra Nayak authored
      OMAP4 has module specific context lost registers which makes it now
      possible to have module level context loss count, instead of relying
      on the powerdomain level context count.
      
      Add 2 private hwmod api's to update/clear the hwmod/module specific
      context lost counters/register.
      
      Update the module specific context_lost_counter and clear the hardware
      bits just after enabling the module.
      
      omap_hwmod_get_context_loss_count() now returns the hwmod context loss
      count them on platforms where they exist (OMAP4), else fall back on
      the pwrdm level counters for older platforms.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      [paul@pwsan.com: added function kerneldoc, fixed structure kerneldoc,
       rearranged structure to avoid memory waste, marked fns as OMAP4-specific,
       prevent fn entry on non-OMAP4 chips, reduced indentation, merged update
       and clear, merged patches]
      [t-kristo@ti.com: added support for arch specific hwmod ops, and changed
       the no context offset indicator to USHRT_MAX]
      Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
      [paul@pwsan.com: use NO_CONTEXT_LOSS_BIT flag rather than USHRT_MAX;
       convert unsigned context lost counter to int to match the return type;
       get rid of hwmod_ops in favor of the existing soc_ops mechanism;
       move context loss low-level accesses to the PRM code]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      e6d3a8b0
    • Paul Walmsley's avatar
      ARM: OMAP2+: PRM: initialize some PRM functions early · 63a293e0
      Paul Walmsley authored
      Some PRM functions will need to be called by the hwmod code early in
      kernel init.  To handle this, split the PRM initialization code into
      early and late phases.  The early init is handled via mach-omap2/io.c,
      while the late init is handled by subsys_initcall().
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      63a293e0
  4. 14 Nov, 2012 2 commits
  5. 13 Nov, 2012 26 commits
  6. 12 Nov, 2012 5 commits
  7. 09 Nov, 2012 1 commit