1. 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
  2. 11 12月, 2008 3 次提交
  3. 06 9月, 2008 1 次提交
  4. 07 8月, 2008 2 次提交
  5. 28 1月, 2008 1 次提交
    • R
      [NET] smc91x: Make smc91x use IRQ resource trigger flags · e7b3dc7e
      Russell King 提交于
      smc91x is shared between many different platforms.  Each platform needs
      to specify the interrupt type, and in some cases the irq type depends
      on more than just the build configuration - it depends on runtime
      checks.
      
      Rather than throwing this code into the SMC_IRQ_FLAGS definition, provide
      a way for these flags to be passed via the IRQ resource itself.
      
      Note that IRQF_TRIGGER_* constants are intentionally defined to correspond
      with the IORESOURCE_IRQ_* interrupt type flags, in much the same way that
      the low bits of PCI iomem resources correspond with the BAR flag bits.
      
      Also provide a way to configure smc91x to read the IRQ flags from the
      resource.  Once all platforms have been converted over (signified
      by all definitions of SMC_IRQ_FLAGS being -1) SMC_IRQ_FLAGS should
      be removed.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Acked-by: NNicolas Pitre <nico@cam.org>
      Acked-by: NJeff Garzik <jgarzik@redhat.com>
      e7b3dc7e
  6. 21 9月, 2007 1 次提交
    • D
      ARM: OMAP: abstract debug card setup (smc, leds) · f6049312
      David Brownell 提交于
      Additional cleanup for debug boards on H2/P2/H3/H4:  move the init
      code that's not board-specific into a new file where it can be easily
      shared between all the different boards (avoiding code duplication,
      and making it easier to support more devices).  Make H4 use that.
      
      This should be easy to drop in to the OMAP1 boards using these debug
      cards; the only difference seems to be that the p2 does an extra reset
      of the smc using the fpga (probably all boards could do that, if it's
      necessary) and doesn't use the gpio mux or request APIs.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      f6049312