Patchwork [U-Boot,v2] cfi_flash: use AMD fixups for AMIC (e.g. A29L160A series) too

login
register
mail settings
Submitter Mario Schuknecht
Date Feb. 21, 2011, 12:13 p.m.
Message ID <1298290394-26433-1-git-send-email-m.schuknecht@dresearch.de>
Download mbox | patch
Permalink /patch/83912/
State Awaiting Upstream
Delegated to: Stefan Roese
Headers show

Comments

Mario Schuknecht - Feb. 21, 2011, 12:13 p.m.
Signed-off-by: Mario Schuknecht <m.schuknecht@dresearch.de>
Signed-off-by: Steffen Sledz <sledz@dresearch.de>
---
 drivers/mtd/cfi_flash.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Stefan Roese - April 7, 2011, 8:21 a.m.
On Monday 21 February 2011 13:13:14 Mario Schuknecht wrote:
> Signed-off-by: Mario Schuknecht <m.schuknecht@dresearch.de>
> Signed-off-by: Steffen Sledz <sledz@dresearch.de>

Applied to u-boot-cfi-flash. Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de

Patch

diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index dd394a8..527a3a5 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -1924,7 +1924,8 @@  ulong flash_get_size (phys_addr_t base, int banknum)
 
 		/* Do manufacturer-specific fixups */
 		switch (info->manufacturer_id) {
-		case 0x0001:
+		case 0x0001: /* AMD */
+		case 0x0037: /* AMIC */
 			flash_fixup_amd(info, &qry);
 			break;
 		case 0x001f: