anubis.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (c) 2005 Simtec Electronics
  3. * http://www.simtec.co.uk/products/
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * ANUBIS - CPLD control constants
  7. * ANUBIS - IRQ Number definitions
  8. * ANUBIS - 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_ANUBIS_H
  15. #define __MACH_S3C24XX_ANUBIS_H __FILE__
  16. /* CTRL2 - NAND WP control, IDE Reset assert/check */
  17. #define ANUBIS_CTRL1_NANDSEL (0x3)
  18. /* IDREG - revision */
  19. #define ANUBIS_IDREG_REVMASK (0x7)
  20. /* irq */
  21. #define ANUBIS_IRQ_IDE0 IRQ_EINT2
  22. #define ANUBIS_IRQ_IDE1 IRQ_EINT3
  23. #define ANUBIS_IRQ_ASIX IRQ_EINT1
  24. /* map */
  25. /* start peripherals off after the S3C2410 */
  26. #define ANUBIS_IOADDR(x) (S3C2410_ADDR((x) + 0x01800000))
  27. #define ANUBIS_PA_CPLD (S3C2410_CS1 | (1<<26))
  28. /* we put the CPLD registers next, to get them out of the way */
  29. #define ANUBIS_VA_CTRL1 ANUBIS_IOADDR(0x00000000)
  30. #define ANUBIS_PA_CTRL1 ANUBIS_PA_CPLD
  31. #define ANUBIS_VA_IDREG ANUBIS_IOADDR(0x00300000)
  32. #define ANUBIS_PA_IDREG (ANUBIS_PA_CPLD + (3 << 23))
  33. #define ANUBIS_IDEPRI ANUBIS_IOADDR(0x01000000)
  34. #define ANUBIS_IDEPRIAUX ANUBIS_IOADDR(0x01100000)
  35. #define ANUBIS_IDESEC ANUBIS_IOADDR(0x01200000)
  36. #define ANUBIS_IDESECAUX ANUBIS_IOADDR(0x01300000)
  37. #endif /* __MACH_S3C24XX_ANUBIS_H */