diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-06 16:20:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-06 16:20:10 -0400 |
commit | c6799ade4ae04b53a5f677e5289116155ff01574 (patch) | |
tree | 3601b5e2387e39d62c207e4268c6cc5c68f2a364 /arch/arm/plat-s3c24xx | |
parent | b7405e16435f710edfae6ba32bef4ca20d3de145 (diff) | |
parent | 5cd47155155a32e5b944ac9fc3f3dc578e429aa0 (diff) |
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (82 commits)
[ARM] Add comments marking in-use ptrace numbers
[ARM] Move syscall saving out of the way of utrace
[ARM] 4360/1: S3C24XX: regs-udc.h remove unused macro
[ARM] 4358/1: S3C24XX: mach-qt2410.c: remove linux/mmc/protocol.h header
[ARM] mm 10: allow memory type to be specified with ioremap
[ARM] mm 9: add additional device memory types
[ARM] mm 8: define mem_types table L1 bit 4 to be for ARMv6
[ARM] iop: add missing parens in macro
[ARM] mm 7: remove duplicated __ioremap() prototypes
ARM: OMAP: fix OMAP1 mpuio suspend/resume oops
ARM: OMAP: MPUIO wake updates
ARM: OMAP: speed up gpio irq handling
ARM: OMAP: plat-omap changes for 2430 SDP
ARM: OMAP: gpio object shrinkage, cleanup
ARM: OMAP: /sys/kernel/debug/omap_gpio
ARM: OMAP: Implement workaround for GPIO wakeup bug in OMAP2420 silicon
ARM: OMAP: Enable 24xx GPIO autoidling
[ARM] 4318/2: DSM-G600 Board Support
[ARM] 4227/1: minor head.S fixups
[ARM] 4328/1: Move i.MX UART regs to driver
...
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r-- | arch/arm/plat-s3c24xx/clock.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/cpu.c | 38 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/dma.c | 13 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/irq.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/s3c244x-irq.c | 1 |
5 files changed, 18 insertions, 47 deletions
diff --git a/arch/arm/plat-s3c24xx/clock.c b/arch/arm/plat-s3c24xx/clock.c index d3dc03a7383a..79cda0faec86 100644 --- a/arch/arm/plat-s3c24xx/clock.c +++ b/arch/arm/plat-s3c24xx/clock.c | |||
@@ -404,6 +404,18 @@ int s3c24xx_register_clock(struct clk *clk) | |||
404 | return 0; | 404 | return 0; |
405 | } | 405 | } |
406 | 406 | ||
407 | int s3c24xx_register_clocks(struct clk **clks, int nr_clks) | ||
408 | { | ||
409 | int fails = 0; | ||
410 | |||
411 | for (; nr_clks > 0; nr_clks--, clks++) { | ||
412 | if (s3c24xx_register_clock(*clks) < 0) | ||
413 | fails++; | ||
414 | } | ||
415 | |||
416 | return fails; | ||
417 | } | ||
418 | |||
407 | /* initalise all the clocks */ | 419 | /* initalise all the clocks */ |
408 | 420 | ||
409 | int __init s3c24xx_setup_clocks(unsigned long xtal, | 421 | int __init s3c24xx_setup_clocks(unsigned long xtal, |
diff --git a/arch/arm/plat-s3c24xx/cpu.c b/arch/arm/plat-s3c24xx/cpu.c index 6a2d1070e5a0..8ce4904d3131 100644 --- a/arch/arm/plat-s3c24xx/cpu.c +++ b/arch/arm/plat-s3c24xx/cpu.c | |||
@@ -181,24 +181,6 @@ s3c_lookup_cpu(unsigned long idcode) | |||
181 | return NULL; | 181 | return NULL; |
182 | } | 182 | } |
183 | 183 | ||
184 | /* board information */ | ||
185 | |||
186 | static struct s3c24xx_board *board; | ||
187 | |||
188 | void s3c24xx_set_board(struct s3c24xx_board *b) | ||
189 | { | ||
190 | int i; | ||
191 | |||
192 | board = b; | ||
193 | |||
194 | if (b->clocks_count != 0) { | ||
195 | struct clk **ptr = b->clocks; | ||
196 | |||
197 | for (i = b->clocks_count; i > 0; i--, ptr++) | ||
198 | s3c24xx_register_clock(*ptr); | ||
199 | } | ||
200 | } | ||
201 | |||
202 | /* cpu information */ | 184 | /* cpu information */ |
203 | 185 | ||
204 | static struct cpu_table *cpu; | 186 | static struct cpu_table *cpu; |
@@ -342,26 +324,6 @@ static int __init s3c_arch_init(void) | |||
342 | return ret; | 324 | return ret; |
343 | 325 | ||
344 | ret = platform_add_devices(s3c24xx_uart_devs, nr_uarts); | 326 | ret = platform_add_devices(s3c24xx_uart_devs, nr_uarts); |
345 | if (ret != 0) | ||
346 | return ret; | ||
347 | |||
348 | if (board != NULL) { | ||
349 | struct platform_device **ptr = board->devices; | ||
350 | int i; | ||
351 | |||
352 | for (i = 0; i < board->devices_count; i++, ptr++) { | ||
353 | ret = platform_device_register(*ptr); | ||
354 | |||
355 | if (ret) { | ||
356 | printk(KERN_ERR "s3c24xx: failed to add board device %s (%d) @%p\n", (*ptr)->name, ret, *ptr); | ||
357 | } | ||
358 | } | ||
359 | |||
360 | /* mask any error, we may not need all these board | ||
361 | * devices */ | ||
362 | ret = 0; | ||
363 | } | ||
364 | |||
365 | return ret; | 327 | return ret; |
366 | } | 328 | } |
367 | 329 | ||
diff --git a/arch/arm/plat-s3c24xx/dma.c b/arch/arm/plat-s3c24xx/dma.c index 4540a806f522..6f03c9370979 100644 --- a/arch/arm/plat-s3c24xx/dma.c +++ b/arch/arm/plat-s3c24xx/dma.c | |||
@@ -44,7 +44,7 @@ static struct kmem_cache *dma_kmem; | |||
44 | 44 | ||
45 | static int dma_channels; | 45 | static int dma_channels; |
46 | 46 | ||
47 | struct s3c24xx_dma_selection dma_sel; | 47 | static struct s3c24xx_dma_selection dma_sel; |
48 | 48 | ||
49 | /* dma channel state information */ | 49 | /* dma channel state information */ |
50 | struct s3c2410_dma_chan s3c2410_chans[S3C2410_DMA_CHANNELS]; | 50 | struct s3c2410_dma_chan s3c2410_chans[S3C2410_DMA_CHANNELS]; |
@@ -880,7 +880,7 @@ static int s3c2410_dma_dostop(struct s3c2410_dma_chan *chan) | |||
880 | return 0; | 880 | return 0; |
881 | } | 881 | } |
882 | 882 | ||
883 | void s3c2410_dma_waitforstop(struct s3c2410_dma_chan *chan) | 883 | static void s3c2410_dma_waitforstop(struct s3c2410_dma_chan *chan) |
884 | { | 884 | { |
885 | unsigned long tmp; | 885 | unsigned long tmp; |
886 | unsigned int timeout = 0x10000; | 886 | unsigned int timeout = 0x10000; |
@@ -957,8 +957,7 @@ static int s3c2410_dma_flush(struct s3c2410_dma_chan *chan) | |||
957 | return 0; | 957 | return 0; |
958 | } | 958 | } |
959 | 959 | ||
960 | int | 960 | static int s3c2410_dma_started(struct s3c2410_dma_chan *chan) |
961 | s3c2410_dma_started(struct s3c2410_dma_chan *chan) | ||
962 | { | 961 | { |
963 | unsigned long flags; | 962 | unsigned long flags; |
964 | 963 | ||
@@ -1280,7 +1279,7 @@ static void s3c2410_dma_cache_ctor(void *p, struct kmem_cache *c, unsigned long | |||
1280 | 1279 | ||
1281 | /* initialisation code */ | 1280 | /* initialisation code */ |
1282 | 1281 | ||
1283 | int __init s3c24xx_dma_sysclass_init(void) | 1282 | static int __init s3c24xx_dma_sysclass_init(void) |
1284 | { | 1283 | { |
1285 | int ret = sysdev_class_register(&dma_sysclass); | 1284 | int ret = sysdev_class_register(&dma_sysclass); |
1286 | 1285 | ||
@@ -1292,7 +1291,7 @@ int __init s3c24xx_dma_sysclass_init(void) | |||
1292 | 1291 | ||
1293 | core_initcall(s3c24xx_dma_sysclass_init); | 1292 | core_initcall(s3c24xx_dma_sysclass_init); |
1294 | 1293 | ||
1295 | int __init s3c24xx_dma_sysdev_register(void) | 1294 | static int __init s3c24xx_dma_sysdev_register(void) |
1296 | { | 1295 | { |
1297 | struct s3c2410_dma_chan *cp = s3c2410_chans; | 1296 | struct s3c2410_dma_chan *cp = s3c2410_chans; |
1298 | int channel, ret; | 1297 | int channel, ret; |
@@ -1396,7 +1395,7 @@ static struct s3c24xx_dma_order *dma_order; | |||
1396 | * channel | 1395 | * channel |
1397 | */ | 1396 | */ |
1398 | 1397 | ||
1399 | struct s3c2410_dma_chan *s3c2410_dma_map_channel(int channel) | 1398 | static struct s3c2410_dma_chan *s3c2410_dma_map_channel(int channel) |
1400 | { | 1399 | { |
1401 | struct s3c24xx_dma_order_ch *ord = NULL; | 1400 | struct s3c24xx_dma_order_ch *ord = NULL; |
1402 | struct s3c24xx_dma_map *ch_map; | 1401 | struct s3c24xx_dma_map *ch_map; |
diff --git a/arch/arm/plat-s3c24xx/irq.c b/arch/arm/plat-s3c24xx/irq.c index ce186398e3fd..8fbc88470261 100644 --- a/arch/arm/plat-s3c24xx/irq.c +++ b/arch/arm/plat-s3c24xx/irq.c | |||
@@ -54,7 +54,6 @@ | |||
54 | #include <linux/module.h> | 54 | #include <linux/module.h> |
55 | #include <linux/interrupt.h> | 55 | #include <linux/interrupt.h> |
56 | #include <linux/ioport.h> | 56 | #include <linux/ioport.h> |
57 | #include <linux/ptrace.h> | ||
58 | #include <linux/sysdev.h> | 57 | #include <linux/sysdev.h> |
59 | 58 | ||
60 | #include <asm/hardware.h> | 59 | #include <asm/hardware.h> |
diff --git a/arch/arm/plat-s3c24xx/s3c244x-irq.c b/arch/arm/plat-s3c24xx/s3c244x-irq.c index a0e39d894014..2dbb2606d448 100644 --- a/arch/arm/plat-s3c24xx/s3c244x-irq.c +++ b/arch/arm/plat-s3c24xx/s3c244x-irq.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/ioport.h> | 25 | #include <linux/ioport.h> |
26 | #include <linux/ptrace.h> | ||
27 | #include <linux/sysdev.h> | 26 | #include <linux/sysdev.h> |
28 | 27 | ||
29 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |