efm32: drop unnecessary and incomplete checks
There's really no reason to try and add an extra layer of cpu verification here. Change-Id: If8c4aa03754607be6c089f514ae300b09b067ffa Signed-off-by: Karl Palsson <karlp@tweak.au> Reviewed-on: https://review.openocd.org/c/openocd/+/7844 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
2e60e2eca9
commit
a4b4750e38
|
@ -251,18 +251,6 @@ static int efm32x_read_info(struct flash_bank *bank)
|
|||
|
||||
memset(efm32_info, 0, sizeof(struct efm32_info));
|
||||
|
||||
const struct cortex_m_common *cortex_m = target_to_cm(bank->target);
|
||||
|
||||
switch (cortex_m->core_info->partno) {
|
||||
case CORTEX_M3_PARTNO:
|
||||
case CORTEX_M4_PARTNO:
|
||||
case CORTEX_M0P_PARTNO:
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("Target is not Cortex-Mx Device");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
ret = efm32x_get_flash_size(bank, &(efm32_info->flash_sz_kib));
|
||||
if (ret != ERROR_OK)
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue