map.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* linux/arch/arm/mach-s5pc100/include/mach/map.h
  2. *
  3. * Copyright 2009 Samsung Electronics Co.
  4. * Byungho Min <bhmin@samsung.com>
  5. *
  6. * Based on mach-s3c6400/include/mach/map.h
  7. *
  8. * S5PC1XX - 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 __ASM_ARCH_MAP_H
  15. #define __ASM_ARCH_MAP_H __FILE__
  16. #include <plat/map-base.h>
  17. /* Chip ID */
  18. #define S5PC100_PA_CHIPID (0xE0000000)
  19. #define S5PC1XX_PA_CHIPID S5PC100_PA_CHIPID
  20. #define S5PC1XX_VA_CHIPID S3C_VA_SYS
  21. /* System */
  22. #define S5PC100_PA_SYS (0xE0100000)
  23. #define S5PC100_PA_CLK (S5PC100_PA_SYS + 0x0)
  24. #define S5PC100_PA_PWR (S5PC100_PA_SYS + 0x8000)
  25. #define S5PC1XX_PA_CLK S5PC100_PA_CLK
  26. #define S5PC1XX_PA_PWR S5PC100_PA_PWR
  27. #define S5PC1XX_VA_CLK (S3C_VA_SYS + 0x10000)
  28. #define S5PC1XX_VA_PWR (S3C_VA_SYS + 0x20000)
  29. /* Interrupt */
  30. #define S5PC100_PA_VIC (0xE4000000)
  31. #define S5PC100_VA_VIC S3C_VA_IRQ
  32. #define S5PC100_PA_VIC_OFFSET 0x100000
  33. #define S5PC100_VA_VIC_OFFSET 0x10000
  34. #define S5PC1XX_PA_VIC(x) (S5PC100_PA_VIC + ((x) * S5PC100_PA_VIC_OFFSET))
  35. #define S5PC1XX_VA_VIC(x) (S5PC100_VA_VIC + ((x) * S5PC100_VA_VIC_OFFSET))
  36. /* Timer */
  37. #define S5PC100_PA_TIMER (0xEA000000)
  38. #define S5PC1XX_PA_TIMER S5PC100_PA_TIMER
  39. #define S5PC1XX_VA_TIMER S3C_VA_TIMER
  40. /* UART */
  41. #define S5PC100_PA_UART (0xEC000000)
  42. #define S5PC1XX_PA_UART S5PC100_PA_UART
  43. #define S5PC1XX_VA_UART S3C_VA_UART
  44. /* IIC */
  45. #define S5PC100_PA_IIC (0xEC100000)
  46. /* ETC */
  47. #define S5PC100_PA_SDRAM (0x20000000)
  48. /* compatibility defines. */
  49. #define S3C_PA_UART S5PC100_PA_UART
  50. #define S3C_PA_UART0 (S5PC100_PA_UART + 0x0)
  51. #define S3C_PA_UART1 (S5PC100_PA_UART + 0x400)
  52. #define S3C_PA_UART2 (S5PC100_PA_UART + 0x800)
  53. #define S3C_PA_UART3 (S5PC100_PA_UART + 0xC00)
  54. #define S3C_VA_UART0 (S3C_VA_UART + 0x0)
  55. #define S3C_VA_UART1 (S3C_VA_UART + 0x400)
  56. #define S3C_VA_UART2 (S3C_VA_UART + 0x800)
  57. #define S3C_VA_UART3 (S3C_VA_UART + 0xC00)
  58. #define S3C_UART_OFFSET 0x400
  59. #define S3C_VA_VIC0 (S3C_VA_IRQ + 0x0)
  60. #define S3C_VA_VIC1 (S3C_VA_IRQ + 0x10000)
  61. #define S3C_VA_VIC2 (S3C_VA_IRQ + 0x20000)
  62. #define S3C_PA_IIC S5PC100_PA_IIC
  63. #endif /* __ASM_ARCH_C100_MAP_H */