diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2010-02-26 14:04:15 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-02-26 14:06:24 -0500 |
commit | a7790532f5b7358c33a6b1834dc2b318de209f31 (patch) | |
tree | 0ceb9e24b3f54cb5c8453fb5a218e2a94a0f1cce /arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |
parent | 2764fb4244cc1bc08df3667924ca4a972e90ac70 (diff) | |
parent | 60b341b778cc2929df16c0a504c91621b3c6a4ad (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
The SmartMedia FTL code depends on new kfifo bits from 2.6.33
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7722.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 91 |
1 files changed, 55 insertions, 36 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 5491b094cf05..b5335b5e309c 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -20,6 +20,55 @@ | |||
20 | #include <asm/dma-sh.h> | 20 | #include <asm/dma-sh.h> |
21 | #include <cpu/sh7722.h> | 21 | #include <cpu/sh7722.h> |
22 | 22 | ||
23 | /* Serial */ | ||
24 | static struct plat_sci_port scif0_platform_data = { | ||
25 | .mapbase = 0xffe00000, | ||
26 | .flags = UPF_BOOT_AUTOCONF, | ||
27 | .type = PORT_SCIF, | ||
28 | .irqs = { 80, 80, 80, 80 }, | ||
29 | .clk = "scif0", | ||
30 | }; | ||
31 | |||
32 | static struct platform_device scif0_device = { | ||
33 | .name = "sh-sci", | ||
34 | .id = 0, | ||
35 | .dev = { | ||
36 | .platform_data = &scif0_platform_data, | ||
37 | }, | ||
38 | }; | ||
39 | |||
40 | static struct plat_sci_port scif1_platform_data = { | ||
41 | .mapbase = 0xffe10000, | ||
42 | .flags = UPF_BOOT_AUTOCONF, | ||
43 | .type = PORT_SCIF, | ||
44 | .irqs = { 81, 81, 81, 81 }, | ||
45 | .clk = "scif1", | ||
46 | }; | ||
47 | |||
48 | static struct platform_device scif1_device = { | ||
49 | .name = "sh-sci", | ||
50 | .id = 1, | ||
51 | .dev = { | ||
52 | .platform_data = &scif1_platform_data, | ||
53 | }, | ||
54 | }; | ||
55 | |||
56 | static struct plat_sci_port scif2_platform_data = { | ||
57 | .mapbase = 0xffe20000, | ||
58 | .flags = UPF_BOOT_AUTOCONF, | ||
59 | .type = PORT_SCIF, | ||
60 | .irqs = { 82, 82, 82, 82 }, | ||
61 | .clk = "scif2", | ||
62 | }; | ||
63 | |||
64 | static struct platform_device scif2_device = { | ||
65 | .name = "sh-sci", | ||
66 | .id = 2, | ||
67 | .dev = { | ||
68 | .platform_data = &scif2_platform_data, | ||
69 | }, | ||
70 | }; | ||
71 | |||
23 | static struct resource rtc_resources[] = { | 72 | static struct resource rtc_resources[] = { |
24 | [0] = { | 73 | [0] = { |
25 | .start = 0xa465fec0, | 74 | .start = 0xa465fec0, |
@@ -339,41 +388,6 @@ static struct platform_device tmu2_device = { | |||
339 | }, | 388 | }, |
340 | }; | 389 | }; |
341 | 390 | ||
342 | static struct plat_sci_port sci_platform_data[] = { | ||
343 | { | ||
344 | .mapbase = 0xffe00000, | ||
345 | .flags = UPF_BOOT_AUTOCONF, | ||
346 | .type = PORT_SCIF, | ||
347 | .irqs = { 80, 80, 80, 80 }, | ||
348 | .clk = "scif0", | ||
349 | }, | ||
350 | { | ||
351 | .mapbase = 0xffe10000, | ||
352 | .flags = UPF_BOOT_AUTOCONF, | ||
353 | .type = PORT_SCIF, | ||
354 | .irqs = { 81, 81, 81, 81 }, | ||
355 | .clk = "scif1", | ||
356 | }, | ||
357 | { | ||
358 | .mapbase = 0xffe20000, | ||
359 | .flags = UPF_BOOT_AUTOCONF, | ||
360 | .type = PORT_SCIF, | ||
361 | .irqs = { 82, 82, 82, 82 }, | ||
362 | .clk = "scif2", | ||
363 | }, | ||
364 | { | ||
365 | .flags = 0, | ||
366 | } | ||
367 | }; | ||
368 | |||
369 | static struct platform_device sci_device = { | ||
370 | .name = "sh-sci", | ||
371 | .id = -1, | ||
372 | .dev = { | ||
373 | .platform_data = sci_platform_data, | ||
374 | }, | ||
375 | }; | ||
376 | |||
377 | static struct sh_dmae_pdata dma_platform_data = { | 391 | static struct sh_dmae_pdata dma_platform_data = { |
378 | .mode = 0, | 392 | .mode = 0, |
379 | }; | 393 | }; |
@@ -387,6 +401,9 @@ static struct platform_device dma_device = { | |||
387 | }; | 401 | }; |
388 | 402 | ||
389 | static struct platform_device *sh7722_devices[] __initdata = { | 403 | static struct platform_device *sh7722_devices[] __initdata = { |
404 | &scif0_device, | ||
405 | &scif1_device, | ||
406 | &scif2_device, | ||
390 | &cmt_device, | 407 | &cmt_device, |
391 | &tmu0_device, | 408 | &tmu0_device, |
392 | &tmu1_device, | 409 | &tmu1_device, |
@@ -394,7 +411,6 @@ static struct platform_device *sh7722_devices[] __initdata = { | |||
394 | &rtc_device, | 411 | &rtc_device, |
395 | &usbf_device, | 412 | &usbf_device, |
396 | &iic_device, | 413 | &iic_device, |
397 | &sci_device, | ||
398 | &vpu_device, | 414 | &vpu_device, |
399 | &veu_device, | 415 | &veu_device, |
400 | &jpu_device, | 416 | &jpu_device, |
@@ -413,6 +429,9 @@ static int __init sh7722_devices_setup(void) | |||
413 | arch_initcall(sh7722_devices_setup); | 429 | arch_initcall(sh7722_devices_setup); |
414 | 430 | ||
415 | static struct platform_device *sh7722_early_devices[] __initdata = { | 431 | static struct platform_device *sh7722_early_devices[] __initdata = { |
432 | &scif0_device, | ||
433 | &scif1_device, | ||
434 | &scif2_device, | ||
416 | &cmt_device, | 435 | &cmt_device, |
417 | &tmu0_device, | 436 | &tmu0_device, |
418 | &tmu1_device, | 437 | &tmu1_device, |