imx: pcl063: add nand boot support
authorParthiban Nallathambi <pn@denx.de>
Fri, 23 Aug 2019 16:19:48 +0000 (18:19 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:37 +0000 (16:36 +0200)
Booting from NAND needs nandbcb and nand boot device selection

Signed-off-by: Parthiban Nallathambi <pn@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
board/phytec/pcl063/spl.c
configs/phycore_pcl063_defconfig

index 6d4c8279188328810b99b087d908baadf842b078..358156bfbcda703bd82f385d64b73d9f6d2e4973 100644 (file)
@@ -197,6 +197,9 @@ void board_boot_order(u32 *spl_boot_list)
        case IMX6_BMODE_EMMC:
                boot_dev = BOOT_DEVICE_MMC2;
                break;
+       case IMX6_BMODE_NAND_MIN ... IMX6_BMODE_NAND_MAX:
+               boot_dev = BOOT_DEVICE_NAND;
+               break;
        default:
                /* Default - BOOT_DEVICE_MMC1 */
                printf("Wrong board boot order\n");
index be16f484d56944a1be7c180c05975ada23a48213..4fdcf67efe2163314126f1a06080bc7e97f30387 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_CMD_MTD=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_USB_SDP=y
 CONFIG_CMD_CACHE=y
+CONFIG_CMD_NANDBCB=y
 CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand"
 CONFIG_MTDPARTS_DEFAULT="gpmi-nand:4m(uboot),1m(env),-(root)"
 CONFIG_CMD_UBI=y