* [U-Boot-Users] Re: Problem with the cfi flash driver with a x8/x16 flash configuredin x8 mode.
[not found] <20060112143901.BC4BE89B3B@sc8-sf-spam1.sourceforge.net>
@ 2006-01-12 16:18 ` Alex BASTOS
2006-01-12 16:42 ` [U-Boot-Users] Re: Problem with the cfi flash driver with a x8/x16 flash configuredinx8 mode Txema Lopez
0 siblings, 1 reply; 3+ messages in thread
From: Alex BASTOS @ 2006-01-12 16:18 UTC (permalink / raw)
To: u-boot
Txema,
> Does anybody test the cfi flash driver (cfi_flash.c) with a x8/x16
> flash configured in x8 mode ? I'm trying to port U-Boot for a Lite5200B
> with a S29GL128N flash (CFI compliant) using the cfi flash driver.
> U-Boot detects the flash correctly but It's unable to erase or write the
> flash. In my case the following patch fix the bug but I'm not completly
> sure If It's only a bug with my configuration. Any suggestions? Could
> anybody test the patch in other architecture?
I think your topic is very similar to this recent one:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/19970
and previous similar patches have been submited and are still
pending (but it seems they are coming, read the whole thread)
So, yes, til now cfi_flash didn't support x8 mode for AMD chips,
but it will.
Best regards,
Alex BASTOS
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Re: Problem with the cfi flash driver with a x8/x16 flash configuredinx8 mode.
2006-01-12 16:18 ` [U-Boot-Users] Re: Problem with the cfi flash driver with a x8/x16 flash configuredin x8 mode Alex BASTOS
@ 2006-01-12 16:42 ` Txema Lopez
2006-02-28 16:45 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Txema Lopez @ 2006-01-12 16:42 UTC (permalink / raw)
To: u-boot
Alex BASTOS wrote:
Thanks Alex,
>Txema,
>
>
>
>>Does anybody test the cfi flash driver (cfi_flash.c) with a x8/x16
>>flash configured in x8 mode ? I'm trying to port U-Boot for a Lite5200B
>>with a S29GL128N flash (CFI compliant) using the cfi flash driver.
>>U-Boot detects the flash correctly but It's unable to erase or write the
>>flash. In my case the following patch fix the bug but I'm not completly
>>sure If It's only a bug with my configuration. Any suggestions? Could
>>anybody test the patch in other architecture?
>>
>>
>
>I think your topic is very similar to this recent one:
>
>http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/19970
>
>
OK, I've checked it.
>and previous similar patches have been submited and are still
>pending (but it seems they are coming, read the whole thread)
>
>
But not the patch that Wolfgang proposed, isn'it?
>So, yes, til now cfi_flash didn't support x8 mode for AMD chips,
>but it will.
>
>Best regards,
>
>Alex BASTOS
>
>
>
>
>
>
I think the patch that Wolfgang proposed could be like that. I've tested
it with a S29GL128N x8/x16 in x8 mode. It works fine. But I have no idea
what would happen in x16 mode or others modes. I haven't the hardware
to check it.
--- ../tmp/u-boot/drivers/cfi_flash.c 2006-01-12 12:22:08.000000000 +0100
+++ drivers/cfi_flash.c 2006-01-12 17:21:19.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 (0xAAA >> (info->portwidth-1))
+#define AMD_ADDR_START (0xAAA >> (info->portwidth-1))
+#define AMD_ADDR_ACK (0x555 >> (info->portwidth-1))
#define FLASH_OFFSET_CFI 0x55
#define FLASH_OFFSET_CFI_RESP 0x10
Best regards,
Jose Maria Lopez.
-------------- 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/20060112/2e17762a/attachment.vcf
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Re: Problem with the cfi flash driver with a x8/x16 flash configuredinx8 mode.
2006-01-12 16:42 ` [U-Boot-Users] Re: Problem with the cfi flash driver with a x8/x16 flash configuredinx8 mode Txema Lopez
@ 2006-02-28 16:45 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2006-02-28 16:45 UTC (permalink / raw)
To: u-boot
In message <43C68711.7080302@aotek.es> you wrote:
>
> I think the patch that Wolfgang proposed could be like that. I've tested
> it with a S29GL128N x8/x16 in x8 mode. It works fine. But I have no idea
> what would happen in x16 mode or others modes. I haven't the hardware
> to check it.
>
> --- ../tmp/u-boot/drivers/cfi_flash.c 2006-01-12 12:22:08.000000000 +0100
> +++ drivers/cfi_flash.c 2006-01-12 17:21:19.000000000 +0100
Not used. Version from Txema Lopez <tlopez@aotek.es> from 16. 01.
2006 applied instead. Closed. 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
Emotions are alien to me. I'm a scientist.
-- Spock, "This Side of Paradise", stardate 3417.3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-28 16:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20060112143901.BC4BE89B3B@sc8-sf-spam1.sourceforge.net>
2006-01-12 16:18 ` [U-Boot-Users] Re: Problem with the cfi flash driver with a x8/x16 flash configuredin x8 mode Alex BASTOS
2006-01-12 16:42 ` [U-Boot-Users] Re: Problem with the cfi flash driver with a x8/x16 flash configuredinx8 mode Txema Lopez
2006-02-28 16:45 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox