diff options
author | Tarek BOCHKATI <tarek.bouchkati@gmail.com> | 2021-08-10 15:32:37 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-09-04 07:26:10 +0000 |
commit | f24a283ac7765df6f09694a4cee99150cb645ac1 (patch) | |
tree | a22405cff9b69f28a7867093f39d929592ad9568 /src/flash/nor/tcl.c | |
parent | 9f733ba2f274c425178780812d1c44fa44e464e4 (diff) | |
download | riscv-openocd-f24a283ac7765df6f09694a4cee99150cb645ac1.zip riscv-openocd-f24a283ac7765df6f09694a4cee99150cb645ac1.tar.gz riscv-openocd-f24a283ac7765df6f09694a4cee99150cb645ac1.tar.bz2 |
flash/nor/tcl: 'flash list' command: add the flash bank target
add the target assigned to the flash bank at creation
this is useful in daisy chains, to filter out the target banks.
Change-Id: Ic39e44914e34bb62991783762e5a65ef8871e82f
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6426
Tested-by: jenkins
Reviewed-by: zapb <dev@zapb.de>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/flash/nor/tcl.c')
-rw-r--r-- | src/flash/nor/tcl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index 613012b..228e76f 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -1361,6 +1361,8 @@ static int jim_flash_list(Jim_Interp *interp, int argc, Jim_Obj * const *argv) Jim_ListAppendElement(interp, elem, Jim_NewIntObj(interp, p->bus_width)); Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, "chip_width", -1)); Jim_ListAppendElement(interp, elem, Jim_NewIntObj(interp, p->chip_width)); + Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, "target", -1)); + Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, target_name(p->target), -1)); Jim_ListAppendElement(interp, list, elem); } |