diff options
author | Byungho Min <bhminjames@gmail.com> | 2009-06-23 08:39:49 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-08-16 18:24:16 -0400 |
commit | ff54b4578448d616eb177e216acd599ecf5ee5b1 (patch) | |
tree | 06413c45273b536046803042b70161dd52868e21 /arch/arm/mach-s5pc100 | |
parent | b282e29b547937d1610f38d6aa1c485426b62650 (diff) |
ARM: S5PC100: Memory map
S5PC100's the physical IO space starts at 0xe000"0000. To maximize space for
vmalloc, the virtual IO space starts at 0xf400"0000 as same as other samsung
CPUs(s3c24xx and s3c64xx) do.
Signed-off-by: Byungho Min <bhmin@samsung.com>
[ben-linux@fluff.org: subject and description fixup]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s5pc100')
-rw-r--r-- | arch/arm/mach-s5pc100/include/mach/map.h | 75 | ||||
-rw-r--r-- | arch/arm/mach-s5pc100/include/mach/memory.h | 18 |
2 files changed, 93 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pc100/include/mach/map.h b/arch/arm/mach-s5pc100/include/mach/map.h new file mode 100644 index 000000000000..9e9f39130b2c --- /dev/null +++ b/arch/arm/mach-s5pc100/include/mach/map.h | |||
@@ -0,0 +1,75 @@ | |||
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 | |||
15 | #ifndef __ASM_ARCH_MAP_H | ||
16 | #define __ASM_ARCH_MAP_H __FILE__ | ||
17 | |||
18 | #include <plat/map-base.h> | ||
19 | |||
20 | |||
21 | /* Chip ID */ | ||
22 | #define S5PC100_PA_CHIPID (0xE0000000) | ||
23 | #define S5PC1XX_PA_CHIPID S5PC100_PA_CHIPID | ||
24 | #define S5PC1XX_VA_CHIPID S3C_VA_SYS | ||
25 | |||
26 | /* System */ | ||
27 | #define S5PC100_PA_SYS (0xE0100000) | ||
28 | #define S5PC100_PA_CLK (S5PC100_PA_SYS + 0x0) | ||
29 | #define S5PC100_PA_PWR (S5PC100_PA_SYS + 0x8000) | ||
30 | #define S5PC1XX_PA_CLK S5PC100_PA_CLK | ||
31 | #define S5PC1XX_PA_PWR S5PC100_PA_PWR | ||
32 | #define S5PC1XX_VA_CLK (S3C_VA_SYS + 0x10000) | ||
33 | #define S5PC1XX_VA_PWR (S3C_VA_SYS + 0x20000) | ||
34 | |||
35 | /* Interrupt */ | ||
36 | #define S5PC100_PA_VIC (0xE4000000) | ||
37 | #define S5PC100_VA_VIC S3C_VA_IRQ | ||
38 | #define S5PC100_PA_VIC_OFFSET 0x100000 | ||
39 | #define S5PC100_VA_VIC_OFFSET 0x10000 | ||
40 | #define S5PC1XX_PA_VIC(x) (S5PC100_PA_VIC + ((x) * S5PC100_PA_VIC_OFFSET)) | ||
41 | #define S5PC1XX_VA_VIC(x) (S5PC100_VA_VIC + ((x) * S5PC100_VA_VIC_OFFSET)) | ||
42 | |||
43 | /* Timer */ | ||
44 | #define S5PC100_PA_TIMER (0xEA000000) | ||
45 | #define S5PC1XX_PA_TIMER S5PC100_PA_TIMER | ||
46 | #define S5PC1XX_VA_TIMER S3C_VA_TIMER | ||
47 | |||
48 | /* UART */ | ||
49 | #define S5PC100_PA_UART (0xEC000000) | ||
50 | #define S5PC1XX_PA_UART S5PC100_PA_UART | ||
51 | #define S5PC1XX_VA_UART S3C_VA_UART | ||
52 | |||
53 | /* IIC */ | ||
54 | #define S5PC100_PA_IIC (0xEC100000) | ||
55 | |||
56 | /* ETC */ | ||
57 | #define S5PC100_PA_SDRAM (0x20000000) | ||
58 | |||
59 | /* compatibility defines. */ | ||
60 | #define S3C_PA_UART S5PC100_PA_UART | ||
61 | #define S3C_PA_UART0 (S5PC100_PA_UART + 0x0) | ||
62 | #define S3C_PA_UART1 (S5PC100_PA_UART + 0x400) | ||
63 | #define S3C_PA_UART2 (S5PC100_PA_UART + 0x800) | ||
64 | #define S3C_PA_UART3 (S5PC100_PA_UART + 0xC00) | ||
65 | #define S3C_VA_UART0 (S3C_VA_UART + 0x0) | ||
66 | #define S3C_VA_UART1 (S3C_VA_UART + 0x400) | ||
67 | #define S3C_VA_UART2 (S3C_VA_UART + 0x800) | ||
68 | #define S3C_VA_UART3 (S3C_VA_UART + 0xC00) | ||
69 | #define S3C_UART_OFFSET 0x400 | ||
70 | #define S3C_VA_VIC0 (S3C_VA_IRQ + 0x0) | ||
71 | #define S3C_VA_VIC1 (S3C_VA_IRQ + 0x10000) | ||
72 | #define S3C_VA_VIC2 (S3C_VA_IRQ + 0x20000) | ||
73 | #define S3C_PA_IIC S5PC100_PA_IIC | ||
74 | |||
75 | #endif /* __ASM_ARCH_C100_MAP_H */ | ||
diff --git a/arch/arm/mach-s5pc100/include/mach/memory.h b/arch/arm/mach-s5pc100/include/mach/memory.h new file mode 100644 index 000000000000..4b60d18179f7 --- /dev/null +++ b/arch/arm/mach-s5pc100/include/mach/memory.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* arch/arm/mach-s5pc100/include/mach/memory.h | ||
2 | * | ||
3 | * Copyright 2008 Samsung Electronics Co. | ||
4 | * Byungho Min <bhmin@samsung.com> | ||
5 | * | ||
6 | * Based on mach-s3c6400/include/mach/memory.h | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __ASM_ARCH_MEMORY_H | ||
14 | #define __ASM_ARCH_MEMORY_H | ||
15 | |||
16 | #define PHYS_OFFSET UL(0x20000000) | ||
17 | |||
18 | #endif | ||