This is an automated email from Gerrit.

"Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/6728

-- gerrit

commit 7e656f654a536ed1c67846aa60a616f0d9e7bc55
Author: Tomas Vanek <van...@fbl.cz>
Date:   Sat Nov 20 11:44:55 2021 +0100

    flash/nor/kinetis_ke: remove 'kinetis mdm test_securing' cmd
    
    The command maight be a leftover from development of the driver.
    There is no documentation what it does.
    
    Change-Id: Iaa5aa1ac51638bd6acce172a5dd03846a165dc27
    Signed-off-by: Tomas Vanek <van...@fbl.cz>

diff --git a/src/flash/nor/kinetis_ke.c b/src/flash/nor/kinetis_ke.c
index 225dc6f07..48749e617 100644
--- a/src/flash/nor/kinetis_ke.c
+++ b/src/flash/nor/kinetis_ke.c
@@ -933,39 +933,6 @@ static int kinetis_ke_ftmrx_command(struct flash_bank 
*bank, uint8_t count,
        return ERROR_OK;
 }
 
-COMMAND_HANDLER(kinetis_ke_securing_test)
-{
-       int result;
-       struct target *target = get_current_target(CMD_CTX);
-       struct flash_bank *bank = NULL;
-       uint32_t address;
-
-       uint8_t FCCOBIX[2], FCCOBHI[2], FCCOBLO[2], fstat;
-
-       result = get_flash_bank_by_addr(target, 0x00000000, true, &bank);
-       if (result != ERROR_OK)
-               return result;
-
-       assert(bank);
-
-       if (target->state != TARGET_HALTED) {
-               LOG_ERROR("Target not halted");
-               return ERROR_TARGET_NOT_HALTED;
-       }
-
-       address = bank->base + 0x00000400;
-
-       FCCOBIX[0] = 0;
-       FCCOBHI[0] = FTMRX_CMD_ERASESECTOR;
-       FCCOBLO[0] = address >> 16;
-
-       FCCOBIX[1] = 1;
-       FCCOBHI[1] = address >> 8;
-       FCCOBLO[1] = address;
-
-       return kinetis_ke_ftmrx_command(bank, 2, FCCOBIX, FCCOBHI, FCCOBLO, 
&fstat);
-}
-
 static int kinetis_ke_erase(struct flash_bank *bank, unsigned int first,
                unsigned int last)
 {
@@ -1252,13 +1219,6 @@ static const struct command_registration 
kinetis_ke_security_command_handlers[]
                .usage = "",
                .handler = kinetis_ke_mdm_mass_erase,
        },
-       {
-               .name = "test_securing",
-               .mode = COMMAND_EXEC,
-               .help = "",
-               .usage = "",
-               .handler = kinetis_ke_securing_test,
-       },
        COMMAND_REGISTRATION_DONE
 };
 

-- 

Reply via email to