From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Sat, 25 Apr 2015 21:44:51 +0200 Subject: [U-Boot] [RFC PATCH 4/4 v3] mtd: sf: Add CONFIG_SPI_N25Q256A_RESET for software-reset In-Reply-To: <201410012025.55937.marex@denx.de> References: <1412176391-24475-1-git-send-email-sr@denx.de> <1412176391-24475-5-git-send-email-sr@denx.de> <201410012025.55937.marex@denx.de> Message-ID: <20150425194451.GB18496@amd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed 2014-10-01 20:25:55, Marek Vasut wrote: > On Wednesday, October 01, 2014 at 05:13:11 PM, Stefan Roese wrote: > > This is needed for the SoCFPGA booting from SPI NOR flash > > e.g. (N25Q256A). With these changes, the SoCrates can boot and > > re-boot (reset) from SPI NOR flash without any problems. > > Seems like your SPI NOR reset logic is buggy. Does any of [1] apply to your > board please? Actually, this has nothing to do with SPI NOR reset logic. Yes, we need to reset NOR flash during u-boot startup, because hardware was already initialized to 4-byte addressing by u-boot-spl. No matter what reset logic does, if it passes u-boot-spl (and SPI NOR is actually used), it will be in 4-byte mode. And no, mainline u-boot-spl is not usable on socfpga, and probably will not be usable for a whill, so u-boot-spl from altera is only option here. So.. what to do? Do you want this patch? Do you want patch that know how to switch back to 3-byte addressing on this particular flash? Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html