From: Michael Schwingen <michael@schwingen.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH (resend): support JEDEC flash roms in CFI-flash framework
Date: Mon, 26 Nov 2007 19:57:16 +0100 [thread overview]
Message-ID: <20071126185716.GA9487@discworld.dascon.de> (raw)
In-Reply-To: <20071124174500.GA17159@discworld.dascon.de>
On Sat, Nov 24, 2007 at 06:45:01PM +0100, Michael Schwingen wrote:
> Done - here is the complete patch again, plus description:
Sorry, I missed the diff for flash.h:
cu
Michael
Signed-off-by: Michael Schwingen <michael@schwingen.org>
diff --git a/include/flash.h b/include/flash.h
index b0bf733..cd075f9 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -52,6 +52,9 @@ typedef struct {
ushort ext_addr; /* extended query table address */
ushort cfi_version; /* cfi version */
ushort cfi_offset; /* offset for cfi query */
+ ulong addr_unlock1; /* unlock address 1 for AMD flash roms */
+ ulong addr_unlock2; /* unlock address 2 for AMD flash roms */
+ const char *name; /* human-readable name */
#endif
} flash_info_t;
@@ -101,6 +104,12 @@ extern void flash_read_user_serial(flash_info_t * info, void * buffer, int offse
extern void flash_read_factory_serial(flash_info_t * info, void * buffer, int offset, int len);
#endif /* CFG_FLASH_PROTECTION */
+#ifdef CFG_FLASH_CFI_LEGACY
+extern ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info);
+extern int jedec_flash_match(flash_info_t *info, ulong base);
+#define CFI_CMDSET_AMD_LEGACY 0xFFF0
+#endif
+
/*-----------------------------------------------------------------------
* return codes from flash_write():
*/
next prev parent reply other threads:[~2007-11-26 18:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-12 20:23 [U-Boot-Users] PATCH: support JEDEC flash roms in CFI-flash framework Michael Schwingen
2007-11-13 14:45 ` Stefan Roese
2007-11-13 19:13 ` Michael Schwingen
2007-11-13 15:26 ` Bartlomiej Sieka
2007-11-13 18:59 ` Michael Schwingen
2007-11-13 20:56 ` Stefan Roese
2007-11-24 17:45 ` [U-Boot-Users] PATCH (resend): " Michael Schwingen
2007-11-26 18:57 ` Michael Schwingen [this message]
2007-12-05 15:58 ` Bartlomiej Sieka
2007-12-05 22:25 ` Michael Schwingen
2007-12-05 22:40 ` Bartlomiej Sieka
2007-12-07 8:42 ` Stefan Roese
2007-12-07 22:35 ` [U-Boot-Users] PATCH (resend): support JEDEC flash roms in?CFI-flash framework Michael Schwingen
2007-12-08 7:31 ` 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=20071126185716.GA9487@discworld.dascon.de \
--to=michael@schwingen.org \
--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.