0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __ASM_PLAT_MAP_S3C_H
0010 #define __ASM_PLAT_MAP_S3C_H __FILE__
0011
0012 #include "map.h"
0013
0014 #define S3C24XX_VA_IRQ S3C_VA_IRQ
0015 #define S3C24XX_VA_MEMCTRL S3C_VA_MEM
0016 #define S3C24XX_VA_UART S3C_VA_UART
0017
0018 #define S3C24XX_VA_TIMER S3C_VA_TIMER
0019 #define S3C24XX_VA_CLKPWR S3C_VA_SYS
0020 #define S3C24XX_VA_WATCHDOG S3C_VA_WATCHDOG
0021
0022 #define S3C2412_VA_SSMC S3C_ADDR_CPU(0x00000000)
0023 #define S3C2412_VA_EBI S3C_ADDR_CPU(0x00100000)
0024
0025 #define S3C2410_PA_UART (0x50000000)
0026 #define S3C24XX_PA_UART S3C2410_PA_UART
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 #define S3C2410_PA_GPIO (0x56000000)
0040 #define S3C24XX_PA_GPIO S3C2410_PA_GPIO
0041
0042 #define S3C24XX_VA_GPIO ((S3C24XX_PA_GPIO - S3C24XX_PA_UART) + S3C24XX_VA_UART)
0043 #define S3C64XX_VA_GPIO S3C_ADDR_CPU(0x00000000)
0044
0045 #define S3C64XX_VA_MODEM S3C_ADDR_CPU(0x00100000)
0046 #define S3C64XX_VA_USB_HSPHY S3C_ADDR_CPU(0x00200000)
0047
0048 #define S3C_VA_USB_HSPHY S3C64XX_VA_USB_HSPHY
0049
0050 #define S3C2410_ADDR(x) S3C_ADDR(x)
0051
0052
0053
0054 #if defined(CONFIG_CPU_S3C2412)
0055 #ifndef __ASSEMBLY__
0056 extern void __iomem *s3c24xx_va_gpio2;
0057 #endif
0058 #ifdef CONFIG_CPU_S3C2412_ONLY
0059 #define S3C24XX_VA_GPIO2 (S3C24XX_VA_GPIO + 0x10)
0060 #else
0061 #define S3C24XX_VA_GPIO2 s3c24xx_va_gpio2
0062 #endif
0063 #else
0064 #define s3c24xx_va_gpio2 S3C24XX_VA_GPIO
0065 #define S3C24XX_VA_GPIO2 S3C24XX_VA_GPIO
0066 #endif
0067
0068 #include "map-s5p.h"
0069
0070 #endif