Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (c) 2008 Simtec Electronics
0004  *  Ben Dooks <ben@simtec.co.uk>
0005  *
0006  * S3C24XX - Memory map definitions
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  * GPIO ports
0030  *
0031  * the calculation for the VA of this must ensure that
0032  * it is the same distance apart from the UART in the
0033  * phsyical address space, as the initial mapping for the IO
0034  * is done as a 1:1 mapping. This puts it (currently) at
0035  * 0xFA800000, which is not in the way of any current mapping
0036  * by the base system.
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 /* deal with the registers that move under the 2412/2413 */
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 /* __ASM_PLAT_MAP_S3C_H */