diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-28 17:03:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-28 17:03:14 -0400 |
commit | 0fe41b8982001cd14ee2c77cd776735a5024e98b (patch) | |
tree | 83e65d595c413d55259ea14fb97748ce5efe5707 /arch/arm/mach-w90x900/mach-w90p910evb.c | |
parent | eedf2c5296a8dfaaf9aec1a938c1d3bd73159a30 (diff) | |
parent | 9759d22c8348343b0da4e25d6150c41712686c14 (diff) |
Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (422 commits)
[ARM] 5435/1: fix compile warning in sanity_check_meminfo()
[ARM] 5434/1: ARM: OMAP: Fix mailbox compile for 24xx
[ARM] pxa: fix the bad assumption that PCMCIA sockets always start with 0
[ARM] pxa: fix Colibri PXA300 and PXA320 LCD backlight pins
imxfb: Fix TFT mode
i.MX21/27: remove ifdef CONFIG_FB_IMX
imxfb: add clock support
mxc: add arch_reset() function
clkdev: add possibility to get a clock based on the device name
i.MX1: remove fb support from mach-imx
[ARM] pxa: build arch/arm/plat-pxa/mfp.c only when PXA3xx or ARCH_MMP defined
Gemini: Add support for Teltonika RUT100
Gemini: gpiolib based GPIO support v2
MAINTAINERS: add myself as Gemini architecture maintainer
ARM: Add Gemini architecture v3
[ARM] OMAP: Fix compile for omap2_init_common_hw()
MAINTAINERS: Add myself as Faraday ARM core variant maintainer
ARM: Add support for FA526 v2
[ARM] acorn,ebsa110,footbridge,integrator,sa1100: Convert asm/io.h to linux/io.h
[ARM] collie: fix two minor formatting nits
...
Diffstat (limited to 'arch/arm/mach-w90x900/mach-w90p910evb.c')
-rw-r--r-- | arch/arm/mach-w90x900/mach-w90p910evb.c | 56 |
1 files changed, 48 insertions, 8 deletions
diff --git a/arch/arm/mach-w90x900/mach-w90p910evb.c b/arch/arm/mach-w90x900/mach-w90p910evb.c index 9ebc93f48530..726ff6798a56 100644 --- a/arch/arm/mach-w90x900/mach-w90p910evb.c +++ b/arch/arm/mach-w90x900/mach-w90p910evb.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/timer.h> | 22 | #include <linux/timer.h> |
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
25 | #include <linux/mtd/physmap.h> | ||
25 | 26 | ||
26 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
27 | #include <asm/mach/map.h> | 28 | #include <asm/mach/map.h> |
@@ -32,28 +33,67 @@ | |||
32 | #include <mach/map.h> | 33 | #include <mach/map.h> |
33 | 34 | ||
34 | #include "cpu.h" | 35 | #include "cpu.h" |
36 | /*w90p910 evb norflash driver data */ | ||
35 | 37 | ||
36 | static struct map_desc w90p910_iodesc[] __initdata = { | 38 | #define W90P910_FLASH_BASE 0xA0000000 |
39 | #define W90P910_FLASH_SIZE 0x400000 | ||
40 | |||
41 | static struct mtd_partition w90p910_flash_partitions[] = { | ||
42 | { | ||
43 | .name = "NOR Partition 1 for kernel (960K)", | ||
44 | .size = 0xF0000, | ||
45 | .offset = 0x10000, | ||
46 | }, | ||
47 | { | ||
48 | .name = "NOR Partition 2 for image (1M)", | ||
49 | .size = 0x100000, | ||
50 | .offset = 0x100000, | ||
51 | }, | ||
52 | { | ||
53 | .name = "NOR Partition 3 for user (2M)", | ||
54 | .size = 0x200000, | ||
55 | .offset = 0x00200000, | ||
56 | } | ||
37 | }; | 57 | }; |
38 | 58 | ||
39 | static struct w90x900_uartcfg w90p910_uartcfgs[] = { | 59 | static struct physmap_flash_data w90p910_flash_data = { |
40 | W90X900_UARTCFG(0, 0, 0, 0, 0), | 60 | .width = 2, |
41 | W90X900_UARTCFG(1, 0, 0, 0, 0), | 61 | .parts = w90p910_flash_partitions, |
42 | W90X900_UARTCFG(2, 0, 0, 0, 0), | 62 | .nr_parts = ARRAY_SIZE(w90p910_flash_partitions), |
43 | W90X900_UARTCFG(3, 0, 0, 0, 0), | 63 | }; |
44 | W90X900_UARTCFG(4, 0, 0, 0, 0), | 64 | |
65 | static struct resource w90p910_flash_resources[] = { | ||
66 | { | ||
67 | .start = W90P910_FLASH_BASE, | ||
68 | .end = W90P910_FLASH_BASE + W90P910_FLASH_SIZE - 1, | ||
69 | .flags = IORESOURCE_MEM, | ||
70 | } | ||
71 | }; | ||
72 | |||
73 | static struct platform_device w90p910_flash_device = { | ||
74 | .name = "physmap-flash", | ||
75 | .id = 0, | ||
76 | .dev = { | ||
77 | .platform_data = &w90p910_flash_data, | ||
78 | }, | ||
79 | .resource = w90p910_flash_resources, | ||
80 | .num_resources = ARRAY_SIZE(w90p910_flash_resources), | ||
81 | }; | ||
82 | |||
83 | static struct map_desc w90p910_iodesc[] __initdata = { | ||
45 | }; | 84 | }; |
46 | 85 | ||
47 | /*Here should be your evb resourse,such as LCD*/ | 86 | /*Here should be your evb resourse,such as LCD*/ |
48 | 87 | ||
49 | static struct platform_device *w90p910evb_dev[] __initdata = { | 88 | static struct platform_device *w90p910evb_dev[] __initdata = { |
89 | &w90p910_serial_device, | ||
90 | &w90p910_flash_device, | ||
50 | }; | 91 | }; |
51 | 92 | ||
52 | static void __init w90p910evb_map_io(void) | 93 | static void __init w90p910evb_map_io(void) |
53 | { | 94 | { |
54 | w90p910_map_io(w90p910_iodesc, ARRAY_SIZE(w90p910_iodesc)); | 95 | w90p910_map_io(w90p910_iodesc, ARRAY_SIZE(w90p910_iodesc)); |
55 | w90p910_init_clocks(0); | 96 | w90p910_init_clocks(0); |
56 | w90p910_init_uarts(w90p910_uartcfgs, ARRAY_SIZE(w90p910_uartcfgs)); | ||
57 | } | 97 | } |
58 | 98 | ||
59 | static void __init w90p910evb_init(void) | 99 | static void __init w90p910evb_init(void) |