nanoengine.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * arch/arm/mach-sa1100/include/mach/nanoengine.h
  3. *
  4. * This file contains the hardware specific definitions for nanoEngine.
  5. * Only include this file from SA1100-specific files.
  6. *
  7. * Copyright (C) 2010 Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. *
  13. */
  14. #ifndef __ASM_ARCH_NANOENGINE_H
  15. #define __ASM_ARCH_NANOENGINE_H
  16. #include <mach/irqs.h>
  17. #define GPIO_PC_READY0 GPIO_GPIO(11) /* ready for socket 0 (active high)*/
  18. #define GPIO_PC_READY1 GPIO_GPIO(12) /* ready for socket 1 (active high) */
  19. #define GPIO_PC_CD0 GPIO_GPIO(13) /* detect for socket 0 (active low) */
  20. #define GPIO_PC_CD1 GPIO_GPIO(14) /* detect for socket 1 (active low) */
  21. #define GPIO_PC_RESET0 GPIO_GPIO(15) /* reset socket 0 */
  22. #define GPIO_PC_RESET1 GPIO_GPIO(16) /* reset socket 1 */
  23. #define NANOENGINE_IRQ_GPIO_PCI IRQ_GPIO0
  24. #define NANOENGINE_IRQ_GPIO_PC_READY0 IRQ_GPIO11
  25. #define NANOENGINE_IRQ_GPIO_PC_READY1 IRQ_GPIO12
  26. #define NANOENGINE_IRQ_GPIO_PC_CD0 IRQ_GPIO13
  27. #define NANOENGINE_IRQ_GPIO_PC_CD1 IRQ_GPIO14
  28. /*
  29. * nanoEngine Memory Map:
  30. *
  31. * 0000.0000 - 003F.0000 - 4 MB Flash
  32. * C000.0000 - C1FF.FFFF - 32 MB SDRAM
  33. * 1860.0000 - 186F.FFFF - 1 MB Internal PCI Memory Read/Write
  34. * 18A1.0000 - 18A1.FFFF - 64 KB Internal PCI Config Space
  35. * 4000.0000 - 47FF.FFFF - 128 MB External Bus I/O - Multiplexed Mode
  36. * 4800.0000 - 4FFF.FFFF - 128 MB External Bus I/O - Non-Multiplexed Mode
  37. *
  38. */
  39. #define NANO_PCI_MEM_RW_PHYS 0x18600000
  40. #define NANO_PCI_MEM_RW_VIRT 0xf1000000
  41. #define NANO_PCI_MEM_RW_SIZE SZ_1M
  42. #define NANO_PCI_CONFIG_SPACE_PHYS 0x18A10000
  43. #define NANO_PCI_CONFIG_SPACE_VIRT 0xf2000000
  44. #define NANO_PCI_CONFIG_SPACE_SIZE SZ_64K
  45. #endif