hardware.h 879 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Hardware definitions common to all DaVinci family processors
  4. *
  5. * Author: Kevin Hilman, Deep Root Systems, LLC
  6. *
  7. * 2007 (c) Deep Root Systems, LLC.
  8. */
  9. #ifndef __ASM_ARCH_HARDWARE_H
  10. #define __ASM_ARCH_HARDWARE_H
  11. /*
  12. * Before you add anything to ths file:
  13. *
  14. * This header is for defines common to ALL DaVinci family chips.
  15. * Anything that is chip specific should go in <chipname>.h,
  16. * and the chip/board init code should then explicitly include
  17. * <chipname>.h
  18. */
  19. /*
  20. * I/O mapping
  21. */
  22. #define IO_PHYS UL(0x01c00000)
  23. #define IO_OFFSET 0xfd000000 /* Virtual IO = 0xfec00000 */
  24. #define IO_SIZE 0x00400000
  25. #define IO_VIRT (IO_PHYS + IO_OFFSET)
  26. #define io_v2p(va) ((va) - IO_OFFSET)
  27. #define __IO_ADDRESS(x) ((x) + IO_OFFSET)
  28. #define IO_ADDRESS(pa) IOMEM(__IO_ADDRESS(pa))
  29. #endif /* __ASM_ARCH_HARDWARE_H */