diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-08-18 12:20:24 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-09-27 06:52:55 -0400 |
commit | d17e1c1ac3a1e4befecb34c20dc8cb901aa72aba (patch) | |
tree | d7448db74a0dd871ee4747bfcf3e7c0689465ef6 /arch/arm/mach-mx3 | |
parent | 3b161e51b254fa7bd3a9b0bd7ca7a2ac8ceaae8b (diff) |
ARM: mx3/mx35_3ds: add physmap-flash NOR at CS0
The mx35_3ds comes with 64 MiByte for NOR flash at CS0, add physmap-flash
platform device for it.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx35_3ds.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c b/arch/arm/mach-mx3/mach-mx35_3ds.c index 1c30d7212f17..73149b8fe92c 100644 --- a/arch/arm/mach-mx3/mach-mx35_3ds.c +++ b/arch/arm/mach-mx3/mach-mx35_3ds.c | |||
@@ -1,5 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. | 2 | * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. |
3 | * Copyright (C) 2009 Marc Kleine-Budde, Pengutronix | ||
3 | * | 4 | * |
4 | * Author: Fabio Estevam <fabio.estevam@freescale.com> | 5 | * Author: Fabio Estevam <fabio.estevam@freescale.com> |
5 | * | 6 | * |
@@ -27,6 +28,8 @@ | |||
27 | #include <linux/gpio.h> | 28 | #include <linux/gpio.h> |
28 | #include <linux/fsl_devices.h> | 29 | #include <linux/fsl_devices.h> |
29 | 30 | ||
31 | #include <linux/mtd/physmap.h> | ||
32 | |||
30 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
31 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/time.h> | 35 | #include <asm/mach/time.h> |
@@ -43,8 +46,29 @@ static const struct imxuart_platform_data uart_pdata __initconst = { | |||
43 | .flags = IMXUART_HAVE_RTSCTS, | 46 | .flags = IMXUART_HAVE_RTSCTS, |
44 | }; | 47 | }; |
45 | 48 | ||
49 | static struct physmap_flash_data mx35pdk_flash_data = { | ||
50 | .width = 2, | ||
51 | }; | ||
52 | |||
53 | static struct resource mx35pdk_flash_resource = { | ||
54 | .start = MX35_CS0_BASE_ADDR, | ||
55 | .end = MX35_CS0_BASE_ADDR + SZ_64M - 1, | ||
56 | .flags = IORESOURCE_MEM, | ||
57 | }; | ||
58 | |||
59 | static struct platform_device mx35pdk_flash = { | ||
60 | .name = "physmap-flash", | ||
61 | .id = 0, | ||
62 | .dev = { | ||
63 | .platform_data = &mx35pdk_flash_data, | ||
64 | }, | ||
65 | .resource = &mx35pdk_flash_resource, | ||
66 | .num_resources = 1, | ||
67 | }; | ||
68 | |||
46 | static struct platform_device *devices[] __initdata = { | 69 | static struct platform_device *devices[] __initdata = { |
47 | &mxc_fec_device, | 70 | &mxc_fec_device, |
71 | &mx35pdk_flash, | ||
48 | }; | 72 | }; |
49 | 73 | ||
50 | static struct pad_desc mx35pdk_pads[] = { | 74 | static struct pad_desc mx35pdk_pads[] = { |