2 * Renesas Technology Europe RSK+ Support.
4 * Copyright (C) 2008 Paul Mundt
5 * Copyright (C) 2008 Peter Griffin <pgriffin@mpc-data.co.uk>
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
11 #include <linux/init.h>
12 #include <linux/types.h>
13 #include <linux/platform_device.h>
14 #include <linux/interrupt.h>
15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/partitions.h>
17 #include <linux/mtd/physmap.h>
18 #include <linux/mtd/map.h>
19 #include <asm/machvec.h>
22 static const char *part_probes
[] = { "cmdlinepart", NULL
};
24 static struct mtd_partition rsk_partitions
[] = {
29 .mask_flags
= MTD_WRITEABLE
,
32 .offset
= MTDPART_OFS_NXTBLK
,
36 .offset
= MTDPART_OFS_NXTBLK
,
37 .size
= MTDPART_SIZ_FULL
,
41 static struct physmap_flash_data flash_data
= {
42 .parts
= rsk_partitions
,
43 .nr_parts
= ARRAY_SIZE(rsk_partitions
),
45 .part_probe_types
= part_probes
,
48 static struct resource flash_resource
= {
51 .flags
= IORESOURCE_MEM
,
54 static struct platform_device flash_device
= {
55 .name
= "physmap-flash",
57 .resource
= &flash_resource
,
60 .platform_data
= &flash_data
,
64 static struct platform_device
*rsk_devices
[] __initdata
= {
68 static int __init
rsk_devices_setup(void)
70 return platform_add_devices(rsk_devices
,
71 ARRAY_SIZE(rsk_devices
));
73 device_initcall(rsk_devices_setup
);
78 static struct sh_machine_vector mv_rsk __initmv
= {