[PATCH] extend physmap.c to support run-time adding partitions
David Woodhouse
dwmw2 at infradead.org
Wed Oct 29 06:13:26 EST 2003
On Tue, 2003-10-28 at 18:28 -0800, Jun Sun wrote:
+#if defined(CONFIG_MTD)
+ /* we use generic physmap mapping driver */
+ physmap_set_map(0x400000, 4, 0x1e000000);
+
+ physmap_add_partition("YAMON", 0x100000, 0x0, MTD_WRITEABLE);
+ physmap_add_partition("User FS", 0x300000, 0x100000, 0);
+#endif
That's nicer. Why multiple physmap_add_partition() calls rather than
just a single array passed to physmap_set_map() though?
mtd = physmap_set_map(adr, len, width, set_vpp, partitions);
physmap_unset_map(mtd);
--
dwmw2
More information about the linux-mtd
mailing list