X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=include%2Fconfigs%2Ftx6.h;h=e65436b9523d5a243c84f93614943869994b060f;hp=ac1f99746d7ea8effcb447eb29664564dcc58ed8;hb=f08aa81c000d33c5e29d56f1e42ee42ad8262701;hpb=4f4b529f8fad0f48776f9279b82aa1d578cdcad1 diff --git a/include/configs/tx6.h b/include/configs/tx6.h index ac1f99746d..e65436b952 100644 --- a/include/configs/tx6.h +++ b/include/configs/tx6.h @@ -159,12 +159,11 @@ ";nboot linux\0" \ "bootcmd_mmc=set autostart no;run bootargs_mmc" \ ";fatload mmc 0 ${loadaddr} uImage\0" \ - "bootcmd_nand=set autostart no;run bootargs_ubifs" \ - ";nboot linux\0" \ + CONFIG_SYS_BOOT_CMD_NAND \ "bootcmd_net=set autoload y;set autostart n;run bootargs_nfs" \ ";dhcp\0" \ "bootm_cmd=bootm ${loadaddr} - ${fdtaddr}\0" \ - "boot_mode=nand\0" \ + "boot_mode=" CONFIG_SYS_DEFAULT_BOOT_MODE "\0" \ "cpu_clk=800\0" \ "default_bootargs=set bootargs " CONFIG_BOOTARGS \ " ${append_bootargs}\0" \ @@ -180,6 +179,9 @@ #endif /* CONFIG_MFG */ #ifndef CONFIG_TX6_V2 +#define CONFIG_SYS_DEFAULT_BOOT_MODE "nand" +#define CONFIG_SYS_BOOT_CMD_NAND \ + "bootcmd_nand=set autostart no;run bootargs_ubifs;nboot linux\0" #define CONFIG_SYS_FDTSAVE_CMD \ "fdtsave=nand erase.part dtb" \ ";nand write ${fdtaddr} dtb ${fdtsize}\0" @@ -187,6 +189,8 @@ #define MTDIDS_DEFAULT "nand0=" MTD_NAME #define CONFIG_SYS_NAND_ONFI_DETECTION #else +#define CONFIG_SYS_DEFAULT_BOOT_MODE "mmc" +#define CONFIG_SYS_BOOT_CMD_NAND "" #define CONFIG_SYS_FDTSAVE_CMD \ "fdtsave=mmc open 0 1;mmc write ${fdtaddr} " xstr(CONFIG_SYS_DTB_BLKNO) " 80;mmc close 0 1\0" #define MTD_NAME ""