From: Wolfgang Denk Date: Thu, 24 Feb 2005 23:33:40 +0100 Subject: [U-Boot-Users] Multiple Flash Devices In-Reply-To: Your message of "Wed, 23 Feb 2005 10:30:30 EST." Message-ID: <20050224223345.75BA4C1430@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message Zachary Landau wrote: > > In that case, did both flash devices use the same driver? My two There is always only one flash driver. > flash devices use different drivers. So what I am currently doing is > adding a prefix to the different flash driver functions (ie: change > CFI's write_buff to cfi_write_buff) and then adding function pointers > to each flash bank structure indicating which function to use. Why do you think this is necessary? > This seems to be a decent approach. The main problem is that the > flash calls are a bit scattered, and also it will require all flash > devices to be changed. But I'll continue with it unless someone has a Such a change will never be accepted for the common source tree. Best regards, Wolfgang Denk -- See us @ Embedded World, Nuremberg, Feb 22 - 24, Hall 10.0 Booth 310 Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Clothes make the man. Naked people have little or no influence on society. - Mark Twain