This is an automated email from Gerrit.

Tarek BOCHKATI ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/6426

-- gerrit

commit a9d041d03adbc979095ff257e428b6f36c38a5f3
Author: Tarek BOCHKATI <[email protected]>
Date:   Tue Aug 10 15:32:37 2021 +0100

    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 <[email protected]>

diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 613012b..a5babec 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, 
p->target->cmd_name, -1));
 
                Jim_ListAppendElement(interp, list, elem);
        }

-- 

Reply via email to