Adding the manufacturer id of STMicroelectronics
For supporting the flash on a Motorola C118. Signed-off-by: Christian Inci <chris.pcguy.inci@gmail.com> --- src/target/firmware/flash/cfi_flash.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/target/firmware/flash/cfi_flash.c b/src/target/firmware/flash/cfi_flash.c index 69369d5..474dcbb 100644 --- a/src/target/firmware/flash/cfi_flash.c +++ b/src/target/firmware/flash/cfi_flash.c @@ -71,6 +71,7 @@ struct cfi_query { /* manufacturer ids */ enum cfi_manuf { + CFI_MANUF_ST = 0x0020, CFI_MANUF_INTEL = 0x0089, }; @@ -532,7 +533,7 @@ int flash_init(flash_t * flash, void *base_addr) if (res) { return res; } - if (m_id != CFI_MANUF_INTEL) { + if (m_id != CFI_MANUF_INTEL && m_id != CFI_MANUF_ST) { /* we only support intel devices */ return -ENOTSUP; } -- 1.7.8.6 --------------020907080906030400030607--
participants (1)
-
Christian Inci