diff options
| author | Richard Retanubun <RichardRetanubun@RuggedCom.com> | 2009-03-06 10:09:37 -0500 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2009-03-19 15:00:32 +0100 | 
| commit | 7a88601a34132548c3c591ea87ab3468b51121b0 (patch) | |
| tree | 193c44bfc75d94513579f49901da38b880da6b7c /drivers/mtd/cfi_flash.c | |
| parent | 069f4364d807d7fdea3de7385ad2f8d83c587aec (diff) | |
| download | olio-uboot-2014.01-7a88601a34132548c3c591ea87ab3468b51121b0.tar.xz olio-uboot-2014.01-7a88601a34132548c3c591ea87ab3468b51121b0.zip  | |
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: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/mtd/cfi_flash.c')
| -rw-r--r-- | drivers/mtd/cfi_flash.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index a66feac14..391d169a4 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -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);  			}  		}  |