From: Wolfgang Denk Date: Mon, 20 Oct 2003 20:38:05 +0200 Subject: [U-Boot-Users] PXA & PCMCIA In-Reply-To: Your message of "Mon, 20 Oct 2003 17:43:59 +0200." Message-ID: <20031020183810.B19A4C59E4@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 Dear Leon, in message you wrote: > > Since I'm very new to U-boot and before I start poking around, I would like to > know if putting pcmcia related functions in boards/wepep250/pcmcia.c for > WEP EP250 board is OK or are there any other recommended locations ? If this was board dependend code, it would be ok to put it in boards/wepep250/ - but my feeling is that there will be a lot of more general code, too, which will be used by other, similar boards, too. Don't put such stuff into a board directory, please. > The current U-Boot PCMCIA code I examined has been mostly put into > common/cmd_pcmcia.c and drivers/XXXXXXXX.c, which I personaly find confusing. What's wrong with that? > My suggestion is that we could have drivers/pcmcia/ for card services and Card services? I don't think we will ever support hot plug in U-Boot. > board/xxxxx/pcmcia.c for board dependent low level functions. If it's strictly board dependend functions, then OK. [It would be probably also a good idea to get rid of some of the #ifdef'ed sections in common/cmd_pcmcia.c and put them into board directories, too.] But please make sure that this is really code that will NOT be duplicated by other, similar boards. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Xerox never comes up with anything original.