bmips: enable vr-3032u nand support
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 28 Aug 2019 17:12:20 +0000 (19:12 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 25 Oct 2019 15:20:43 +0000 (17:20 +0200)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
arch/mips/dts/comtrend,vr-3032u.dts
configs/comtrend_vr3032u_ram_defconfig
include/configs/comtrend_vr3032u.h

index 512cb52de3002ee7e7f6d590f75fac6d72083cca..110119b507911ca062c520c9f20dce1be5745d6d 100644 (file)
        };
 };
 
+&nand {
+       status = "okay";
+
+       nandcs@0 {
+               compatible = "brcm,nandcs";
+               reg = <0>;
+               nand-ecc-strength = <15>;
+               nand-ecc-step-size = <512>;
+               nand-on-flash-bbt;
+               brcm,nand-oob-sector-size = <64>;
+       };
+};
+
 &ohci {
        status = "okay";
 };
index 34a1502b8a5c58a3644abf471a43f62a1eb35066..c53d4993adead522c8274f5a40994798dd3ff716 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_CMD_LICENSE=y
 CONFIG_CMD_MEMINFO=y
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_LOADS is not set
+CONFIG_CMD_NAND=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
@@ -37,6 +38,10 @@ CONFIG_DM_GPIO=y
 CONFIG_LED=y
 CONFIG_LED_BCM6328=y
 CONFIG_LED_BLINK=y
+CONFIG_MTD=y
+CONFIG_NAND=y
+CONFIG_NAND_BRCMNAND=y
+CONFIG_NAND_BRCMNAND_6368=y
 CONFIG_DM_ETH=y
 CONFIG_BCM6368_ETH=y
 CONFIG_PHY=y
index e183288c5d1d5b0b1be0bc6c7e2cf5fdad89e765..d625101ecbafab342767755a55d1cc47b3d1100c 100644 (file)
@@ -10,3 +10,8 @@
 
 #define CONFIG_ENV_SIZE                        (8 * 1024)
 
+#ifdef CONFIG_NAND
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
+#define CONFIG_SYS_NAND_SELF_INIT
+#define CONFIG_SYS_NAND_ONFI_DETECTION
+#endif /* CONFIG_NAND */