mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 07:00:46 +09:00
imx: pcl063: add nand boot support
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>
This commit is contained in:
parent
d73c520327
commit
a919b6ba37
@ -197,6 +197,9 @@ void board_boot_order(u32 *spl_boot_list)
|
|||||||
case IMX6_BMODE_EMMC:
|
case IMX6_BMODE_EMMC:
|
||||||
boot_dev = BOOT_DEVICE_MMC2;
|
boot_dev = BOOT_DEVICE_MMC2;
|
||||||
break;
|
break;
|
||||||
|
case IMX6_BMODE_NAND_MIN ... IMX6_BMODE_NAND_MAX:
|
||||||
|
boot_dev = BOOT_DEVICE_NAND;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* Default - BOOT_DEVICE_MMC1 */
|
/* Default - BOOT_DEVICE_MMC1 */
|
||||||
printf("Wrong board boot order\n");
|
printf("Wrong board boot order\n");
|
||||||
|
@ -27,6 +27,7 @@ CONFIG_CMD_MTD=y
|
|||||||
CONFIG_CMD_USB=y
|
CONFIG_CMD_USB=y
|
||||||
CONFIG_CMD_USB_SDP=y
|
CONFIG_CMD_USB_SDP=y
|
||||||
CONFIG_CMD_CACHE=y
|
CONFIG_CMD_CACHE=y
|
||||||
|
CONFIG_CMD_NANDBCB=y
|
||||||
CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand"
|
CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand"
|
||||||
CONFIG_MTDPARTS_DEFAULT="gpmi-nand:4m(uboot),1m(env),-(root)"
|
CONFIG_MTDPARTS_DEFAULT="gpmi-nand:4m(uboot),1m(env),-(root)"
|
||||||
CONFIG_CMD_UBI=y
|
CONFIG_CMD_UBI=y
|
||||||
|
Loading…
Reference in New Issue
Block a user