map.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * arch/arm/mach-w90x900/include/mach/map.h
  3. *
  4. * Copyright (c) 2008 Nuvoton technology corporation
  5. * All rights reserved.
  6. *
  7. * Wan ZongShun <mcuos.com@gmail.com>
  8. *
  9. * Based on arch/arm/mach-s3c2410/include/mach/map.h
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. */
  17. #ifndef __ASM_ARCH_MAP_H
  18. #define __ASM_ARCH_MAP_H
  19. #ifndef __ASSEMBLY__
  20. #define W90X900_ADDR(x) ((void __iomem *)(0xF0000000 + (x)))
  21. #else
  22. #define W90X900_ADDR(x) (0xF0000000 + (x))
  23. #endif
  24. #define AHB_IO_BASE 0xB0000000
  25. #define APB_IO_BASE 0xB8000000
  26. #define CLOCKPW_BASE (APB_IO_BASE+0x200)
  27. #define AIC_IO_BASE (APB_IO_BASE+0x2000)
  28. #define TIMER_IO_BASE (APB_IO_BASE+0x1000)
  29. /*
  30. * interrupt controller is the first thing we put in, to make
  31. * the assembly code for the irq detection easier
  32. */
  33. #define W90X900_VA_IRQ W90X900_ADDR(0x00000000)
  34. #define W90X900_PA_IRQ (0xB8002000)
  35. #define W90X900_SZ_IRQ SZ_4K
  36. #define W90X900_VA_GCR W90X900_ADDR(0x08002000)
  37. #define W90X900_PA_GCR (0xB0000000)
  38. #define W90X900_SZ_GCR SZ_4K
  39. /* Clock and Power management */
  40. #define W90X900_VA_CLKPWR (W90X900_VA_GCR+0x200)
  41. #define W90X900_PA_CLKPWR (0xB0000200)
  42. #define W90X900_SZ_CLKPWR SZ_4K
  43. /* EBI management */
  44. #define W90X900_VA_EBI W90X900_ADDR(0x00001000)
  45. #define W90X900_PA_EBI (0xB0001000)
  46. #define W90X900_SZ_EBI SZ_4K
  47. /* UARTs */
  48. #define W90X900_VA_UART W90X900_ADDR(0x08000000)
  49. #define W90X900_PA_UART (0xB8000000)
  50. #define W90X900_SZ_UART SZ_4K
  51. /* Timers */
  52. #define W90X900_VA_TIMER W90X900_ADDR(0x08001000)
  53. #define W90X900_PA_TIMER (0xB8001000)
  54. #define W90X900_SZ_TIMER SZ_4K
  55. /* GPIO ports */
  56. #define W90X900_VA_GPIO W90X900_ADDR(0x08003000)
  57. #define W90X900_PA_GPIO (0xB8003000)
  58. #define W90X900_SZ_GPIO SZ_4K
  59. #endif /* __ASM_ARCH_MAP_H */