X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/17c7b6c3fdc48301e50d22cc6138ede16bd1be24..ac1c76183402522d64fa5608c9806b3e0d0ba1b9:/target/linux/brcm63xx/patches/040-bcm963xx_flashmap.patch diff --git a/target/linux/brcm63xx/patches/040-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches/040-bcm963xx_flashmap.patch index 08c91bea1..7a62fffa3 100644 --- a/target/linux/brcm63xx/patches/040-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches/040-bcm963xx_flashmap.patch @@ -1,7 +1,8 @@ -diff -urN linux-2.6.19/drivers/mtd/maps/Kconfig linux-2.6.19.new/drivers/mtd/maps/Kconfig ---- linux-2.6.19/drivers/mtd/maps/Kconfig 2006-11-29 22:57:37.000000000 +0100 -+++ linux-2.6.19.new/drivers/mtd/maps/Kconfig 2006-12-18 17:21:07.000000000 +0100 -@@ -283,6 +283,13 @@ +Index: linux-2.6.24.7/drivers/mtd/maps/Kconfig +=================================================================== +--- linux-2.6.24.7.orig/drivers/mtd/maps/Kconfig ++++ linux-2.6.24.7/drivers/mtd/maps/Kconfig +@@ -269,6 +269,13 @@ config MTD_MTX1 Flash memory access on 4G Systems MTX-1 Board. If you have one of these boards and would like to use the flash chips on it, say 'Y'. @@ -15,18 +16,11 @@ diff -urN linux-2.6.19/drivers/mtd/maps/Kconfig linux-2.6.19.new/drivers/mtd/map config MTD_DILNETPC tristate "CFI Flash device mapped on DIL/Net PC" depends on X86 && MTD_CONCAT && MTD_PARTITIONS && MTD_CFI_INTELEXT -diff -urN linux-2.6.19/drivers/mtd/maps/Makefile linux-2.6.19.new/drivers/mtd/maps/Makefile ---- linux-2.6.19/drivers/mtd/maps/Makefile 2006-11-29 22:57:37.000000000 +0100 -+++ linux-2.6.19.new/drivers/mtd/maps/Makefile 2006-12-18 17:21:07.000000000 +0100 -@@ -72,3 +72,4 @@ - obj-$(CONFIG_MTD_OMAP_NOR) += omap_nor.o - obj-$(CONFIG_MTD_MTX1) += mtx-1_flash.o - obj-$(CONFIG_MTD_TQM834x) += tqm834x.o -+obj-$(CONFIG_MTD_BCM963XX) += bcm963xx-flash.o -diff -urN linux-2.6.19/drivers/mtd/redboot.c linux-2.6.19.new/drivers/mtd/redboot.c ---- linux-2.6.19/drivers/mtd/redboot.c 2006-12-18 17:09:14.000000000 +0100 -+++ linux-2.6.19.new/drivers/mtd/redboot.c 2006-12-18 17:14:26.000000000 +0100 -@@ -39,7 +39,7 @@ +Index: linux-2.6.24.7/drivers/mtd/redboot.c +=================================================================== +--- linux-2.6.24.7.orig/drivers/mtd/redboot.c ++++ linux-2.6.24.7/drivers/mtd/redboot.c +@@ -39,7 +39,7 @@ static inline int redboot_checksum(struc return 1; } @@ -35,7 +29,7 @@ diff -urN linux-2.6.19/drivers/mtd/redboot.c linux-2.6.19.new/drivers/mtd/redboo struct mtd_partition **pparts, unsigned long fis_origin) { -@@ -146,6 +146,14 @@ +@@ -146,6 +146,14 @@ static int parse_redboot_partitions(stru goto out; } @@ -50,7 +44,7 @@ diff -urN linux-2.6.19/drivers/mtd/redboot.c linux-2.6.19.new/drivers/mtd/redboo for (i = 0; i < numslots; i++) { struct fis_list *new_fl, **prev; -@@ -168,9 +176,8 @@ +@@ -168,9 +176,8 @@ static int parse_redboot_partitions(stru new_fl->img = &buf[i]; if (fis_origin) { buf[i].flash_base -= fis_origin; @@ -61,3 +55,12 @@ diff -urN linux-2.6.19/drivers/mtd/redboot.c linux-2.6.19.new/drivers/mtd/redboo /* I'm sure the JFFS2 code has done me permanent damage. * I now think the following is _normal_ +Index: linux-2.6.24.7/drivers/mtd/maps/Makefile +=================================================================== +--- linux-2.6.24.7.orig/drivers/mtd/maps/Makefile ++++ linux-2.6.24.7/drivers/mtd/maps/Makefile +@@ -69,3 +69,4 @@ obj-$(CONFIG_MTD_PLATRAM) += plat-ram.o + obj-$(CONFIG_MTD_OMAP_NOR) += omap_nor.o + obj-$(CONFIG_MTD_MTX1) += mtx-1_flash.o + obj-$(CONFIG_MTD_INTEL_VR_NOR) += intel_vr_nor.o ++obj-$(CONFIG_MTD_BCM963XX) += bcm963xx-flash.o