diff options
author | York Sun <york.sun@nxp.com> | 2017-11-18 11:09:08 -0800 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2017-12-04 07:41:32 +0100 |
commit | 2544f47078635958bacb106684a2f81f57a4ed80 (patch) | |
tree | c6aa01528f1dad1f2708cb06cec1e121dc714685 /include/console.h | |
parent | b06c46de632c55f4c39d404c6f0f65e414b31050 (diff) |
mtd: cfi: Fix checking status register feature
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@nxp.com>
CC: Marek Vasut <marek.vasut@gmail.com>
Tested-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/console.h')
0 files changed, 0 insertions, 0 deletions