public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc.
@ 2006-11-09  5:21 Tolunay Orkun
  2006-11-09 16:52 ` Timur Tabi
  0 siblings, 1 reply; 5+ messages in thread
From: Tolunay Orkun @ 2006-11-09  5:21 UTC (permalink / raw)
  To: u-boot

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(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfi_driver.patch
Type: text/x-patch
Size: 9794 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20061108/b740e9c2/attachment.bin 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc.
  2006-11-09  5:21 [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc Tolunay Orkun
@ 2006-11-09 16:52 ` Timur Tabi
  2006-11-09 20:11   ` Tolunay Orkun
  0 siblings, 1 reply; 5+ messages in thread
From: Timur Tabi @ 2006-11-09 16:52 UTC (permalink / raw)
  To: u-boot

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
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc.
  2006-11-09 16:52 ` Timur Tabi
@ 2006-11-09 20:11   ` Tolunay Orkun
  2006-11-09 20:16     ` Timur Tabi
  0 siblings, 1 reply; 5+ messages in thread
From: Tolunay Orkun @ 2006-11-09 20:11 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc.
  2006-11-09 20:11   ` Tolunay Orkun
@ 2006-11-09 20:16     ` Timur Tabi
       [not found]       ` <200611092222.01122.sr@denx.de>
  0 siblings, 1 reply; 5+ messages in thread
From: Timur Tabi @ 2006-11-09 20:16 UTC (permalink / raw)
  To: u-boot

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.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc.
       [not found]       ` <200611092222.01122.sr@denx.de>
@ 2006-11-09 21:25         ` Timur Tabi
  0 siblings, 0 replies; 5+ messages in thread
From: Timur Tabi @ 2006-11-09 21:25 UTC (permalink / raw)
  To: u-boot

Stefan Roese wrote:

> Yes, I second Timurs opinion. So Tolunay, please send your updated patch to 
> also correctly display the ID's and we'll try to get this in pretty soon.

Actually, what I meant to say is the Tolunay's patch, as it is *now*, is good 
enough for now.  But again, that's just my opinion.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-09 21:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09  5:21 [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc Tolunay Orkun
2006-11-09 16:52 ` Timur Tabi
2006-11-09 20:11   ` Tolunay Orkun
2006-11-09 20:16     ` Timur Tabi
     [not found]       ` <200611092222.01122.sr@denx.de>
2006-11-09 21:25         ` Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox