ARM: BCM: Enable NAND support for iProc SoCs
Subsystems (3)
Ray Jui
maintainerPATCH 1/1 ARM: BCM: Enable NAND support for iProc SoCs
Select CONFIG_MTD_NAND_BRCMNAND for all iProc SoCs
--- arch/arm/mach-bcm/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-bcm/Kconfig +1 -0
@@ -19,6 +19,7 @@ config ARCH_BCM_IPROC select ARCH_REQUIRE_GPIOLIB select ARM_AMBA select PINCTRL + select MTD_NAND_BRCMNAND help This enables support for systems based on Broadcom IPROC architected SoCs. The IPROC complex contains one or more ARM CPUs along with common
Signature · 1 line
1.7.9.5
Florian Fainelli
AppliedLe 05/28/15 18:09, Ray Jui a ?crit :
Quoted 3 lines
Select
CONFIG_MTD_NAND_BRCMNANDfor all iProc SoCsSigned-off-by Ray Jui <[email protected]>
Applied to soc/next, thanks!
Signature · 1 line
Florian
Quoted 1 line · Ray Jui
Select
CONFIG_MTD_NAND_BRCMNANDfor all iProc SoCs
In fact, this patch creates an unmet dependency problem, we also need to select MTD and MTD_NAND otherwise we run into a linking error while building the brcmnand driver:
LD init/built-in.odrivers/built-in.o: In function `brcmnand_remove':/home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:2234:
undefined reference to nand_release' drivers/built-in.o: In function brcmnand_init_cs':/home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:1933:
undefined reference to `nand_scan_ident' /home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:1958:
undefined reference to `nand_scan_tail'
Makefile:931: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
I will take care of that and send a fix for 4.2.
Quoted 19 lines
Signed-off-by Ray Jui <[email protected]>--- arch/arm/mach-bcm/Kconfig | 1 + 1 file changed, 1 insertion(+)arch/arm/mach-bcm/Kconfig +1
-0@@ -19,6 +19,7 @@ config ARCH_BCM_IPROC select ARCH_REQUIRE_GPIOLIB select ARM_AMBA select PINCTRL + select MTD_NAND_BRCMNAND help This enables support for systems based on Broadcom IPROC architected SoCs. The IPROC complex contains one or more ARM CPUs along with common
Signature · 1 line
Florian
Ray Jui
maintainerHi Florian,
Quoted 19 lines · Florian Fainelli
Quoted 1 line · Ray Jui
Select
CONFIG_MTD_NAND_BRCMNANDfor all iProc SoCsIn fact, this patch creates an unmet dependency problem, we also need to select MTD and
MTD_NANDotherwise we run into a linking error while building the brcmnand driver:LD
init/built-in.odrivers/built-in.o: In function `brcmnand_remove':/home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:2234:
undefined reference tonand_release' drivers/built-in.o: In functionbrcmnand_init_cs':/home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:1933:
undefined reference to `nand_scan_ident'/home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:1958:
undefined reference to `nand_scan_tail'
Makefile:931: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Quoted 2 lines
I will take care of that and send a fix for 4.2.
When I tested this, I tested against multi_v7_defconfig where MTD and MTD_NAND were enabled in the defconfig, so I did not see this problem.
Thanks a lot for helping to fix this.
Ray