Patchwork [U-Boot] AT49BV322A Flash: the erase regions are in the wrong order.

login
register
mail settings
Submitter David Wu
Date April 9, 2010, 3:11 p.m.
Message ID <op.vawht0qkqigx4y@cyprus.local>
Download mbox | patch
Permalink /patch/71750/
State Superseded
Delegated to: Stefan Roese
Headers show

Comments

David Wu - April 9, 2010, 3:11 p.m.
The device id for this Flash is 0xc8.

Signed-off-by: David Wu <davidwu@arcturusnetworks.com>
---
    drivers/mtd/cfi_flash.c |    4 +++-
    1 files changed, 3 insertions(+), 1 deletions(-)

    	if (reverse_geometry)

Patch

diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index fdba297..af86f99 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -1690,8 +1690,10 @@  static void flash_fixup_atmel(flash_info_t *info,
struct cfi_qry *qry)
    	/* AT49BV6416(T) list the erase regions in the wrong order.
    	 * However, the device ID is identical with the non-broken
    	 * AT49BV642D they differ in the high byte.
+	 * AT49BV322A is also in the wrong order.
    	 */
-	if (info->device_id == 0xd6 || info->device_id == 0xd2)
+	if (info->device_id == 0xd6 || info->device_id == 0xd2 ||
+	    info->device_id == 0xc8)
    		reverse_geometry = !reverse_geometry;