[U-Boot] [RFC PATCH] ARM: spl: Introduce JTAG mode
Michal Simek
michal.simek at xilinx.com
Mon Aug 11 15:03:36 CEST 2014
Introduce simple JTAG mode which stops CPU
before U-Boot image processing.
Signed-off-by: Ezra Savard <ezra.savard at xilinx.com>
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
Acked-by: Sören Brinkmann <soren.brinkmann at xilinx.com>
---
arch/arm/include/asm/spl.h | 1 +
arch/microblaze/include/asm/spl.h | 1 +
common/spl/spl.c | 7 +++++++
3 files changed, 9 insertions(+)
diff --git a/arch/arm/include/asm/spl.h b/arch/arm/include/asm/spl.h
index e5daf8912712..d690c5914f05 100644
--- a/arch/arm/include/asm/spl.h
+++ b/arch/arm/include/asm/spl.h
@@ -26,6 +26,7 @@ enum {
BOOT_DEVICE_SPI,
BOOT_DEVICE_SATA,
BOOT_DEVICE_I2C,
+ BOOT_DEVICE_JTAG,
BOOT_DEVICE_NONE
};
#endif
diff --git a/arch/microblaze/include/asm/spl.h b/arch/microblaze/include/asm/spl.h
index c1cae6cf0fe6..3715f4862a01 100644
--- a/arch/microblaze/include/asm/spl.h
+++ b/arch/microblaze/include/asm/spl.h
@@ -12,5 +12,6 @@
#define BOOT_DEVICE_RAM 1
#define BOOT_DEVICE_NOR 2
#define BOOT_DEVICE_SPI 3
+#define BOOT_DEVICE_JTAG 4
#endif
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 774fdad2523b..de1de880b738 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -215,6 +215,13 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
spl_sata_load_image();
break;
#endif
+#ifdef CONFIG_SPL_JTAG_SUPPORT
+ case BOOT_DEVICE_JTAG:
+ debug("Ready for image");
+ while (1)
+ ;
+ break;
+#endif
default:
debug("SPL: Un-supported Boot Device\n");
hang();
--
1.8.2.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140811/b95917d2/attachment.pgp>
More information about the U-Boot
mailing list