public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] drivers/net/enc28j60.c - generalisation, how?
@ 2010-07-24  6:11 Reinhard Meyer
  2010-07-24 17:04 ` Wolfgang Denk
  2010-07-25 14:48 ` Mike Frysinger
  0 siblings, 2 replies; 21+ messages in thread
From: Reinhard Meyer @ 2010-07-24  6:11 UTC (permalink / raw)
  To: u-boot

Hello,

I would like to generalize that driver and make it also
CONFIG_NET_MULTI-able.

Currently it contains hard coded functionality for the LPC2292 Cpu
and is used by only two boards: lpc2292sodimm and SMN42.

Since the driver could be clearly generic, using just SPI and two I/O 
Pins for
/reset and /select (the latter could be considered part of SPI), it would
make sense to ban out any board specific code from it.

When I do that, clearly I cannot test the two above boards for continued
functionality.

Messing up the driver with #ifdefs to keep old code parallel
to new one does not look like a nice approach either.

How to proceed?

Reinhard

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2010-08-31  6:00 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-24  6:11 [U-Boot] drivers/net/enc28j60.c - generalisation, how? Reinhard Meyer
2010-07-24 17:04 ` Wolfgang Denk
2010-07-25  6:16   ` Reinhard Meyer
2010-07-25 14:48 ` Mike Frysinger
2010-07-25 20:06   ` Reinhard Meyer
2010-07-25 20:40     ` Mike Frysinger
2010-07-26 19:53       ` Mike Frysinger
2010-07-25 22:49     ` Ben Warren
2010-07-26  0:07       ` Reinhard Meyer
2010-07-26  3:11         ` Mike Frysinger
2010-07-26  6:00           ` Reinhard Meyer
2010-07-26 14:51             ` Ben Warren
2010-07-27  7:18               ` Martin Krause
2010-07-27  7:28                 ` Reinhard Meyer
2010-07-27  8:52                   ` Martin Krause
2010-08-06 14:06               ` [U-Boot] [PATCH] NET: move legacy enc28j60.c to sidetrack as enc28j60_lpc2292.c Reinhard Meyer
2010-08-06 16:31                 ` Ben Warren
2010-08-06 16:42                   ` [U-Boot] [PATCH v2] " Reinhard Meyer
2010-08-31  6:00                     ` Ben Warren
2010-08-06 21:09                   ` [U-Boot] [PATCH] " Mike Frysinger
2010-08-06 23:01                     ` Reinhard Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox