public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] CFI support for a x8/x16 AMD/Spansion flash configured inx8 mode.
@ 2006-01-16 10:24 Txema Lopez
  2006-02-28 16:48 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Txema Lopez @ 2006-01-16 10:24 UTC (permalink / raw)
  To: u-boot

Hi,

This patch is needed for the Lite5200B patch previously submitted.

Signed-off-by: Jose Maria Lopez <tlopez@aotek.es>

CHANGELOG

* CFI support for a x8/x16 AMD/Spansion flash configured in x8 mode:
     Patch by Jose Maria Lopez, 16 Jan 2006

diff -purN u-boot-cvs/drivers/cfi_flash.c u-boot/drivers/cfi_flash.c
--- u-boot-cvs/drivers/cfi_flash.c    2006-01-12 12:22:08.000000000 +0100
+++ u-boot/drivers/cfi_flash.c    2006-01-13 13:35:38.000000000 +0100
@@ -107,9 +107,10 @@
 
 #define AMD_STATUS_TOGGLE        0x40
 #define AMD_STATUS_ERROR        0x20
-#define AMD_ADDR_ERASE_START        0x555
-#define AMD_ADDR_START            0x555
-#define AMD_ADDR_ACK            0x2AA
+
+#define AMD_ADDR_ERASE_START    ((info->portwidth == FLASH_CFI_8BIT) ? 
0xAAA : 0x555)
+#define AMD_ADDR_START        ((info->portwidth == FLASH_CFI_8BIT) ? 
0xAAA : 0x555)
+#define AMD_ADDR_ACK        ((info->portwidth == FLASH_CFI_8BIT) ? 
0x555 : 0x2AA)
 
 #define FLASH_OFFSET_CFI        0x55
 #define FLASH_OFFSET_CFI_RESP        0x10

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tlopez.vcf
Type: text/x-vcard
Size: 427 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060116/14d718c5/attachment.vcf 

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

* [U-Boot-Users] [PATCH] CFI support for a x8/x16 AMD/Spansion flash configured inx8 mode.
  2006-01-16 10:24 [U-Boot-Users] [PATCH] CFI support for a x8/x16 AMD/Spansion flash configured inx8 mode Txema Lopez
@ 2006-02-28 16:48 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2006-02-28 16:48 UTC (permalink / raw)
  To: u-boot

In message <43CB744C.7000600@aotek.es> you wrote:
>
> Signed-off-by: Jose Maria Lopez <tlopez@aotek.es>
> 
> CHANGELOG
> 
> * CFI support for a x8/x16 AMD/Spansion flash configured in x8 mode:
>      Patch by Jose Maria Lopez, 16 Jan 2006

Applied. Thanks.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A student of  probability  soon  realizes  that  by  its  nature  the
billion-to-one  chance  crops  up nine times out of ten, and that the
greatest odds boil down to a double-sided statement: it will  happen,
or it will not.         - Terry Pratchett, _The Dark Side of the Sun_

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

end of thread, other threads:[~2006-02-28 16:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-16 10:24 [U-Boot-Users] [PATCH] CFI support for a x8/x16 AMD/Spansion flash configured inx8 mode Txema Lopez
2006-02-28 16:48 ` Wolfgang Denk

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