Skip to content
Snippets Groups Projects
Commit 7a88601a authored by Richard Retanubun's avatar Richard Retanubun Committed by Stefan Roese
Browse files

CFI: geometry reversal for STMicro M29W320DT


Follow up to the flash_fixup_stm to fix geometry reversal
on STMicro M29W320ET flash chip. The M29W320DT has 4 erase region.

Signed-off-by: default avatarRichard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 069f4364
Branches
Tags
No related merge requests found
......@@ -1806,8 +1806,9 @@ static void flash_fixup_stm(flash_info_t *info, struct cfi_qry *qry)
if (qry->num_erase_regions > 1) {
/* reverse geometry if top boot part */
if (info->cfi_version < 0x3131) {
/* CFI < 1.1, guess by device id (only M29W320ET now) */
if (info->device_id == 0x2256) {
/* CFI < 1.1, guess by device id (M29W320{DT,ET} only) */
if (info->device_id == 0x22CA ||
info->device_id == 0x2256) {
cfi_reverse_geometry(qry);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment