diff options
-rw-r--r-- | arch/arm/mach-s5pv310/cpu.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/include/mach/map.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv310/include/mach/regs-clock.h | 59 | ||||
-rw-r--r-- | arch/arm/plat-s5p/include/plat/map-s5p.h | 1 |
4 files changed, 38 insertions, 31 deletions
diff --git a/arch/arm/mach-s5pv310/cpu.c b/arch/arm/mach-s5pv310/cpu.c index 196c9f12ed85..2b742957d566 100644 --- a/arch/arm/mach-s5pv310/cpu.c +++ b/arch/arm/mach-s5pv310/cpu.c | |||
@@ -45,7 +45,12 @@ static struct map_desc s5pv310_iodesc[] __initdata = { | |||
45 | .pfn = __phys_to_pfn(S5PV310_PA_L2CC), | 45 | .pfn = __phys_to_pfn(S5PV310_PA_L2CC), |
46 | .length = SZ_4K, | 46 | .length = SZ_4K, |
47 | .type = MT_DEVICE, | 47 | .type = MT_DEVICE, |
48 | }, | 48 | }, { |
49 | .virtual = (unsigned long)S5P_VA_CMU, | ||
50 | .pfn = __phys_to_pfn(S5PV310_PA_CMU), | ||
51 | .length = SZ_128K, | ||
52 | .type = MT_DEVICE, | ||
53 | } | ||
49 | }; | 54 | }; |
50 | 55 | ||
51 | static void s5pv310_idle(void) | 56 | static void s5pv310_idle(void) |
diff --git a/arch/arm/mach-s5pv310/include/mach/map.h b/arch/arm/mach-s5pv310/include/mach/map.h index 6c7b1fc9d8ae..3c00495c5f22 100644 --- a/arch/arm/mach-s5pv310/include/mach/map.h +++ b/arch/arm/mach-s5pv310/include/mach/map.h | |||
@@ -29,6 +29,8 @@ | |||
29 | #define S5PV310_PA_SYSCON (0x10020000) | 29 | #define S5PV310_PA_SYSCON (0x10020000) |
30 | #define S5P_PA_SYSCON S5PV310_PA_SYSCON | 30 | #define S5P_PA_SYSCON S5PV310_PA_SYSCON |
31 | 31 | ||
32 | #define S5PV310_PA_CMU (0x10030000) | ||
33 | |||
32 | #define S5PV310_PA_WATCHDOG (0x10060000) | 34 | #define S5PV310_PA_WATCHDOG (0x10060000) |
33 | 35 | ||
34 | #define S5PV310_PA_COMBINER (0x10448000) | 36 | #define S5PV310_PA_COMBINER (0x10448000) |
diff --git a/arch/arm/mach-s5pv310/include/mach/regs-clock.h b/arch/arm/mach-s5pv310/include/mach/regs-clock.h index 59e3a7e94d80..7727b4563a26 100644 --- a/arch/arm/mach-s5pv310/include/mach/regs-clock.h +++ b/arch/arm/mach-s5pv310/include/mach/regs-clock.h | |||
@@ -15,48 +15,47 @@ | |||
15 | 15 | ||
16 | #include <mach/map.h> | 16 | #include <mach/map.h> |
17 | 17 | ||
18 | #define S5P_CLKREG(x) (S3C_VA_SYS + (x)) | 18 | #define S5P_CLKREG(x) (S5P_VA_CMU + (x)) |
19 | 19 | ||
20 | #define S5P_INFORM0 S5P_CLKREG(0x800) | 20 | #define S5P_INFORM0 S5P_CLKREG(0x800) |
21 | 21 | ||
22 | #define S5P_EPLL_CON0 S5P_CLKREG(0x1C110) | 22 | #define S5P_EPLL_CON0 S5P_CLKREG(0x0C110) |
23 | #define S5P_EPLL_CON1 S5P_CLKREG(0x1C114) | 23 | #define S5P_EPLL_CON1 S5P_CLKREG(0x0C114) |
24 | #define S5P_VPLL_CON0 S5P_CLKREG(0x1C120) | 24 | #define S5P_VPLL_CON0 S5P_CLKREG(0x0C120) |
25 | #define S5P_VPLL_CON1 S5P_CLKREG(0x1C124) | 25 | #define S5P_VPLL_CON1 S5P_CLKREG(0x0C124) |
26 | 26 | ||
27 | #define S5P_CLKSRC_TOP0 S5P_CLKREG(0x1C210) | 27 | #define S5P_CLKSRC_TOP0 S5P_CLKREG(0x0C210) |
28 | #define S5P_CLKSRC_TOP1 S5P_CLKREG(0x1C214) | 28 | #define S5P_CLKSRC_TOP1 S5P_CLKREG(0x0C214) |
29 | 29 | ||
30 | #define S5P_CLKSRC_PERIL0 S5P_CLKREG(0x1C250) | 30 | #define S5P_CLKSRC_PERIL0 S5P_CLKREG(0x0C250) |
31 | 31 | ||
32 | #define S5P_CLKDIV_TOP S5P_CLKREG(0x1C510) | 32 | #define S5P_CLKDIV_TOP S5P_CLKREG(0x0C510) |
33 | 33 | ||
34 | #define S5P_CLKDIV_PERIL0 S5P_CLKREG(0x1C550) | 34 | #define S5P_CLKDIV_PERIL0 S5P_CLKREG(0x0C550) |
35 | #define S5P_CLKDIV_PERIL1 S5P_CLKREG(0x1C554) | 35 | #define S5P_CLKDIV_PERIL1 S5P_CLKREG(0x0C554) |
36 | #define S5P_CLKDIV_PERIL2 S5P_CLKREG(0x1C558) | 36 | #define S5P_CLKDIV_PERIL2 S5P_CLKREG(0x0C558) |
37 | #define S5P_CLKDIV_PERIL3 S5P_CLKREG(0x1C55C) | 37 | #define S5P_CLKDIV_PERIL3 S5P_CLKREG(0x0C55C) |
38 | #define S5P_CLKDIV_PERIL4 S5P_CLKREG(0x1C560) | 38 | #define S5P_CLKDIV_PERIL4 S5P_CLKREG(0x0C560) |
39 | #define S5P_CLKDIV_PERIL5 S5P_CLKREG(0x1C564) | 39 | #define S5P_CLKDIV_PERIL5 S5P_CLKREG(0x0C564) |
40 | 40 | ||
41 | #define S5P_CLKGATE_IP_PERIL S5P_CLKREG(0x1C950) | 41 | #define S5P_CLKGATE_IP_PERIL S5P_CLKREG(0x0C950) |
42 | 42 | ||
43 | #define S5P_CLKSRC_CORE S5P_CLKREG(0x20200) | 43 | #define S5P_CLKSRC_CORE S5P_CLKREG(0x10200) |
44 | #define S5P_CLKDIV_CORE0 S5P_CLKREG(0x10500) | ||
44 | 45 | ||
45 | #define S5P_CLKDIV_CORE0 S5P_CLKREG(0x20500) | 46 | #define S5P_APLL_LOCK S5P_CLKREG(0x14000) |
47 | #define S5P_MPLL_LOCK S5P_CLKREG(0x14004) | ||
48 | #define S5P_APLL_CON0 S5P_CLKREG(0x14100) | ||
49 | #define S5P_APLL_CON1 S5P_CLKREG(0x14104) | ||
50 | #define S5P_MPLL_CON0 S5P_CLKREG(0x14108) | ||
51 | #define S5P_MPLL_CON1 S5P_CLKREG(0x1410C) | ||
46 | 52 | ||
47 | #define S5P_APLL_LOCK S5P_CLKREG(0x24000) | 53 | #define S5P_CLKSRC_CPU S5P_CLKREG(0x14200) |
48 | #define S5P_MPLL_LOCK S5P_CLKREG(0x24004) | 54 | #define S5P_CLKMUX_STATCPU S5P_CLKREG(0x14400) |
49 | #define S5P_APLL_CON0 S5P_CLKREG(0x24100) | ||
50 | #define S5P_APLL_CON1 S5P_CLKREG(0x24104) | ||
51 | #define S5P_MPLL_CON0 S5P_CLKREG(0x24108) | ||
52 | #define S5P_MPLL_CON1 S5P_CLKREG(0x2410C) | ||
53 | 55 | ||
54 | #define S5P_CLKSRC_CPU S5P_CLKREG(0x24200) | 56 | #define S5P_CLKDIV_CPU S5P_CLKREG(0x14500) |
55 | #define S5P_CLKMUX_STATCPU S5P_CLKREG(0x24400) | 57 | #define S5P_CLKDIV_STATCPU S5P_CLKREG(0x14600) |
56 | 58 | ||
57 | #define S5P_CLKDIV_CPU S5P_CLKREG(0x24500) | 59 | #define S5P_CLKGATE_SCLKCPU S5P_CLKREG(0x14800) |
58 | #define S5P_CLKDIV_STATCPU S5P_CLKREG(0x24600) | ||
59 | |||
60 | #define S5P_CLKGATE_SCLKCPU S5P_CLKREG(0x24800) | ||
61 | 60 | ||
62 | #endif /* __ASM_ARCH_REGS_CLOCK_H */ | 61 | #endif /* __ASM_ARCH_REGS_CLOCK_H */ |
diff --git a/arch/arm/plat-s5p/include/plat/map-s5p.h b/arch/arm/plat-s5p/include/plat/map-s5p.h index 54e9fb9d315e..589779205f12 100644 --- a/arch/arm/plat-s5p/include/plat/map-s5p.h +++ b/arch/arm/plat-s5p/include/plat/map-s5p.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #define S5P_VA_GIC_DIST S5P_VA_COREPERI(0x1000) | 29 | #define S5P_VA_GIC_DIST S5P_VA_COREPERI(0x1000) |
30 | 30 | ||
31 | #define S5P_VA_L2CC S3C_ADDR(0x00900000) | 31 | #define S5P_VA_L2CC S3C_ADDR(0x00900000) |
32 | #define S5P_VA_CMU S3C_ADDR(0x00920000) | ||
32 | 33 | ||
33 | #define S5P_VA_UART(x) (S3C_VA_UART + ((x) * S3C_UART_OFFSET)) | 34 | #define S5P_VA_UART(x) (S3C_VA_UART + ((x) * S3C_UART_OFFSET)) |
34 | #define S5P_VA_UART0 S5P_VA_UART(0) | 35 | #define S5P_VA_UART0 S5P_VA_UART(0) |