I'm using LTIB BSP to bring-up P1020 WLAN board. The u-boot is booted from NOR flash (CS0) and it is enabled with NAND configuration (CS1) to use NAND for extended storage. The BR1 and CS1 registers are configured with BR_V, FCM and the CONFIG_SYS_NAND_BASE is 0xd0000000. In u-boot, NAND flash size is displayed, but the read fails and it is showing "skipping bad block". I have tried in linux by modifying the p1020wlan_rev_d.dtb for NAND detection/partitioning as shown below
ranges = <0x0 0x0 0x0 0xee000000 0x2000000 0x1 0x0 0x0 0xd0000000 0x10000000 0x3 0x0 0x0 0xffa00000 0x1000000>;
#address-cells = <0x1>;
#size-cells = <0x1>;
compatible = "fsl,elbc-fcm-nand";
reg = <0x1 0x0 0x10000000>;
reg = <0x0 0x6400000>;
label = "linux";
reg = <0x6400000 0x20000>;
label = "rootfs";
But, in the Linux boot log, I'm getting the error "Failed to get memory region".
What is the base address (CONFIG_SYS_NAND_BASE) for NAND that has been to be used in U-boot and DTS for WLAN board?