aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-turbostation/linux-2.6.16_drivers_mtd_maps_physmap.c
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/linux/linux-turbostation/linux-2.6.16_drivers_mtd_maps_physmap.c
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/linux/linux-turbostation/linux-2.6.16_drivers_mtd_maps_physmap.c')
-rw-r--r--recipes/linux/linux-turbostation/linux-2.6.16_drivers_mtd_maps_physmap.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/recipes/linux/linux-turbostation/linux-2.6.16_drivers_mtd_maps_physmap.c b/recipes/linux/linux-turbostation/linux-2.6.16_drivers_mtd_maps_physmap.c
new file mode 100644
index 0000000000..e1895af53a
--- /dev/null
+++ b/recipes/linux/linux-turbostation/linux-2.6.16_drivers_mtd_maps_physmap.c
@@ -0,0 +1,59 @@
+Index: linux-2.6.20.2/drivers/mtd/maps/physmap.c
+===================================================================
+--- linux-2.6.20.2.orig/drivers/mtd/maps/physmap.c 2007-03-11 15:22:25.000000000 +0100
++++ linux-2.6.20.2/drivers/mtd/maps/physmap.c 2007-03-11 15:28:18.000000000 +0100
+@@ -134,13 +134,53 @@
+ }
+ info->mtd->owner = THIS_MODULE;
+
++static struct mtd_partition TS101_partitions[] = {
++ {
++ .name = "u-boot",
++ .offset = 0x00F00000,
++ .size = 0x00040000,
++ .mask_flags = MTD_WRITEABLE,
++ },
++ {
++ .name = "kernel",
++ .offset = 0x00000000,
++ .size = 0x00200000,
++ },
++ {
++ .name = "rootfs",
++ .offset = 0x00200000,
++ .size = 0x00D00000,
++ },
++ {
++ .name = "u-boot env",
++ .offset = 0x00F40000,
++ .size = 0x00020000,
++ },
++ {
++ .name = "u-boot2",
++ .offset = 0x00F60000,
++ .size = 0x00040000,
++ },
++ {
++ .name = "u-boot2 env",
++ .offset = 0x00FA0000,
++ .size = 0x00020000,
++ },
++ {
++ .name = "sysconf",
++ .offset = 0x00FC0000,
++ .size = 0x00040000,
++ }
++};
++
++
+ #ifdef CONFIG_MTD_PARTITIONS
+ err = parse_mtd_partitions(info->mtd, part_probe_types, &info->parts, 0);
+ if (err > 0) {
+ add_mtd_partitions(info->mtd, info->parts, err);
+ return 0;
+ }
+-
++ physmap_set_partitions(TS101_partitions, 7);
+ if (physmap_data->nr_parts) {
+ printk(KERN_NOTICE "Using physmap partition information\n");
+ add_mtd_partitions(info->mtd, physmap_data->parts,