This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Different flash
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Laurie Gellatly <laurie dot gellatly at netic dot com>
- Cc: ecos discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 3 Jul 2008 15:10:51 +0200
- Subject: Re: [ECOS] Different flash
- References: <BLU138-W5542B2884D191BD376D3BCCA20@phx.gbl> <OBEELMDOHGDFDEMJCJCJAEGHNAAA.laurie.gellatly@netic.com>
> 1) Are there specific drivers for the AT49 or will the AM29 driver be OK.
Im too lazy to go look at the data sheet, so i will skip 1)
My mind reading capabilities is also off line, so i will skip 2) as well.
> 3) If there are specific drivers (or I have to modify/write my own) then do
> I populate the cyg_dev_flash_funs with the appropriate function set at
> startup or do I have two of these structures?
> If 2 structures where/how do I tie them into eCos?
Flash v2 makes this easy. Just register both drivers. The flash
infrastructure will run the probe function to see if the flash
actually exist. So you would expect one to fail to probe and one to
work. The flash infrastructure will then direct all operations through
the working driver.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss