aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2008-05-06 23:41:26 -0400
committerBryan Wu <cooloney@kernel.org>2008-05-06 23:41:26 -0400
commitd7e5dd41e394397aefd25ea412aeb47cf1b54d80 (patch)
tree8d86d8fd6f9e3409417892a050ab24e4d8bc976a
parent0893f1250f87e0a832f47bb60fb69ed0d52be7a3 (diff)
[Blackfin] arch: Add physmap partition for BF527-EZkit
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index 90dd0869edc9..75acd4d37a11 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -32,6 +32,7 @@
32#include <linux/platform_device.h> 32#include <linux/platform_device.h>
33#include <linux/mtd/mtd.h> 33#include <linux/mtd/mtd.h>
34#include <linux/mtd/partitions.h> 34#include <linux/mtd/partitions.h>
35#include <linux/mtd/physmap.h>
35#include <linux/spi/spi.h> 36#include <linux/spi/spi.h>
36#include <linux/spi/flash.h> 37#include <linux/spi/flash.h>
37#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 38#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
@@ -172,6 +173,46 @@ static struct platform_device bf52x_t350mcqb_device = {
172}; 173};
173#endif 174#endif
174 175
176#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
177static struct mtd_partition ezkit_partitions[] = {
178 {
179 .name = "Bootloader",
180 .size = 0x40000,
181 .offset = 0,
182 }, {
183 .name = "Kernel",
184 .size = 0x1C0000,
185 .offset = MTDPART_OFS_APPEND,
186 }, {
187 .name = "RootFS",
188 .size = MTDPART_SIZ_FULL,
189 .offset = MTDPART_OFS_APPEND,
190 }
191};
192
193static struct physmap_flash_data ezkit_flash_data = {
194 .width = 2,
195 .parts = ezkit_partitions,
196 .nr_parts = ARRAY_SIZE(ezkit_partitions),
197};
198
199static struct resource ezkit_flash_resource = {
200 .start = 0x20000000,
201 .end = 0x203fffff,
202 .flags = IORESOURCE_MEM,
203};
204
205static struct platform_device ezkit_flash_device = {
206 .name = "physmap-flash",
207 .id = 0,
208 .dev = {
209 .platform_data = &ezkit_flash_data,
210 },
211 .num_resources = 1,
212 .resource = &ezkit_flash_resource,
213};
214#endif
215
175#if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 216#if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
176static struct mtd_partition partition_info[] = { 217static struct mtd_partition partition_info[] = {
177 { 218 {
@@ -947,6 +988,10 @@ static struct platform_device *stamp_devices[] __initdata = {
947 &bfin_device_gpiokeys, 988 &bfin_device_gpiokeys,
948#endif 989#endif
949 990
991#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
992 &ezkit_flash_device,
993#endif
994
950 &bfin_gpios_device, 995 &bfin_gpios_device,
951}; 996};
952 997