vr1000.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /* arch/arm/mach-s3c2410/include/mach/vr1000-cpld.h
  2. *
  3. * Copyright (c) 2003 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * VR1000 - CPLD control constants
  7. * Machine VR1000 - IRQ Number definitions
  8. * Machine VR1000 - Memory map definitions
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #ifndef __MACH_S3C24XX_VR1000_H
  15. #define __MACH_S3C24XX_VR1000_H __FILE__
  16. #define VR1000_CPLD_CTRL2_RAMWEN (0x04) /* SRAM Write Enable */
  17. /* irq numbers to onboard peripherals */
  18. #define VR1000_IRQ_USBOC IRQ_EINT19
  19. #define VR1000_IRQ_IDE0 IRQ_EINT16
  20. #define VR1000_IRQ_IDE1 IRQ_EINT17
  21. #define VR1000_IRQ_SERIAL IRQ_EINT12
  22. #define VR1000_IRQ_DM9000A IRQ_EINT10
  23. #define VR1000_IRQ_DM9000N IRQ_EINT9
  24. #define VR1000_IRQ_SMALERT IRQ_EINT8
  25. /* map */
  26. #define VR1000_IOADDR(x) (S3C2410_ADDR((x) + 0x01300000))
  27. /* we put the CPLD registers next, to get them out of the way */
  28. #define VR1000_VA_CTRL1 VR1000_IOADDR(0x00000000) /* 0x01300000 */
  29. #define VR1000_PA_CTRL1 (S3C2410_CS5 | 0x7800000)
  30. #define VR1000_VA_CTRL2 VR1000_IOADDR(0x00100000) /* 0x01400000 */
  31. #define VR1000_PA_CTRL2 (S3C2410_CS1 | 0x6000000)
  32. #define VR1000_VA_CTRL3 VR1000_IOADDR(0x00200000) /* 0x01500000 */
  33. #define VR1000_PA_CTRL3 (S3C2410_CS1 | 0x6800000)
  34. #define VR1000_VA_CTRL4 VR1000_IOADDR(0x00300000) /* 0x01600000 */
  35. #define VR1000_PA_CTRL4 (S3C2410_CS1 | 0x7000000)
  36. /* next, we have the PC104 ISA interrupt registers */
  37. #define VR1000_PA_PC104_IRQREQ (S3C2410_CS5 | 0x6000000) /* 0x01700000 */
  38. #define VR1000_VA_PC104_IRQREQ VR1000_IOADDR(0x00400000)
  39. #define VR1000_PA_PC104_IRQRAW (S3C2410_CS5 | 0x6800000) /* 0x01800000 */
  40. #define VR1000_VA_PC104_IRQRAW VR1000_IOADDR(0x00500000)
  41. #define VR1000_PA_PC104_IRQMASK (S3C2410_CS5 | 0x7000000) /* 0x01900000 */
  42. #define VR1000_VA_PC104_IRQMASK VR1000_IOADDR(0x00600000)
  43. /*
  44. * 0xE0000000 contains the IO space that is split by speed and
  45. * whether the access is for 8 or 16bit IO... this ensures that
  46. * the correct access is made
  47. *
  48. * 0x10000000 of space, partitioned as so:
  49. *
  50. * 0x00000000 to 0x04000000 8bit, slow
  51. * 0x04000000 to 0x08000000 16bit, slow
  52. * 0x08000000 to 0x0C000000 16bit, net
  53. * 0x0C000000 to 0x10000000 16bit, fast
  54. *
  55. * each of these spaces has the following in:
  56. *
  57. * 0x02000000 to 0x02100000 1MB IDE primary channel
  58. * 0x02100000 to 0x02200000 1MB IDE primary channel aux
  59. * 0x02200000 to 0x02400000 1MB IDE secondary channel
  60. * 0x02300000 to 0x02400000 1MB IDE secondary channel aux
  61. * 0x02500000 to 0x02600000 1MB Davicom DM9000 ethernet controllers
  62. * 0x02600000 to 0x02700000 1MB
  63. *
  64. * the phyiscal layout of the zones are:
  65. * nGCS2 - 8bit, slow
  66. * nGCS3 - 16bit, slow
  67. * nGCS4 - 16bit, net
  68. * nGCS5 - 16bit, fast
  69. */
  70. #define VR1000_VA_MULTISPACE (0xE0000000)
  71. #define VR1000_VA_ISAIO (VR1000_VA_MULTISPACE + 0x00000000)
  72. #define VR1000_VA_ISAMEM (VR1000_VA_MULTISPACE + 0x01000000)
  73. #define VR1000_VA_IDEPRI (VR1000_VA_MULTISPACE + 0x02000000)
  74. #define VR1000_VA_IDEPRIAUX (VR1000_VA_MULTISPACE + 0x02100000)
  75. #define VR1000_VA_IDESEC (VR1000_VA_MULTISPACE + 0x02200000)
  76. #define VR1000_VA_IDESECAUX (VR1000_VA_MULTISPACE + 0x02300000)
  77. #define VR1000_VA_ASIXNET (VR1000_VA_MULTISPACE + 0x02400000)
  78. #define VR1000_VA_DM9000 (VR1000_VA_MULTISPACE + 0x02500000)
  79. #define VR1000_VA_SUPERIO (VR1000_VA_MULTISPACE + 0x02600000)
  80. /* physical offset addresses for the peripherals */
  81. #define VR1000_PA_IDEPRI (0x02000000)
  82. #define VR1000_PA_IDEPRIAUX (0x02800000)
  83. #define VR1000_PA_IDESEC (0x03000000)
  84. #define VR1000_PA_IDESECAUX (0x03800000)
  85. #define VR1000_PA_DM9000 (0x05000000)
  86. #define VR1000_PA_SERIAL (0x11800000)
  87. #define VR1000_VA_SERIAL (VR1000_IOADDR(0x00700000))
  88. /* VR1000 ram is in CS1, with A26..A24 = 2_101 */
  89. #define VR1000_PA_SRAM (S3C2410_CS1 | 0x05000000)
  90. /* some configurations for the peripherals */
  91. #define VR1000_DM9000_CS VR1000_VAM_CS4
  92. #endif /* __MACH_S3C24XX_VR1000_H */