Skip to content
  1. Dec 01, 2012
    • Tony Lindgren's avatar
      ARM: OMAP: Move plat-omap/dma-omap.h to include/linux/omap-dma.h · 45c3eb7d
      Tony Lindgren authored
      Based on earlier discussions[1] we attempted to find a suitable
      location for the omap DMA header in commit 2b6c4e73 (ARM: OMAP:
      DMA: Move plat/dma.h to plat-omap/dma-omap.h) until the conversion
      to dmaengine is complete.
      
      Unfortunately that was before I was able to try to test compile
      of the ARM multiplatform builds for omap2+, and the end result
      was not very good.
      
      So I'm creating yet another all over the place patch to cut the
      last dependency for building omap2+ for ARM multiplatform. After
      this, we have finally removed the driver dependencies to the
      arch/arm code, except for few drivers that are being worked on.
      
      The other option was to make the <plat-omap/dma-omap.h> path
      to work, but we'd have to add some new header directory to for
      multiplatform builds.
      
      Or we would have to manually include arch/arm/plat-omap/include
      again from arch/arm/Makefile for omap2+.
      
      Neither of these alternatives sound appealing as they will
      likely lead addition of various other headers exposed to the
      drivers, which we want to avoid for the multiplatform kernels.
      
      Since we already have a minimal include/linux/omap-dma.h,
      let's just use that instead and add a note to it to not
      use the custom omap DMA functions any longer where possible.
      
      Note that converting omap DMA to dmaengine depends on
      dmaengine supporting automatically incrementing the FIFO
      address at the device end, and converting all the remaining
      legacy drivers. So it's going to be few more merge windows.
      
      [1] https://patchwork.kernel.org/patch/1519591/#
      
      
      
      cc: Russell King <linux@arm.linux.org.uk>
      cc: Kevin Hilman <khilman@ti.com>
      cc: "Benoît Cousson" <b-cousson@ti.com>
      cc: Herbert Xu <herbert@gondor.apana.org.au>
      cc: "David S. Miller" <davem@davemloft.net>
      cc: Vinod Koul <vinod.koul@intel.com>
      cc: Dan Williams <djbw@fb.com>
      cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
      cc: David Woodhouse <dwmw2@infradead.org>
      cc: Kyungmin Park <kyungmin.park@samsung.com>
      cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      cc: Hans Verkuil <hans.verkuil@cisco.com>
      cc: Vaibhav Hiremath <hvaibhav@ti.com>
      cc: Lokesh Vutla <lokeshvutla@ti.com>
      cc: Rusty Russell <rusty@rustcorp.com.au>
      cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
      cc: Afzal Mohammed <afzal@ti.com>
      cc: linux-crypto@vger.kernel.org
      cc: linux-media@vger.kernel.org
      cc: linux-mtd@lists.infradead.org
      cc: linux-usb@vger.kernel.org
      cc: linux-fbdev@vger.kernel.org
      Acked-by: default avatarFelipe Balbi <balbi@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      45c3eb7d
    • Tony Lindgren's avatar
      ASoC: OMAP: mcbsp fixes for enabling ARM multiplatform support · 6300ebe9
      Tony Lindgren authored
      
      
      We cannot include any plat or mach headers for the multiplatform
      support.
      
      Fix the issue by defining local mcbsp_omap1().
      
      cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      cc: Liam Girdwood <lrg@ti.com>
      cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      cc: Jaroslav Kysela <perex@perex.cz>
      cc: Takashi Iwai <tiwai@suse.de>
      cc: alsa-devel@alsa-project.org
      Acked-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
      Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      6300ebe9
    • Tony Lindgren's avatar
      watchdog: OMAP: fixup for ARM multiplatform support · 0a779abe
      Tony Lindgren authored
      
      
      Recent changes to the omap_wdt.c removed the dependencies to
      the core omap code, but forgot to remove mach/hardware.h.
      
      We cannot include any plat headers with multiplatform
      support enabled.
      
      cc: Wim Van Sebroeck <wim@iguana.be>
      cc: linux-watchdog@vger.kernel.org
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      0a779abe
    • Tony Lindgren's avatar
      Merge tag 'tags/omap-for-v3.8/devel-prcm-signed' into... · 2589d056
      Tony Lindgren authored
      Merge tag 'tags/omap-for-v3.8/devel-prcm-signed' into omap-for-v3.8/cleanup-headers-prepare-multiplatform-v3
      
      omap prcm changes via Paul Walmsley <paul@pwsan.com>:
      
      Some miscellaneous OMAP hwmod changes for 3.8, along with a PRM
      change needed for one of the hwmod patches to function.
      
      Basic test logs for this branch on top of Tony's
      omap-for-v3.8/clock branch at commit
      558a0780 are here:
      
      http://www.pwsan.com/omap/testlogs/hwmod_devel_a_3.8/20121121161522/
      
      However, omap-for-v3.8/clock at 558a0780 does not include some fixes
      that are needed for a successful test.  With several reverts,
      fixes, and workarounds applied, the following test logs were
      obtained:
      
      http://www.pwsan.com/omap/testlogs/TEST_hwmod_devel_a_3.8/20121121162719/
      
      which indicate that the series tests cleanly.
      
      Conflicts:
      	arch/arm/mach-omap2/cm33xx.c
      	arch/arm/mach-omap2/io.c
      	arch/arm/mach-omap2/prm_common.c
      2589d056
  2. Nov 27, 2012
  3. Nov 22, 2012
    • 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. Nov 15, 2012
  5. Nov 14, 2012
  6. Nov 13, 2012