cm-x270.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * linux/include/asm/arch-pxa/cm-x270.h
  3. *
  4. * Copyright Compulab Ltd., 2003, 2007
  5. * Mike Rapoport <mike@compulab.co.il>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. /* CM-x270 device physical addresses */
  12. #define CMX270_CS1_PHYS (PXA_CS1_PHYS)
  13. #define MARATHON_PHYS (PXA_CS2_PHYS)
  14. #define CMX270_IDE104_PHYS (PXA_CS3_PHYS)
  15. #define CMX270_IT8152_PHYS (PXA_CS4_PHYS)
  16. /* Statically mapped regions */
  17. #define CMX270_VIRT_BASE (0xe8000000)
  18. #define CMX270_IT8152_VIRT (CMX270_VIRT_BASE)
  19. #define CMX270_IDE104_VIRT (CMX270_IT8152_VIRT + SZ_64M)
  20. /* GPIO related definitions */
  21. #define GPIO_IT8152_IRQ (22)
  22. #define IRQ_GPIO_IT8152_IRQ IRQ_GPIO(GPIO_IT8152_IRQ)
  23. #define PME_IRQ IRQ_GPIO(0)
  24. #define CMX270_IDE_IRQ IRQ_GPIO(100)
  25. #define CMX270_GPIRQ1 IRQ_GPIO(101)
  26. #define CMX270_TOUCHIRQ IRQ_GPIO(96)
  27. #define CMX270_ETHIRQ IRQ_GPIO(10)
  28. #define CMX270_GFXIRQ IRQ_GPIO(95)
  29. #define CMX270_NANDIRQ IRQ_GPIO(89)
  30. #define CMX270_MMC_IRQ IRQ_GPIO(83)
  31. /* PCMCIA related definitions */
  32. #define PCC_DETECT(x) (GPLR(84 - (x)) & GPIO_bit(84 - (x)))
  33. #define PCC_READY(x) (GPLR(82 - (x)) & GPIO_bit(82 - (x)))
  34. #define PCMCIA_S0_CD_VALID IRQ_GPIO(84)
  35. #define PCMCIA_S0_CD_VALID_EDGE GPIO_BOTH_EDGES
  36. #define PCMCIA_S1_CD_VALID IRQ_GPIO(83)
  37. #define PCMCIA_S1_CD_VALID_EDGE GPIO_BOTH_EDGES
  38. #define PCMCIA_S0_RDYINT IRQ_GPIO(82)
  39. #define PCMCIA_S1_RDYINT IRQ_GPIO(81)
  40. #define PCMCIA_RESET_GPIO 53