[MIPS] Add bcm947xx support [3/5]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add support for my specific flash chip, bit hard to get a valid mount to /dev/mtdblock otherwise.

From 4c00e0a9a3cfca9dc77fd47004e467918575d3b9 Mon Sep 17 00:00:00 2001
From: Maarten Lankhorst <M.B.Lankhorst@xxxxxxxxx>
Date: Tue, 10 Oct 2006 13:14:12 +0200
Subject: [PATCH] Detect-wrt54gl-flashchip
---
drivers/mtd/chips/cfi_cmdset_0002.c |    6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
index 702ae4c..1a7a756 100644
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -291,8 +291,10 @@ struct mtd_info *cfi_cmdset_0002(struct return NULL;
		}

-		if (extp->MajorVersion != '1' ||
-		    (extp->MinorVersion < '0' || extp->MinorVersion > '4')) {
+		/* Apparantly Major/Minor 3.3 is supported too */
+		if (!(extp->MajorVersion == '3' && extp->MinorVersion == '3') &&
+		    (extp->MajorVersion != '1' ||
+		    (extp->MinorVersion < '0' || extp->MinorVersion > '4'))) {
			printk(KERN_ERR "  Unknown Amd/Fujitsu Extended Query "
			       "version %c.%c.\n",  extp->MajorVersion,
			       extp->MinorVersion);
--
1.4.1



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux