[PATCH] mtd: spi-nor: Enable stateless 4-byte opcodes for N25Q256A/N25Q512A/N25Q00

Alexander Sverdlin alexander.sverdlin at nokia.com
Mon Oct 16 05:25:47 PDT 2017


Hello Marek,

On 16/10/17 13:35, Marek Vasut wrote:
>> The datasheets explicitly state that the stateless opcodes are supported
>> and that they "do not need to be set up in the addressing mode".
>>
>> The stateless mode is clearly more beneficial, because there are boot
>> ROM code versions not able to cope with the chip left in 4-byte state.
>>
>> Tested with Micron N25Q512A.
>>
>> Signed-off-by: Alexander Sverdlin <alexander.sverdlin at nokia.com>
> Can SFDP help here ?

it would be nice, but I've just checked
- JESD216
- "TN-25-06: Serial Flash Discovery Parameters for MT25Q Family"
- N25Q512A "Serial Flash Discovery Parameter Data Structure"

seems, such flag is not provided in the standard. There is a way
to figure out if the chip supports entering 4-bytes mode and what
is the command to enter such a mode, but nothing for the stateless commands.

I would be glad to be wrong in this particular case.

-- 
Best regards,
Alexander Sverdlin.



More information about the linux-mtd mailing list