Introduce simple JTAG mode which stops CPU
before U-Boot image processing.

Signed-off-by: Ezra Savard <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Acked-by: Sören Brinkmann <[email protected]>
---

 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

Attachment: pgptJ8ewWaW72.pgp
Description: PGP signature

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to