[U-Boot] [PATCH] mtd: cfi: Fix checking status register feature

Stefan Roese sr at denx.de
Mon Dec 4 06:43:07 UTC 2017


On 02.12.2017 10:15, Marek Vasut wrote:
> On 11/18/2017 08:09 PM, York Sun wrote:
>> Commit 72443c7f7d21 ("mtd: cfi: Add support for status register
>> polling") added a feature check to determine if status register
>> is available for certain flash chips. The "lower software bits"
>> register used to determine this feature is not backward compati-
>> ble. Older flash chips without this feature has reserved value
>> 0xff. Instead of checking "lower software bits" register, use
>> CFI primary vendor-specific extended query. Since CFI version
>> 1.4, software features can be read from offset 0x53 according to
>> document AN201168 from Cypress.
>>
>> Signed-off-by: York Sun <york.sun at nxp.com>
>> CC: Marek Vasut <marek.vasut at gmail.com>
> 
> On R8A7796 M3 ULCB
> Tested-by: Marek Vasut <marek.vasut at gmail.com>

Applied to u-boot-cfi-flash/master.

Thanks,
Stefan


More information about the U-Boot mailing list