From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Wed, 02 Dec 2009 11:57:56 +0100 Subject: [U-Boot] Mixed 8/16 bits NOR FLASH support In-Reply-To: <200912021015.34183.sr@denx.de> References: <1258239796-21528-1-git-send-email-albert.aribaud@free.fr> <20091118222158.A05573F6C2@gemini.denx.de> <4B1625EF.7060707@free.fr> <200912021015.34183.sr@denx.de> Message-ID: <4B164834.7010108@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Stefan Roese a ?crit : > Hi Albert, >> In the case of U-boot's CFI detection code, it detects the MX29LV400CB >> as 16-bit because of its QRY block offset (0x20) and null upper bytes. >> Then it wants to talk to it using 16-bit wide writes at 16-bit mode >> offsets, which, in my case, fails. > > Since the CFI driver starts detection in 8bit mode and only switches to 16bit > mode (32bit etc.) if this fails, we seem to have a problem with 8bit mode > detection of this chip. All 8-bit mode checks assume the QRY bytes are at addresses 0x10, 0x11, 0x12 etc. So they fail too, since a mixed-mode chip outputs a word-mode QRY always, at addresses 0xx20, 0x22, 0x24 etc. Amicalement, -- Albert.