diff options
author | Graeme Russ <gruss@tss-engineering.com> | 2015-01-25 12:07:53 +1100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-02-10 12:48:50 +0100 |
commit | 2d6286ab7983b1fca45b7cc2d670286ec4898ffd (patch) | |
tree | 37e59db56b0fe3e2769937281e8bad21c25c9764 /arch/arm/cpu/arm926ejs/mxs | |
parent | 7a086037071401ee781425c382846dddfe80df68 (diff) | |
download | u-boot-imx-2d6286ab7983b1fca45b7cc2d670286ec4898ffd.zip u-boot-imx-2d6286ab7983b1fca45b7cc2d670286ec4898ffd.tar.gz u-boot-imx-2d6286ab7983b1fca45b7cc2d670286ec4898ffd.tar.bz2 |
arm: mxs: Add 'Wait for JTAG user' if booted in JTAG mode
When booting in JTAG mode, there is no way to use soft break-points, and
no way of knowing when SPL has finished executing (so the user can issue
a 'halt' command to load u-boot.bin for example)
Add a debug output and simple loop to stop execution at the completion of
the SPL initialisation as a pseudo break-point when booting in JTAG mode
Signed-off-by: Graeme Russ <gruss@tss-engineering.com>
Diffstat (limited to 'arch/arm/cpu/arm926ejs/mxs')
-rw-r--r-- | arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c index 2a5f817..d7956e5 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c @@ -157,6 +157,11 @@ void mxs_common_spl_init(const uint32_t arg, const uint32_t *resptr, data->boot_mode_idx = bootmode; mxs_power_wait_pswitch(); + + if (mxs_boot_modes[data->boot_mode_idx].boot_pads == MXS_BM_JTAG) { + debug("SPL: Waiting for JTAG user\n"); + asm volatile ("x: b x"); + } } /* Support aparatus */ |