1 diff -urN linux-2.6.19/drivers/mtd/maps/Kconfig linux-2.6.19.new/drivers/mtd/maps/Kconfig
2 --- linux-2.6.19/drivers/mtd/maps/Kconfig 2006-11-29 22:57:37.000000000 +0100
3 +++ linux-2.6.19.new/drivers/mtd/maps/Kconfig 2006-12-18 17:21:07.000000000 +0100
5 Flash memory access on 4G Systems MTX-1 Board. If you have one of
6 these boards and would like to use the flash chips on it, say 'Y'.
9 + tristate "BCM963xx Flash device"
10 + depends on MIPS && BCM963XX
12 + Flash memory access on BCM963xx boards. Currently only works with
16 tristate "CFI Flash device mapped on DIL/Net PC"
17 depends on X86 && MTD_CONCAT && MTD_PARTITIONS && MTD_CFI_INTELEXT
18 diff -urN linux-2.6.19/drivers/mtd/redboot.c linux-2.6.19.new/drivers/mtd/redboot.c
19 --- linux-2.6.19/drivers/mtd/redboot.c 2006-12-18 17:09:14.000000000 +0100
20 +++ linux-2.6.19.new/drivers/mtd/redboot.c 2006-12-18 17:14:26.000000000 +0100
25 -static int parse_redboot_partitions(struct mtd_info *master,
26 +int parse_redboot_partitions(struct mtd_info *master,
27 struct mtd_partition **pparts,
28 unsigned long fis_origin)
35 + for (i = 0; i < numslots; i++) {
36 + if (!strncmp(buf[i].name, "RedBoot", 8)) {
37 + fis_origin = (buf[i].flash_base & (master->size << 1) - 1);
42 for (i = 0; i < numslots; i++) {
43 struct fis_list *new_fl, **prev;
46 new_fl->img = &buf[i];
48 buf[i].flash_base -= fis_origin;
50 - buf[i].flash_base &= master->size-1;
52 + buf[i].flash_base &= (master->size << 1) - 1;
54 /* I'm sure the JFFS2 code has done me permanent damage.
55 * I now think the following is _normal_
56 diff -urN linux-2.6.24/drivers/mtd/maps/Makefile linux-2.6.24.new/drivers/mtd/maps/Makefile
57 --- linux-2.6.24/drivers/mtd/maps/Makefile 2008-01-24 23:58:37.000000000 +0100
58 +++ linux-2.6.24.new/drivers/mtd/maps/Makefile 2008-02-13 16:30:02.000000000 +0100
60 obj-$(CONFIG_MTD_OMAP_NOR) += omap_nor.o
61 obj-$(CONFIG_MTD_MTX1) += mtx-1_flash.o
62 obj-$(CONFIG_MTD_INTEL_VR_NOR) += intel_vr_nor.o
63 +obj-$(CONFIG_MTD_BCM963XX) += bcm963xx-flash.o