This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: v2 flash - am29xxxxx v2 : Question about flash topology
- From: Bart Veer <bartv at ecoscentric dot com>
- To: e dot coullien at faiveley dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 14 Dec 2005 16:35:46 +0000 (GMT)
- Subject: Re: [ECOS] v2 flash - am29xxxxx v2 : Question about flash topology
- References: <C12570CF.002DB1E1.00@smtp.faiveley.fr>
>>>>> "Emmanuel" == e coullien <e.coullien@faiveley.com> writes:
Emmanuel> We are using eCosPRO (2.032) release on a new board with
Emmanuel> two 16 bit flash devices in parallel. It woks fine with
Emmanuel> the old flash driver am29xxxxx. But we have to use the
Emmanuel> new driver am29xxxxx_v2 because we use JFFS2. We would
Emmanuel> like to know how to inform the am29xxxxx_v2 driver about
Emmanuel> this topology because actually, the driver
Emmanuel> initialisation failed.
It should be straightforward. You have to set up the processor's
memory controller appropriately to drive a 32-bit bus rather than a
16-bit bus. If things are already working with the V1 driver then
presumably you have done this already. Next, in the platform HAL
package where the AMD device is instantiated you will need to switch
the _16 variants of the init_cfi, erase and program functions to the
_1616 ones. That should be enough to make the AMD driver access two
16-bit devices in parallel.
Do make sure you have this change in your release of the
devs/flash/amd/am29xxxxxv2 package:
2005-01-19 Jonathan Larmour <jifl@eCosCentric.com>
* src/am29xxxxx_aux.c (am29_hw_erase): Handle interleaved
(parallel) flash correctly when one device finishes before another.
(am29_hw_program): Similar.
If you do not already have this it is available in the flash_v2 branch
in anoncvs.
Bart
--
Bart Veer eCos Configuration Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss