[PATCH] spi-nor: Fix for Freescale i.MX6 reboot issue when using a N25Q00A boot device.

Marek Vasut marex at denx.de
Thu Sep 25 10:09:41 PDT 2014


On Saturday, August 16, 2014 at 08:14:05 PM, Jeremy Garff wrote:
> This is my first submission to the linux-mtd list.  I found

Found yes

> and fixed

Fixed no ;-)

> a issue related to the i.MX6 when using a N25Q00A spi-nor as the boot
> device.  The following is a patch and more detailed description.  As
> this is my first submission to this list, so please let me know you
> have any questions or concerns.

Well, the problem is that the SPI NOR ends in undefined state when you reset the 
board. The problem is not in Linux, the problem is in your board. You should use 
the RESET-OUTPUT pin of your MX6 to implement proper reset sequencing for the 
SPI NOR.

This patch would not work in case you were doing a PageProgram operation and I 
came around and mashed the 'reset' button on your board. The SPI NOR would be 
somewhere in the middle of the PP and your MX6 would simply not boot.

So the solution here is to fix your hardware ;-)

btw this is a common issue, we should really document this before more people 
get hurt.

btw2 Spansion does much better job, their SPI NORs have RESET pin, so you don't 
need to implement logic to power cycle the SPI NOR.

Best regards,
Marek Vasut



More information about the linux-mtd mailing list