summaryrefslogtreecommitdiff
path: root/configs/porter_defconfig
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2018-04-07 16:16:30 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2018-04-11 23:11:55 +0200
commit82239aa7cd6bca3fbb2335523e4f8ff782c401c8 (patch)
treeb1f2c9e3389183f5e8dc5b7b24c7a154a405d86d /configs/porter_defconfig
parent9a5483e9df9557c1387e9a0c15c881e6f0278448 (diff)
downloadu-boot-82239aa7cd6bca3fbb2335523e4f8ff782c401c8.tar.gz
u-boot-82239aa7cd6bca3fbb2335523e4f8ff782c401c8.tar.bz2
u-boot-82239aa7cd6bca3fbb2335523e4f8ff782c401c8.zip
ARM: rmobile: Add JTAG recovery support for M2 Porter
Add JTAG recovery support into the M2 Porter TPL. This allows the TPL to be loaded over JTAG, initialize the system, wait for the JTAG debugger to load U-Boot image into RAM and then resume and start U-Boot from RAM. The procedure is as follows: 1) Load u-boot-tpl.bin to 0xe6300000 2) Write magic number 0x1337c0de to 0xe6300020 TPL checks for this particular magic and starts JTAG recovery if this number is present. This is not present by default. 3) Start U-Boot TPL from 0xe6300000 4) Wait for a message from TPL on UART indicating JTAG boot: "JTAG boot detected!" 5) Halt the system in JTAG debugger 6) Load U-Boot image (u-boot.img) to 0x4fffffc0 7) Write magic number 0xb33fc0de to 0xe6300024 TPL checks for this particular magic to verify that the U-Boot image was loaded into DRAM by the JTAG debugger. 8) Resume the system in JTAG debugger Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'configs/porter_defconfig')
-rw-r--r--configs/porter_defconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/configs/porter_defconfig b/configs/porter_defconfig
index a0e44df5f8..e4a2828ed4 100644
--- a/configs/porter_defconfig
+++ b/configs/porter_defconfig
@@ -1,4 +1,5 @@
CONFIG_ARM=y
+CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y
CONFIG_ARCH_RMOBILE=y
CONFIG_SYS_TEXT_BASE=0x50000000
CONFIG_SPL_GPIO_SUPPORT=y
@@ -29,6 +30,8 @@ CONFIG_SPL_YMODEM_SUPPORT=y
CONFIG_TPL=y
CONFIG_TPL_BOARD_INIT=y
CONFIG_TPL_NEEDS_SEPARATE_TEXT_BASE=y
+CONFIG_TPL_RAM_SUPPORT=y
+CONFIG_TPL_RAM_DEVICE=y
CONFIG_TPL_SERIAL_SUPPORT=y
CONFIG_TPL_SPI_FLASH_SUPPORT=y
CONFIG_TPL_SPI_LOAD=y