5b5d38b280b35152c8516e66889b90058bd4de1a
[librecmc/librecmc.git] / target / linux / adm5120 / patches-2.6.25 / 100-mtd_myloder_partition_parser.patch
1 Index: linux-2.6.25.4/drivers/mtd/Kconfig
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/mtd/Kconfig
4 +++ linux-2.6.25.4/drivers/mtd/Kconfig
5 @@ -168,6 +168,22 @@ config MTD_OF_PARTS
6           the partition map from the children of the flash node,
7           as described in Documentation/powerpc/booting-without-of.txt.
8  
9 +config MTD_MYLOADER_PARTS
10 +       tristate "MyLoader partition parsing"
11 +       depends on MIPS_ADM5120 && MTD_PARTITIONS
12 +       ---help---
13 +         MyLoader is a bootloader which allows the user to define partitions
14 +         in flash devices, by putting a table in the second erase block
15 +         on the device, similar to a partition table. This table gives the 
16 +         offsets and lengths of the user defined partitions.
17 +
18 +         If you need code which can detect and parse these tables, and
19 +         register MTD 'partitions' corresponding to each image detected,
20 +         enable this option.
21 +
22 +         You will still need the parsing functions to be called by the driver
23 +         for your particular device. It won't happen automatically.
24 +
25  comment "User Modules And Translation Layers"
26  
27  config MTD_CHAR
28 Index: linux-2.6.25.4/drivers/mtd/Makefile
29 ===================================================================
30 --- linux-2.6.25.4.orig/drivers/mtd/Makefile
31 +++ linux-2.6.25.4/drivers/mtd/Makefile
32 @@ -12,6 +12,7 @@ obj-$(CONFIG_MTD_REDBOOT_PARTS) += redbo
33  obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
34  obj-$(CONFIG_MTD_AFS_PARTS)    += afs.o
35  obj-$(CONFIG_MTD_OF_PARTS)      += ofpart.o
36 +obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
37  
38  # 'Users' - code which presents functionality to userspace.
39  obj-$(CONFIG_MTD_CHAR)         += mtdchar.o