hardware.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * arch/arm/mach-clps7500/include/mach/hardware.h
  3. *
  4. * Copyright (C) 1996-1999 Russell King.
  5. * Copyright (C) 1999 Nexus Electronics Ltd.
  6. *
  7. * This file contains the hardware definitions of the
  8. * CL7500 evaluation board.
  9. */
  10. #ifndef __ASM_ARCH_HARDWARE_H
  11. #define __ASM_ARCH_HARDWARE_H
  12. #include <mach/memory.h>
  13. #include <asm/hardware/iomd.h>
  14. #ifdef __ASSEMBLY__
  15. #define IOMEM(x) x
  16. #else
  17. #define IOMEM(x) ((void __iomem *)(x))
  18. #endif
  19. /*
  20. * What hardware must be present
  21. */
  22. #define HAS_IOMD
  23. #define HAS_VIDC20
  24. /* Hardware addresses of major areas.
  25. * *_START is the physical address
  26. * *_SIZE is the size of the region
  27. * *_BASE is the virtual address
  28. */
  29. #define IO_START 0x03000000 /* I/O */
  30. #define IO_SIZE 0x01000000
  31. #define IO_BASE IOMEM(0xe0000000)
  32. #define ISA_START 0x0c000000 /* ISA */
  33. #define ISA_SIZE 0x00010000
  34. #define ISA_BASE 0xe1000000
  35. #define CLPS7500_FLASH_START 0x01000000 /* XXX */
  36. #define CLPS7500_FLASH_SIZE 0x01000000
  37. #define CLPS7500_FLASH_BASE 0xe2000000
  38. #define LED_START 0x0302B000
  39. #define LED_SIZE 0x00001000
  40. #define LED_BASE 0xe3000000
  41. #define LED_ADDRESS (LED_BASE + 0xa00)
  42. /* Let's define SCREEN_START for CL7500, even though it's a lie. */
  43. #define SCREEN_START 0x02000000 /* VRAM */
  44. #define SCREEN_END 0xdfc00000
  45. #define SCREEN_BASE 0xdf800000
  46. #define VIDC_BASE (void __iomem *)0xe0400000
  47. #define IOMD_BASE IOMEM(0xe0200000)
  48. #define IOC_BASE IOMEM(0xe0200000)
  49. #define FLOPPYDMA_BASE IOMEM(0xe002a000)
  50. #define PCIO_BASE IOMEM(0xe0010000)
  51. #define vidc_writel(val) __raw_writel(val, VIDC_BASE)
  52. /* in/out bias for the ISA slot region */
  53. #define ISASLOT_IO 0x80400000
  54. #endif