hardware.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Hardware definitions common to all DaVinci family processors
  3. *
  4. * Author: Kevin Hilman, Deep Root Systems, LLC
  5. *
  6. * 2007 (c) Deep Root Systems, LLC. This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. */
  11. #ifndef __ASM_ARCH_HARDWARE_H
  12. #define __ASM_ARCH_HARDWARE_H
  13. /*
  14. * Before you add anything to ths file:
  15. *
  16. * This header is for defines common to ALL DaVinci family chips.
  17. * Anything that is chip specific should go in <chipname>.h,
  18. * and the chip/board init code should then explicitly include
  19. * <chipname>.h
  20. */
  21. #define DAVINCI_SYSTEM_MODULE_BASE 0x01C40000
  22. /* System control register offsets */
  23. #define DM64XX_VDD3P3V_PWDN 0x48
  24. /*
  25. * I/O mapping
  26. */
  27. #define IO_PHYS 0x01c00000UL
  28. #define IO_OFFSET 0xfd000000 /* Virtual IO = 0xfec00000 */
  29. #define IO_SIZE 0x00400000
  30. #define IO_VIRT (IO_PHYS + IO_OFFSET)
  31. #define io_v2p(va) ((va) - IO_OFFSET)
  32. #define __IO_ADDRESS(x) ((x) + IO_OFFSET)
  33. #define IO_ADDRESS(pa) IOMEM(__IO_ADDRESS(pa))
  34. #ifdef __ASSEMBLER__
  35. #define IOMEM(x) x
  36. #else
  37. #define IOMEM(x) ((void __force __iomem *)(x))
  38. #endif
  39. #endif /* __ASM_ARCH_HARDWARE_H */