1. 13 9月, 2012 2 次提交
    • T
      ARM: OMAP: Split plat/hardware.h, use local soc.h for omap2+ · dbc04161
      Tony Lindgren 提交于
      As the plat and mach includes need to disappear for single zImage work,
      we need to remove plat/hardware.h.
      
      Do this by splitting plat/hardware.h into omap1 and omap2+ specific files.
      
      The old plat/hardware.h already has omap1 only defines, so it gets moved
      to mach/hardware.h for omap1. For omap2+, we use the local soc.h
      that for now just includes the related SoC headers to keep this patch more
      readable.
      
      Note that the local soc.h still includes plat/cpu.h that can be dealt
      with in later patches. Let's also include plat/serial.h from common.h for
      all the board-*.c files. This allows making the include files local later
      on without patching these files again.
      
      Note that only minimal changes are done in this patch for the
      drivers/watchdog/omap_wdt.c driver to keep things compiling. Further
      patches are needed to eventually remove cpu_is_omap usage in the drivers.
      
      Also only minimal changes are done to sound/soc/omap/* to remove the
      unneeded includes and to define OMAP44XX_MCPDM_L3_BASE locally so there's
      no need to include omap44xx.h.
      
      While at it, also sort some of the includes in the standard way.
      
      Cc: linux-watchdog@vger.kernel.org
      Cc: alsa-devel@alsa-project.org
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Acked-by: NWim Van Sebroeck <wim@iguana.be>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      dbc04161
    • T
      ARM: OMAP2+: Prepare for irqs.h removal · 7d7e1eba
      Tony Lindgren 提交于
      As the interrupts should only be defined in the platform_data, and
      eventually coming from device tree, there's no need to define them
      in header files.
      
      Let's remove the hardcoded references to irqs.h and fix up the includes
      so we don't rely on headers included in irqs.h. Note that we're
      defining OMAP_INTC_START as 0 to the interrupts. This will be needed
      when we enable SPARSE_IRQ. For some drivers we need to add
      #include <plat/cpu.h> for now until these drivers are fixed to
      remove cpu_is_omapxxxx() usage.
      
      While at it, sort som of the includes the standard way, and add
      the trailing commas where they are missing in the related data
      structures.
      
      Note that for drivers/staging/tidspbridge we just define things
      locally.
      
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      7d7e1eba
  2. 13 5月, 2012 1 次提交
    • J
      ARM: OMAP: enable mailbox irq per instance · 1d8a0e96
      Juan Gutierrez 提交于
      The machine-specific omap2_mbox_startup is called only once
      to initialize the whole mbox module, and as a result,
      enabling the mbox irq at that point only works for the very first
      mailbox instance opened.
      
      Instead, this patch makes sure enable_irq() is called every
      time a new mbox instance is opened. In addition, we're now
      enabling the mbox's irq only after its notifier_block is registered,
      to avoid possible race of receiving an interrupt without invoking
      the user's notifier callback.
      Signed-off-by: NJuan Gutierrez <jgutierrez@ti.com>
      Signed-off-by: NSuman Anna <s-anna@ti.com>
      [ohad@wizery.com: slightly reworded the commit log]
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      1d8a0e96
  3. 10 5月, 2012 1 次提交
  4. 05 3月, 2012 1 次提交
  5. 27 2月, 2012 1 次提交
  6. 24 2月, 2012 1 次提交
    • O
      ARM: OMAP2: fix mailbox init code · 655850ed
      Ohad Ben-Cohen 提交于
      Fix this:
      
      arch/arm/mach-omap2/mailbox.c: In function 'omap2_mbox_probe':
      arch/arm/mach-omap2/mailbox.c:354: error: 'omap2_mboxes' undeclared (first use in this function)
      arch/arm/mach-omap2/mailbox.c:354: error: (Each undeclared identifier is reported only once
      arch/arm/mach-omap2/mailbox.c:354: error: for each function it appears in.)
      
      Which happens on CONFIG_ARCH_OMAP2 && !CONFIG_SOC_OMAP2420, due to
      missing omap2_mboxes declaration.
      
      In addition, make sure we declare the right mailbox instances for 2430.
      Reported-by: NRussell King <linux@arm.linux.org.uk>
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      Cc: Hiroshi Doyu <hdoyu@nvidia.com>
      Cc: Omar Ramirez Luna <omar.ramirez@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      655850ed
  7. 08 11月, 2011 1 次提交
    • T
      ARM: OMAP: Fix export.h or module.h includes · a1bcc1dc
      Tony Lindgren 提交于
      Commit 32aaeffb (Merge branch
      'modsplit-Oct31_2011'...) caused some build errors. Fix these
      and make sure we always have export.h or module.h included
      for MODULE_ and EXPORT_SYMBOL users:
      
      $ grep -rl ^MODULE_ arch/arm/*omap*/*.c | xargs \
        grep -L linux/module.h
        arch/arm/mach-omap2/dsp.c
        arch/arm/mach-omap2/mailbox.c
        arch/arm/mach-omap2/omap-iommu.c
        arch/arm/mach-omap2/smartreflex.c
      
      Also check we either have export.h or module.h included
      for the files exporting symbols:
      
      $ grep -rl EXPORT_SYMBOL arch/arm/*omap*/*.c | xargs \
        grep -L linux/export.h | xargs grep -L linux/module.h
      
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      a1bcc1dc
  8. 04 3月, 2011 1 次提交
  9. 25 2月, 2011 2 次提交
  10. 15 2月, 2011 1 次提交
  11. 28 1月, 2011 1 次提交
  12. 02 12月, 2010 2 次提交
  13. 29 9月, 2010 1 次提交
  14. 04 8月, 2010 10 次提交
  15. 12 3月, 2010 1 次提交
  16. 24 2月, 2010 2 次提交
  17. 16 2月, 2010 1 次提交
  18. 23 11月, 2009 1 次提交
  19. 11 11月, 2009 1 次提交
  20. 21 10月, 2009 1 次提交
    • T
      omap: headers: Move remaining headers from include/mach to include/plat · ce491cf8
      Tony Lindgren 提交于
      Move the remaining headers under plat-omap/include/mach
      to plat-omap/include/plat. Also search and replace the
      files using these headers to include using the right path.
      
      This was done with:
      
      #!/bin/bash
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      headers=$(cd $mach_dir_old && ls *.h)
      omap_dirs="arch/arm/*omap*/ \
      drivers/video/omap \
      sound/soc/omap"
      other_files="drivers/leds/leds-ams-delta.c \
      drivers/mfd/menelaus.c \
      drivers/mfd/twl4030-core.c \
      drivers/mtd/nand/ams-delta.c"
      
      for header in $headers; do
      	old="#include <mach\/$header"
      	new="#include <plat\/$header"
      	for dir in $omap_dirs; do
      		find $dir -type f -name \*.[chS] | \
      			xargs sed -i "s/$old/$new/"
      	done
      	find drivers/ -type f -name \*omap*.[chS] | \
      		xargs sed -i "s/$old/$new/"
      	for file in $other_files; do
      		sed -i "s/$old/$new/" $file
      	done
      done
      
      for header in $(ls $mach_dir_old/*.h); do
      	git mv $header $plat_dir_new/
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ce491cf8
  21. 29 9月, 2009 1 次提交
  22. 25 9月, 2009 2 次提交
  23. 23 6月, 2009 1 次提交
  24. 24 3月, 2009 3 次提交