diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2012-03-11 01:21:36 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-03-11 01:21:36 -0500 |
commit | c15a04338b5a6d4305d107a5b6c0cd43418b7f3e (patch) | |
tree | 04d40a3b4fbc0477aa71c11044a20ff2d6666004 /arch/arm/mach-s5pv210 | |
parent | 192cfd58774b4d17b2fe8bdc77d89c2ef4e0591d (diff) | |
parent | 60571f98d292b74586ff8330d8bc965eb01e8df0 (diff) |
Merge branch 'next/cleanup-use-static' into next/cleanup-exynos-clock
Diffstat (limited to 'arch/arm/mach-s5pv210')
-rw-r--r-- | arch/arm/mach-s5pv210/common.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/dma.c | 46 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/include/mach/system.h | 21 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 2 |
5 files changed, 12 insertions, 71 deletions
diff --git a/arch/arm/mach-s5pv210/common.c b/arch/arm/mach-s5pv210/common.c index 9c1bcdcc12c3..4c9e9027df9a 100644 --- a/arch/arm/mach-s5pv210/common.c +++ b/arch/arm/mach-s5pv210/common.c | |||
@@ -142,14 +142,6 @@ static struct map_desc s5pv210_iodesc[] __initdata = { | |||
142 | } | 142 | } |
143 | }; | 143 | }; |
144 | 144 | ||
145 | static void s5pv210_idle(void) | ||
146 | { | ||
147 | if (!need_resched()) | ||
148 | cpu_do_idle(); | ||
149 | |||
150 | local_irq_enable(); | ||
151 | } | ||
152 | |||
153 | void s5pv210_restart(char mode, const char *cmd) | 145 | void s5pv210_restart(char mode, const char *cmd) |
154 | { | 146 | { |
155 | __raw_writel(0x1, S5P_SWRESET); | 147 | __raw_writel(0x1, S5P_SWRESET); |
@@ -247,10 +239,6 @@ core_initcall(s5pv210_core_init); | |||
247 | int __init s5pv210_init(void) | 239 | int __init s5pv210_init(void) |
248 | { | 240 | { |
249 | printk(KERN_INFO "S5PV210: Initializing architecture\n"); | 241 | printk(KERN_INFO "S5PV210: Initializing architecture\n"); |
250 | |||
251 | /* set idle function */ | ||
252 | pm_idle = s5pv210_idle; | ||
253 | |||
254 | return device_register(&s5pv210_dev); | 242 | return device_register(&s5pv210_dev); |
255 | } | 243 | } |
256 | 244 | ||
diff --git a/arch/arm/mach-s5pv210/dma.c b/arch/arm/mach-s5pv210/dma.c index a6113e0267f2..86ce62f66190 100644 --- a/arch/arm/mach-s5pv210/dma.c +++ b/arch/arm/mach-s5pv210/dma.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | static u64 dma_dmamask = DMA_BIT_MASK(32); | 36 | static u64 dma_dmamask = DMA_BIT_MASK(32); |
37 | 37 | ||
38 | u8 pdma0_peri[] = { | 38 | static u8 pdma0_peri[] = { |
39 | DMACH_UART0_RX, | 39 | DMACH_UART0_RX, |
40 | DMACH_UART0_TX, | 40 | DMACH_UART0_TX, |
41 | DMACH_UART1_RX, | 41 | DMACH_UART1_RX, |
@@ -66,28 +66,15 @@ u8 pdma0_peri[] = { | |||
66 | DMACH_SPDIF, | 66 | DMACH_SPDIF, |
67 | }; | 67 | }; |
68 | 68 | ||
69 | struct dma_pl330_platdata s5pv210_pdma0_pdata = { | 69 | static struct dma_pl330_platdata s5pv210_pdma0_pdata = { |
70 | .nr_valid_peri = ARRAY_SIZE(pdma0_peri), | 70 | .nr_valid_peri = ARRAY_SIZE(pdma0_peri), |
71 | .peri_id = pdma0_peri, | 71 | .peri_id = pdma0_peri, |
72 | }; | 72 | }; |
73 | 73 | ||
74 | struct amba_device s5pv210_device_pdma0 = { | 74 | static AMBA_AHB_DEVICE(s5pv210_pdma0, "dma-pl330.0", 0x00041330, |
75 | .dev = { | 75 | S5PV210_PA_PDMA0, {IRQ_PDMA0}, &s5pv210_pdma0_pdata); |
76 | .init_name = "dma-pl330.0", | ||
77 | .dma_mask = &dma_dmamask, | ||
78 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
79 | .platform_data = &s5pv210_pdma0_pdata, | ||
80 | }, | ||
81 | .res = { | ||
82 | .start = S5PV210_PA_PDMA0, | ||
83 | .end = S5PV210_PA_PDMA0 + SZ_4K, | ||
84 | .flags = IORESOURCE_MEM, | ||
85 | }, | ||
86 | .irq = {IRQ_PDMA0, NO_IRQ}, | ||
87 | .periphid = 0x00041330, | ||
88 | }; | ||
89 | 76 | ||
90 | u8 pdma1_peri[] = { | 77 | static u8 pdma1_peri[] = { |
91 | DMACH_UART0_RX, | 78 | DMACH_UART0_RX, |
92 | DMACH_UART0_TX, | 79 | DMACH_UART0_TX, |
93 | DMACH_UART1_RX, | 80 | DMACH_UART1_RX, |
@@ -122,36 +109,23 @@ u8 pdma1_peri[] = { | |||
122 | DMACH_PCM2_TX, | 109 | DMACH_PCM2_TX, |
123 | }; | 110 | }; |
124 | 111 | ||
125 | struct dma_pl330_platdata s5pv210_pdma1_pdata = { | 112 | static struct dma_pl330_platdata s5pv210_pdma1_pdata = { |
126 | .nr_valid_peri = ARRAY_SIZE(pdma1_peri), | 113 | .nr_valid_peri = ARRAY_SIZE(pdma1_peri), |
127 | .peri_id = pdma1_peri, | 114 | .peri_id = pdma1_peri, |
128 | }; | 115 | }; |
129 | 116 | ||
130 | struct amba_device s5pv210_device_pdma1 = { | 117 | static AMBA_AHB_DEVICE(s5pv210_pdma1, "dma-pl330.1", 0x00041330, |
131 | .dev = { | 118 | S5PV210_PA_PDMA1, {IRQ_PDMA1}, &s5pv210_pdma1_pdata); |
132 | .init_name = "dma-pl330.1", | ||
133 | .dma_mask = &dma_dmamask, | ||
134 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
135 | .platform_data = &s5pv210_pdma1_pdata, | ||
136 | }, | ||
137 | .res = { | ||
138 | .start = S5PV210_PA_PDMA1, | ||
139 | .end = S5PV210_PA_PDMA1 + SZ_4K, | ||
140 | .flags = IORESOURCE_MEM, | ||
141 | }, | ||
142 | .irq = {IRQ_PDMA1, NO_IRQ}, | ||
143 | .periphid = 0x00041330, | ||
144 | }; | ||
145 | 119 | ||
146 | static int __init s5pv210_dma_init(void) | 120 | static int __init s5pv210_dma_init(void) |
147 | { | 121 | { |
148 | dma_cap_set(DMA_SLAVE, s5pv210_pdma0_pdata.cap_mask); | 122 | dma_cap_set(DMA_SLAVE, s5pv210_pdma0_pdata.cap_mask); |
149 | dma_cap_set(DMA_CYCLIC, s5pv210_pdma0_pdata.cap_mask); | 123 | dma_cap_set(DMA_CYCLIC, s5pv210_pdma0_pdata.cap_mask); |
150 | amba_device_register(&s5pv210_device_pdma0, &iomem_resource); | 124 | amba_device_register(&s5pv210_pdma0_device, &iomem_resource); |
151 | 125 | ||
152 | dma_cap_set(DMA_SLAVE, s5pv210_pdma1_pdata.cap_mask); | 126 | dma_cap_set(DMA_SLAVE, s5pv210_pdma1_pdata.cap_mask); |
153 | dma_cap_set(DMA_CYCLIC, s5pv210_pdma1_pdata.cap_mask); | 127 | dma_cap_set(DMA_CYCLIC, s5pv210_pdma1_pdata.cap_mask); |
154 | amba_device_register(&s5pv210_device_pdma1, &iomem_resource); | 128 | amba_device_register(&s5pv210_pdma1_device, &iomem_resource); |
155 | 129 | ||
156 | return 0; | 130 | return 0; |
157 | } | 131 | } |
diff --git a/arch/arm/mach-s5pv210/include/mach/system.h b/arch/arm/mach-s5pv210/include/mach/system.h deleted file mode 100644 index bf288ced860a..000000000000 --- a/arch/arm/mach-s5pv210/include/mach/system.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | /* linux/arch/arm/mach-s5pv210/include/mach/system.h | ||
2 | * | ||
3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com/ | ||
5 | * | ||
6 | * S5PV210 - system support header | ||
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_SYSTEM_H | ||
14 | #define __ASM_ARCH_SYSTEM_H __FILE__ | ||
15 | |||
16 | static void arch_idle(void) | ||
17 | { | ||
18 | /* nothing here yet */ | ||
19 | } | ||
20 | |||
21 | #endif /* __ASM_ARCH_SYSTEM_H */ | ||
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index ff9152610439..2cf5ed75f390 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -844,7 +844,7 @@ static struct s5p_fimc_isp_info goni_camera_sensors[] = { | |||
844 | }, | 844 | }, |
845 | }; | 845 | }; |
846 | 846 | ||
847 | struct s5p_platform_fimc goni_fimc_md_platdata __initdata = { | 847 | static struct s5p_platform_fimc goni_fimc_md_platdata __initdata = { |
848 | .isp_info = goni_camera_sensors, | 848 | .isp_info = goni_camera_sensors, |
849 | .num_clients = ARRAY_SIZE(goni_camera_sensors), | 849 | .num_clients = ARRAY_SIZE(goni_camera_sensors), |
850 | }; | 850 | }; |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index dff9ea7b5bba..0933c8e1eb7b 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
@@ -140,7 +140,7 @@ static struct dm9000_plat_data smdkv210_dm9000_platdata = { | |||
140 | .dev_addr = { 0x00, 0x09, 0xc0, 0xff, 0xec, 0x48 }, | 140 | .dev_addr = { 0x00, 0x09, 0xc0, 0xff, 0xec, 0x48 }, |
141 | }; | 141 | }; |
142 | 142 | ||
143 | struct platform_device smdkv210_dm9000 = { | 143 | static struct platform_device smdkv210_dm9000 = { |
144 | .name = "dm9000", | 144 | .name = "dm9000", |
145 | .id = -1, | 145 | .id = -1, |
146 | .num_resources = ARRAY_SIZE(smdkv210_dm9000_resources), | 146 | .num_resources = ARRAY_SIZE(smdkv210_dm9000_resources), |