Partially fix commit r16660
[openwrt.git] / target / linux / brcm-2.4 / patches / 004-flash.patch
1 --- a/drivers/mtd/devices/Config.in
2 +++ b/drivers/mtd/devices/Config.in
3 @@ -5,6 +5,7 @@
4 mainmenu_option next_comment
5
6 comment 'Self-contained MTD device drivers'
7 +bool ' Broadcom Chipcommon Serial Flash support' CONFIG_MTD_SFLASH
8 dep_tristate ' Ramix PMC551 PCI Mezzanine RAM card support' CONFIG_MTD_PMC551 $CONFIG_MTD $CONFIG_PCI
9 if [ "$CONFIG_MTD_PMC551" = "y" -o "$CONFIG_MTD_PMC551" = "m" ]; then
10 bool ' PMC551 256M DRAM Bugfix' CONFIG_MTD_PMC551_BUGFIX
11 --- a/drivers/mtd/devices/Makefile
12 +++ b/drivers/mtd/devices/Makefile
13 @@ -3,6 +3,8 @@
14 #
15 # $Id: Makefile,v 1.4 2001/06/26 21:10:05 spse Exp $
16
17 +EXTRA_CFLAGS := -I$(TOPDIR)/arch/mips/bcm947xx/include
18 +
19 O_TARGET := devlink.o
20
21 # *** BIG UGLY NOTE ***
22 @@ -12,6 +14,7 @@ O_TARGET := devlink.o
23 # here where previously there was none. We now have to ensure that
24 # doc200[01].o are linked before docprobe.o
25
26 +obj-$(CONFIG_MTD_SFLASH) += sflash.o
27 obj-$(CONFIG_MTD_DOC1000) += doc1000.o
28 obj-$(CONFIG_MTD_DOC2000) += doc2000.o
29 obj-$(CONFIG_MTD_DOC2001) += doc2001.o
30 --- a/drivers/mtd/maps/Config.in
31 +++ b/drivers/mtd/maps/Config.in
32 @@ -48,6 +48,7 @@ if [ "$CONFIG_PPC" = "y" ]; then
33 fi
34
35 if [ "$CONFIG_MIPS" = "y" ]; then
36 + dep_tristate ' CFI Flash device mapped on Broadcom BCM947XX boards' CONFIG_MTD_BCM947XX $CONFIG_MTD_CFI
37 dep_tristate ' Pb1000 MTD support' CONFIG_MTD_PB1000 $CONFIG_MIPS_PB1000
38 dep_tristate ' Pb1500 MTD support' CONFIG_MTD_PB1500 $CONFIG_MIPS_PB1500
39 dep_tristate ' Pb1100 MTD support' CONFIG_MTD_PB1100 $CONFIG_MIPS_PB1100
40 --- a/drivers/mtd/maps/Makefile
41 +++ b/drivers/mtd/maps/Makefile
42 @@ -3,6 +3,8 @@
43 #
44 # $Id: Makefile,v 1.37 2003/01/24 14:26:38 dwmw2 Exp $
45
46 +EXTRA_CFLAGS := -I$(TOPDIR)/arch/mips/bcm947xx/include
47 +
48 BELOW25 := $(shell echo $(PATCHLEVEL) | sed s/[1234]/y/)
49
50 ifeq ($(BELOW25),y)
51 @@ -10,6 +12,7 @@ O_TARGET := mapslink.o
52 endif
53
54 # Chip mappings
55 +obj-$(CONFIG_MTD_BCM947XX) += bcm947xx-flash.o
56 obj-$(CONFIG_MTD_CDB89712) += cdb89712.o
57 obj-$(CONFIG_MTD_ARM_INTEGRATOR)+= integrator-flash.o
58 obj-$(CONFIG_MTD_CFI_FLAGADM) += cfi_flagadm.o
This page took 0.039249 seconds and 5 git commands to generate.