mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
ARM: zynq: Add jtag distro boot support
This patch adds new jtag distro boot command to look for bootscript file in DDR and execute it first incase of jtag bootmode. Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
3b26c860d3
commit
c352f1e121
@ -50,7 +50,7 @@ int board_late_init(void)
|
|||||||
env_set("modeboot", "sdboot");
|
env_set("modeboot", "sdboot");
|
||||||
break;
|
break;
|
||||||
case ZYNQ_BM_JTAG:
|
case ZYNQ_BM_JTAG:
|
||||||
mode = "pxe dhcp";
|
mode = "jtag pxe dhcp";
|
||||||
env_set("modeboot", "jtagboot");
|
env_set("modeboot", "jtagboot");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -176,7 +176,16 @@
|
|||||||
#define BOOTENV_DEV_NAME_NOR(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_NOR(devtypeu, devtypel, instance) \
|
||||||
"nor "
|
"nor "
|
||||||
|
|
||||||
|
#define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
|
||||||
|
|
||||||
|
#define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
|
||||||
|
"bootcmd_jtag=source $scriptaddr; echo SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
|
#define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
|
||||||
|
"jtag "
|
||||||
|
|
||||||
#define BOOT_TARGET_DEVICES(func) \
|
#define BOOT_TARGET_DEVICES(func) \
|
||||||
|
BOOT_TARGET_DEVICES_JTAG(func) \
|
||||||
BOOT_TARGET_DEVICES_MMC(func) \
|
BOOT_TARGET_DEVICES_MMC(func) \
|
||||||
BOOT_TARGET_DEVICES_QSPI(func) \
|
BOOT_TARGET_DEVICES_QSPI(func) \
|
||||||
BOOT_TARGET_DEVICES_NAND(func) \
|
BOOT_TARGET_DEVICES_NAND(func) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user