mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
2317a7426e
Build system: x86_64 Build-tested: generic, smp Run-tested: generic/AR-5387un, smp/VR-3032u Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
18 lines
511 B
Diff
18 lines
511 B
Diff
--- a/arch/mips/bcm63xx/dev-flash.c
|
|
+++ b/arch/mips/bcm63xx/dev-flash.c
|
|
@@ -271,8 +271,12 @@ int __init bcm63xx_flash_register(void)
|
|
return -ENODEV;
|
|
}
|
|
case BCM63XX_FLASH_TYPE_NAND:
|
|
- pr_warn("unsupported NAND flash detected\n");
|
|
- return -ENODEV;
|
|
+ if (board_of_device_present("nflash")) {
|
|
+ return 0;
|
|
+ } else {
|
|
+ pr_warn("unsupported NAND flash detected\n");
|
|
+ return -ENODEV;
|
|
+ }
|
|
default:
|
|
pr_err("flash detection failed for BCM%x: %d\n",
|
|
bcm63xx_get_cpu_id(), flash_type);
|