From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc. [Updated]
Date: Sun, 12 Nov 2006 16:04:08 -0600 [thread overview]
Message-ID: <45579A58.8040405@orkun.us> (raw)
In-Reply-To: <200611120913.30828.sr@denx.de>
Stefan Roese wrote:
>>> - flash_write_cmd(info, 0, 0, FLASH_CMD_READ_ID);
>>> + flash_write_cmd(info, 0, AMD_ADDR_START,
>>> FLASH_CMD_READ_ID);
>> I think this change is what was missing which I overlooked. Intel does
>> not need a specific address to write the command nor unlock sequence.
>
> And that's the reason I don't like those Intel devices. I got some devices
> accidentally screwed in a project once.
I hear you. I was not talking about merits.
> So FLASH ID's are now read back correctly.
Great. Your flash device should validate CFI = 1.0 code path for geometry
reversal detection as well.
>> I will update the patch tonight and resend it yet again.
>
> Not necessary. I'll forward this patch with the fix to Wolfgang. Thanks again.
I did it anyway [DNX#2006111242000019]. Plus a few more minor changes: I've
added my copyright line. Added a few more comments and removed some other
change history comments included with previous copyright lines. Copyrights
are still there as it should be.
I prefer if you can use this patch if it is not too late.
> And when it's included we can continue to extend the code with additional
> features, like fixing this ST FLASH geometry reversal (or others) by
> identifying it's device ID.
It looks the sector addresses you included (below) is now that of top boot.
Is it not working for you? When I enabled DEBUG the flash driver would have
trouble with writes even for Intel (possibily clearing the status register
prematurely). Make sure you test with DEBUG disabled for cp command.
> Sector Start Addresses:
> FFE00000 FFE10000 FFE20000 E FFE30000 E FFE40000 E
> FFE50000 E FFE60000 E FFE70000 E FFE80000 E FFE90000 E
> FFEA0000 E FFEB0000 E FFEC0000 E FFED0000 E FFEE0000 E
> FFEF0000 E FFF00000 E FFF10000 E FFF20000 E FFF30000 E
> FFF40000 E FFF50000 E FFF60000 E FFF70000 E FFF80000 E
> FFF90000 E FFFA0000 RO FFFB0000 RO FFFC0000 RO FFFD0000 RO
> FFFE0000 RO FFFF0000 RO FFFF8000 E FFFFA000 E FFFFC000
I think should probably re-org the code sometime to be more table driven. We
can avoid testing for vendor everywhere and make code much easier to read
and extend. If a vendor is sticking to AMD style chips we could also have
option to exclude the Intel support (or vice versa) completely to save some
space that way.
Best regards,
Tolunay
next prev parent reply other threads:[~2006-11-12 22:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-09 23:46 [U-Boot-Users] [PATCH] CFI driver AMD Command Set Top boot geometry reversal, etc. [Updated] Tolunay Orkun
2006-11-10 11:16 ` Stefan Roese
2006-11-10 15:47 ` Tolunay Orkun
2006-11-10 21:31 ` Timur Tabi
2006-11-10 22:44 ` Timur Tabi
2006-11-12 4:42 ` Tolunay Orkun
2006-11-12 8:13 ` Stefan Roese
2006-11-12 22:04 ` Tolunay Orkun [this message]
2006-11-13 13:05 ` Stefan Roese
2006-11-13 15:34 ` Timur Tabi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45579A58.8040405@orkun.us \
--to=listmember@orkun.us \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox