linux/arch/arm/mach-davinci/include/mach
Hemant Pedanekar 9eb7115bcc davinci: Move IO device mapping macros from io.h to hardware.h
This patch takes out IO mapping macros from mach/io.h and puts them in
mach/hardware.h avoiding need to include mach/io.h in various files such as
serial.h, vmalloc.h etc.

The main reason to avoid inclusion of mach/io.h is, when default in/out macros
are overridden by machine specific functions (e.g., in case of PCI I/O), they
result into linker error. An example snippet and error snapshot is listed below.

Following code in mach/io.h:

	#define inl(p)  my_inl()

	static inline unsigned int my_inl(unsigned int addr)
	{
		if (IS_PCI_IO(addr))
			return pci_inl ();
		else
			return le32_to_cpu(__raw_readl(__typesafe_io(addr)));
	}

leads to error:
	LD      arch/arm/boot/compressed/vmlinux
	arch/arm/boot/compressed/misc.o: In function `my_inl':
	misc.c:(.text+0x2744): undefined reference to `pci_inl'
	make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1

This is because mach/io.h gets included in arch/arm/boot/compressed/misc.c
through mach/serial.h but pci.c file, which defines 'pci_inl' doesn't get built
into compressed vmlinux.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
2009-08-26 10:57:01 +03:00
..
asp.h davinci: ASoC: Add the platform devices for ASP 2009-08-26 10:57:00 +03:00
clkdev.h davinci: major rework of clock, PLL, PSC infrastructure 2009-04-23 09:31:00 -07:00
clock.h davinci: major rework of clock, PLL, PSC infrastructure 2009-04-23 09:31:00 -07:00
common.h davinci: dm365 gpio irq support 2009-08-26 10:57:00 +03:00
cp_intc.h davinci: INTC: add support for TI cp_intc 2009-05-26 07:18:14 -07:00
cputype.h davinci: da8xx: Add base DA830/OMAP-L137 SoC support 2009-08-26 10:56:59 +03:00
da8xx.h davinci: da8xx: Add base DA830/OMAP-L137 SoC support 2009-08-26 10:56:59 +03:00
debug-macro.S davinci: da8xx: Add support for DA830/OMAP-L137 EVM board 2009-08-26 10:56:59 +03:00
dm355.h davinci: ASoC: Add the platform devices for ASP 2009-08-26 10:57:00 +03:00
dm365.h davinci: Adding DM365 SOC Support 2009-08-26 10:56:57 +03:00
dm644x.h davinci: ASoC: Add the platform devices for ASP 2009-08-26 10:57:00 +03:00
dm646x.h davinci: ASoC: Add the platform devices for ASP 2009-08-26 10:57:00 +03:00
edma.h davinci: da8xx: Add base DA830/OMAP-L137 SoC support 2009-08-26 10:56:59 +03:00
emac.h davinci: Factor out emac mac address handling 2009-05-28 15:17:47 -07:00
entry-macro.S davinci: Integrate cp_intc support into low-level irq code 2009-05-28 15:17:47 -07:00
gpio.h davinci: dm365 gpio irq support 2009-08-26 10:57:00 +03:00
hardware.h davinci: Move IO device mapping macros from io.h to hardware.h 2009-08-26 10:57:01 +03:00
i2c.h ARM: DaVinci: i2c setup 2008-09-17 00:31:42 -07:00
io.h davinci: Move IO device mapping macros from io.h to hardware.h 2009-08-26 10:57:01 +03:00
irqs.h davinci: da8xx: Add base DA830/OMAP-L137 SoC support 2009-08-26 10:56:59 +03:00
memory.h davinci: da8xx: Add base DA830/OMAP-L137 SoC support 2009-08-26 10:56:59 +03:00
mmc.h davinci: MMC platform support 2009-05-26 07:18:16 -07:00
mux.h davinci: DM365 Updating PINMUX Entries 2009-08-26 10:57:00 +03:00
nand.h mtd: nand: davinci_nand, 4-bit ECC for smallpage 2009-06-05 17:39:36 +01:00
psc.h davinci: da8xx: Add base DA830/OMAP-L137 SoC support 2009-08-26 10:56:59 +03:00
serial.h davinci: Move IO device mapping macros from io.h to hardware.h 2009-08-26 10:57:01 +03:00
sram.h davinci: add SRAM allocator 2009-05-28 15:18:13 -07:00
system.h [ARM] pass reboot command line to arch_reset() 2009-03-19 16:20:24 +00:00
time.h davinci: Add watchdog base address flexibility 2009-05-26 08:20:31 -07:00
timex.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
uncompress.h davinci: da8xx: Add support for DA830/OMAP-L137 EVM board 2009-08-26 10:56:59 +03:00
vmalloc.h davinci: Move IO device mapping macros from io.h to hardware.h 2009-08-26 10:57:01 +03:00