[U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc.

This patch:
* Adds support for AMD command set Top Boot flash geometry reversal * Adds support for displaying command set, manufacturer id and device ids (flinfo) * Makes flinfo output to be consistent when CFG_FLASH_EMPTY_INFO defined * Removes outdated change history (refer to git log instead)
Signed-off-by: Tolunay Orkun listmember@orkun.us ---
drivers/cfi_flash.c | 153 +++++++++++++++++++++++++++++++++------------------ include/flash.h | 7 ++ 2 files changed, 105 insertions(+), 55 deletions(-)

Tolunay Orkun wrote:
This patch:
- Adds support for AMD command set Top Boot flash geometry reversal
- Adds support for displaying command set, manufacturer id and device ids (flinfo)
- Makes flinfo output to be consistent when CFG_FLASH_EMPTY_INFO defined
- Removes outdated change history (refer to git log instead)
This patch looks good, but I get this from flinfo:
Bank # 1: CFI conformant FLASH (16 x 16) Size: 8 MB in 135 Sectors AMD Standard command set, Manufacturer ID: 0xFF, Device ID: 0xFF Erase timeout: 16384 ms, write timeout: 1 ms
Are these the correct values for manufacturer ID and device ID?

Timur Tabi wrote:
Tolunay Orkun wrote:
This patch:
- Adds support for AMD command set Top Boot flash geometry reversal
- Adds support for displaying command set, manufacturer id and device ids (flinfo)
- Makes flinfo output to be consistent when CFG_FLASH_EMPTY_INFO
defined
- Removes outdated change history (refer to git log instead)
This patch looks good, but I get this from flinfo:
Bank # 1: CFI conformant FLASH (16 x 16) Size: 8 MB in 135 Sectors AMD Standard command set, Manufacturer ID: 0xFF, Device ID: 0xFF Erase timeout: 16384 ms, write timeout: 1 ms
Are these the correct values for manufacturer ID and device ID?
Thanks for testing the patch. Not correct. It is cosmetic in your case since your flash CFI is version 1.1 or later.
It looks like I cannot access JEDEC IDs while still in CFI Query mode in AMD style flash (unlike Intel). Bummer :( I have to explicitly send the autoselect command to read out and switch back to CFI Query mode again.
I will improve the patch. Also, while browsing Spansion web site, I came across with 3 byte Device IDs. So, we have to improve on that as well.
Best regards, Tolunay

Tolunay Orkun wrote:
I will improve the patch. Also, while browsing Spansion web site, I came across with 3 byte Device IDs. So, we have to improve on that as well.
Well, I wouldn't object to leaving that work for another time. I'm sure there is tons of flash info that could be collected and displayed. I'd rather have the current patch added to U-Boot this week, then to wait until next week for an expanded one.
Of course, that decision is really Wolfgang's.
FYI, your patch also works on my 8360 board, which has uniform sectors.
participants (2)
-
Timur Tabi
-
Tolunay Orkun