Skip to content

Commit

Permalink
flash/nor/kinetis_ke: remove 'kinetis mdm test_securing' cmd
Browse files Browse the repository at this point in the history
The command might be a leftover from development of the driver.
There is no documentation what it does.

Change-Id: Iaa5aa1ac51638bd6acce172a5dd03846a165dc27
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/6728
Tested-by: jenkins
Reviewed-by: Ivan-Artekit <[email protected]>
  • Loading branch information
tom-van authored and borneoa committed Dec 3, 2021
1 parent 55da5b4 commit abd94b8
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions src/flash/nor/kinetis_ke.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
};

Expand Down

0 comments on commit abd94b8

Please sign in to comment.