This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: [ECOS] AMD/SPANSION S29GL128M flash driver
- From: Yoshinori Sato <ysato at users dot sourceforge dot jp>
- To: miguelon at tiscali dot it
- Cc: ecos-paches <ecos-patches at sources dot redhat dot com>
- Date: Tue, 29 Aug 2006 11:33:51 +0900
- Subject: Re: [ECOS] AMD/SPANSION S29GL128M flash driver
- References: <11271551.1156779396573.JavaMail.root@ps13>
At Mon, 28 Aug 2006 17:36:36 +0200 (CEST),
<miguelon@tiscali.it> wrote:
>
> Hi,
> I have a TaskIt Portux920T board which mounts an AMD/SPANSION
> S29GL128M flash device. I saw that in the CVS repository only the
> S29GL128N is implemented but if I try to use this driver to build a
> redboot RAM image I get the following error when I execute it:
>
> FLASH: driver init failed: Invalid FLASH address
>
> Did someone have experience with this kind of Flash device? Is it
> really a driver problem or could be something else? Thanks a lot.
>
> Michele
>
I use it with this patch.
Index: am29xxxxx/current/cdl/flash_amd_am29xxxxx.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/amd/am29xxxxx/current/cdl/flash_amd_am29xxxxx.cdl,v
retrieving revision 1.22
diff -u -r1.22 flash_amd_am29xxxxx.cdl
--- am29xxxxx/current/cdl/flash_amd_am29xxxxx.cdl 9 Apr 2006 11:33:52 -0000 1.22
+++ am29xxxxx/current/cdl/flash_amd_am29xxxxx.cdl 29 Aug 2006 02:25:31 -0000
@@ -376,4 +376,15 @@
able to recognize and handle the S29GL512N
part in the family."
}
+
+ cdl_option CYGHWR_DEVS_FLASH_AMD_S29GL128M {
+ display "AMD/SPANSION S29GL128M flash memory support"
+ default_value 0
+ implements CYGINT_DEVS_FLASH_AMD_VARIANTS
+ description "
+ When this option is enabled, the AMD/SPANSION flash driver will be
+ able to recognize and handle the S29GL128M
+ part in the family."
+ }
+
}
Index: am29xxxxx/current/include/flash_am29xxxxx_parts.inl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx_parts.inl,v
retrieving revision 1.26
diff -u -r1.26 flash_am29xxxxx_parts.inl
--- am29xxxxx/current/include/flash_am29xxxxx_parts.inl 9 Apr 2006 11:33:53 -0000 1.26
+++ am29xxxxx/current/include/flash_am29xxxxx_parts.inl 29 Aug 2006 02:25:32 -0000
@@ -1360,6 +1360,21 @@
bufsiz : 16,
},
#endif
+#ifdef CYGHWR_DEVS_FLASH_AMD_S29GL128M
+ { // AMD/SPANSION S29GL128M
+ long_device_id: true,
+ device_id : FLASHWORD(0x227e),
+ device_id2 : FLASHWORD(0x2212),
+ device_id3 : FLASHWORD(0x2200),
+ block_size : 0x10000 * CYGNUM_FLASH_INTERLEAVE,
+ block_count: 256,
+ device_size: 0x1000000 * CYGNUM_FLASH_INTERLEAVE,
+ base_mask : ~(0x1000000 * CYGNUM_FLASH_INTERLEAVE - 1),
+ bootblock : false,
+ banked : false,
+ bufsiz : 16,
+ },
+#endif
#endif // 16 bit devices
--
Yoshinori Sato
<ysato@users.sourceforge.jp>