[PATCH] mtd: spi-nor: Parse SFDP Command Sequence to change to Octal DDR(8D-8D-8D) mode

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Wed Mar 16 04:45:07 CET 2022


On 3/16/22 04:41, liao jaime wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Hi Tudor
> 
>>
>> On 3/15/22 10:45, liao jaime wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>>
>>> Hi
>>>
>>>> Hi,
>>>>
>>>> On 3/10/22 08:59, JaimeLiao wrote:
>>>>> +static int spi_nor_generall_octal_dtr_enable(struct spi_nor *nor)
>>>>
>>>> Is there a disable method too? If not, can we deduce it?
>>> Because of difference with flash vendors, I think it is hard to deduce the
>>> method "spi_nor_generall_octal_dtr_disable".
>>>>
>>
>> I've quickly skimmed through the code it seems that once octal is enabled
>> and you reset the board, the flash remains in octal mode if it doesn't
>> have a dedicated hardware reset line and the octal bit is non volatile.
>> This is bad because there might be ROMs that don't know 8d-8d-8d mode and
>> you'll break the boot sequence for them.
> 
> spi_nor_soft_reset will execute at spi_nor_scan and spi_nor_remove.
> After spi_nor_soft_reset, flash will back to 1-1-1 mode.
> I think we don't need disable method for backing 1-1-1 mode.
> 

True for flashes that support software reset.



More information about the U-Boot mailing list