From: OpenOCD-Gerrit <ope...@us...> - 2020-06-14 13:24:15
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 7e78c04f1c275176bdee8f9d2553300218164577 (commit) via 4a5de86f5871a07c05d4d13f18a75ab4554d07cb (commit) from f0909fe9e5f819d83c90c2622e27d98fa1b59046 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 7e78c04f1c275176bdee8f9d2553300218164577 Author: Alistair Francis <ali...@wd...> Date: Wed May 13 15:04:16 2020 -0700 board: Add the HiFive1 revB board configuration Change-Id: If186afcfd2c87414b9323569a16aed9a6054c883 Signed-off-by: Alistair Francis <ali...@wd...> Reviewed-on: http://openocd.zylin.com/5680 Tested-by: jenkins Reviewed-by: Antonio Borneo <bor...@gm...> Reviewed-by: Tim Newsome <ti...@si...> diff --git a/tcl/board/sifive-hifive1-revb.cfg b/tcl/board/sifive-hifive1-revb.cfg new file mode 100644 index 000000000..292f1027a --- /dev/null +++ b/tcl/board/sifive-hifive1-revb.cfg @@ -0,0 +1,21 @@ +adapter speed 4000 + +adapter driver jlink +transport select jtag + +set _CHIPNAME riscv +jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000913 + +set _TARGETNAME $_CHIPNAME.cpu +target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME +$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 0x4000 -work-area-backup 0 + +flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME.0 + +init + +jlink jtag 3 + +halt +flash protect 0 1 last off +echo "Ready for Remote Connections" commit 4a5de86f5871a07c05d4d13f18a75ab4554d07cb Author: Alistair Francis <ali...@wd...> Date: Wed May 13 15:03:44 2020 -0700 flash: Add the Freedom E310-G002 SPI Flash Change-Id: Id9f4a209a6eacf186931b142e70a5b0458517be0 Signed-off-by: Alistair Francis <ali...@wd...> Reviewed-on: http://openocd.zylin.com/5679 Tested-by: jenkins Reviewed-by: Antonio Borneo <bor...@gm...> Reviewed-by: Tim Newsome <ti...@si...> diff --git a/src/flash/nor/fespi.c b/src/flash/nor/fespi.c index 90242b1ad..05489fdfb 100644 --- a/src/flash/nor/fespi.c +++ b/src/flash/nor/fespi.c @@ -136,7 +136,8 @@ struct fespi_target { /* TODO !!! What is the right naming convention here? */ static const struct fespi_target target_devices[] = { /* name, tap_idcode, ctrl_base */ - { "Freedom E300 SPI Flash", 0x10e31913 , 0x10014000 }, + { "Freedom E310-G000 SPI Flash", 0x10e31913 , 0x10014000 }, + { "Freedom E310-G002 SPI Flash", 0x20000913 , 0x10014000 }, { NULL, 0, 0 } }; ----------------------------------------------------------------------- Summary of changes: src/flash/nor/fespi.c | 3 ++- tcl/board/sifive-hifive1-revb.cfg | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tcl/board/sifive-hifive1-revb.cfg hooks/post-receive -- Main OpenOCD repository |