diff options
-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[] = { |