1. 25 2月, 2012 1 次提交
    • M
      ARM: davinci: streamline sysmod access · 5cfb19ac
      Manjunath Hadli 提交于
      There are instances of IO_ADDRESS() being used for system module
      (sysmod) register access. Eliminate this in favor of a ioremap()
      based access. ioremap() the entire sysmod address space once during
      boot-up and provide a helper macro to access specific register
      offsets within the address space.
      
      With this, also eliminate ioremap() of specific sysmodule registers
      related to VPIF happening in DM646x EVM code.
      
      While at it, also eliminate some duplicate sysmod register offset macros
      defined in code and place offset definitions at one place in davinci.h
      Signed-off-by: NManjunath Hadli <manjunath.hadli@ti.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      [nsekhar@ti.com: removed the addition of ifndef __ASSEMBLER__
      in davinci.h, eliminate IO_ADDRESS() usage left out in dm646x.c,
      cleanup VPIF sysmodule register access as part of this patch and
      keep all sysmod offsets in davinci.h Also, convert the WARN_ON()
      on failure to setup sysmod base to BUG_ON()]
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      5cfb19ac
  2. 24 5月, 2011 1 次提交
  3. 16 2月, 2010 1 次提交
  4. 26 8月, 2009 1 次提交
    • H
      davinci: Move IO device mapping macros from io.h to hardware.h · 9eb7115b
      Hemant Pedanekar 提交于
      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: NHemant Pedanekar <hemantp@ti.com>
      Signed-off-by: NKevin Hilman <khilman@deeprootsystems.com>
      9eb7115b
  5. 24 4月, 2009 1 次提交
  6. 07 8月, 2008 1 次提交
  7. 12 7月, 2007 1 次提交
  8. 12 5月, 2007 1 次提交