From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-bn1on0056.outbound.protection.outlook.com ([157.56.110.56] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XoHMd-00008q-LL for linux-mtd@lists.infradead.org; Tue, 11 Nov 2014 19:44:32 +0000 Date: Tue, 11 Nov 2014 13:41:09 -0600 From: Graham Moore To: bpqw Subject: Re: [V5 PATCH 1/1] driver:mtd:spi-nor: Add quad I/O support for Micron spi nor In-Reply-To: <54613259.4070903@opensource.altera.com> Message-ID: References: <201409251211.57183.marex@denx.de> <201409261046.07132.marex@denx.de> <54613259.4070903@opensource.altera.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Cc: Marek Vasut , "geert+renesas@glider.be" , "shijie8@gmail.com" , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" , Brian Norris , "dwmw2@infradead.org" , Graham Moore List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/05/2014 09:09 PM, bpqw wrote: > This patch adds code which enables Quad I/O mode on Micron SPI NOR flashes. > > For Micron SPI NOR flash,enabling or disabling quad I/O protocol is > controlled > by EVCR (Enhanced Volatile Configuration Register), Quad I/O protocol bit 7. > When EVCR bit 7 is reset to 0,the SPI NOR flash will operate in quad I/O > mode. Hi, I'm having trouble with this patch using a Cadence QSPI controller and Micron n25q00 part. I can use quad commands in Extended SPI mode, but I can't make this EVCR Quad mode work. The Cadence QSPI Controller has fields to configure the quad transfer, and can support quad opcode, quad address, and quad data, or some combination. There is a chart in the docs which shows the combinations for various read commands. Problem is, I've tried all of the combinations and all I get is FF with this EVCR patch. If I don't set the quad mode in the EVCR, then I can use quad read commands no problem. Bottom line, with the Cadence QSPI controller, if I use quad commands in Extended SPI mode, then all good. If I use this EVCR quad mode, then all bad. Anybody else have a Cadence QSPI controller and using EVCR quad mode successfully? Thanks, Graham Moore