From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Where does U-Boot's CFI driver check for top/bottom boot?
Date: Tue, 07 Nov 2006 12:14:03 -0600 [thread overview]
Message-ID: <4550CCEB.3020403@orkun.us> (raw)
In-Reply-To: <9E50B2A5FE44294CBF877745D9A4125FB8A907@az33exm24.fsl.freescale.net>
Spence Nick-rxtd10 wrote:
>
>
> Tolunay Orkun wrote:
>> Subject: Re: [U-Boot-Users] [PATCH] Where does U-Boot's CFI
>> driver check for top/bottom boot?
>>
>> Here is the patch (attached) that handles top boot geometry
>> reversal case on AMD flash.
>>
>
> You probably need to add a check that ext_addr is non-zero. If the
> extended query table is not present then you can't read the version
> number (otherwise you read the reserved section at 0h which is
> undefined)
I thought about it and it is simple to do. That line that sets the ext_addr
was already present for Intel case (to check legacy lock feature from
extended query table) so I just relocated out of the case statement.
Still, I do not know of any actual CFI compliant flash that lacks an
extended query table. Perhaps, it might have been relevant to old non-CFI
JEDEC flash which we do not handle with this driver.
I do not want to introduce code that will not be applicable. What do you
think? I guess I can put the check for robustness just in case there happens
to be an odd one in the market.
Tolunay
next prev parent reply other threads:[~2006-11-07 18:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-06 23:46 [U-Boot-Users] [PATCH] Where does U-Boot's CFI driver check for top/bottom boot? timur at freescale.com
2006-11-07 0:51 ` Tolunay Orkun
2006-11-07 1:09 ` [U-Boot-Users] [PATCH] Where does U-Boot's CFI driver check fortop/bottom boot? Spence Nick-rxtd10
2006-11-07 10:57 ` [U-Boot-Users] [PATCH] Where does U-Boot's CFI driver check for top/bottom boot? Tolunay Orkun
2006-11-07 17:24 ` Timur Tabi
2006-11-07 18:01 ` Tolunay Orkun
2006-11-07 18:16 ` Stefan Roese
2006-11-07 23:05 ` Tolunay Orkun
2006-11-07 23:19 ` Tolunay Orkun
2006-11-07 17:50 ` Spence Nick-rxtd10
2006-11-07 18:14 ` Tolunay Orkun [this message]
2006-11-07 18:38 ` Timur Tabi
2006-11-07 18:46 ` Stefan Roese
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=4550CCEB.3020403@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.