From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] cfi_flash: reverse geometry for newer STM parts
Date: Wed, 29 Jun 2011 10:08:06 +0200 [thread overview]
Message-ID: <201106291008.06445.sr@denx.de> (raw)
In-Reply-To: <1304980416-14304-1-git-send-email-vapier@gentoo.org>
On Tuesday 10 May 2011 00:33:36 Mike Frysinger wrote:
> For newer STM parts where CFI >= 1.1, there is a byte in the extended
> structure that declares the flash layout type (just like the AMD parts),
> so key off of that to find out when we need to reverse the geometry.
>
> This can be seen with M29W640 parts where U-Boot does:
> Bank # 1: CFI conformant FLASH (16 x 16) Size: 8 MB in 135 Sectors
> AMD Standard command set, Manufacturer ID: 0x20, Device ID: 0x22ED
> Erase timeout: 8192 ms, write timeout: 1 ms
> Buffer write timeout: 1 ms, buffer size: 16 bytes
>
> Sector Start Addresses:
> 20000000 RO 20002000 RO 20004000 RO 20006000 RO 20008000
> RO 2000A000 RO 2000C000 RO 2000E000 RO 20010000 RO
> 20020000 RO ...
>
> But Linux does:
> physmap platform flash device: 00800000 at 20000000
> physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank.
> Manufacturer ID 0x000020 Chip ID 0x0022ed
> physmap-flash.0: Swapping erase regions for top-boot CFI table.
Applied to u-boot-cfi-flash/master. Thanks.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
prev parent reply other threads:[~2011-06-29 8:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-09 22:33 [U-Boot] [PATCH] cfi_flash: reverse geometry for newer STM parts Mike Frysinger
2011-06-28 19:30 ` Mike Frysinger
2011-06-29 6:24 ` Stefan Roese
2011-06-29 8:08 ` Stefan Roese [this message]
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=201106291008.06445.sr@denx.de \
--to=sr@denx.de \
--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.