From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 23 Jul 2009 23:49:46 +0200 Subject: [U-Boot] [PATCH 2/2] document network driver framework In-Reply-To: <1247965449-23375-2-git-send-email-vapier@gentoo.org> References: <4A5F6524.7040909@gmail.com> <1247965449-23375-2-git-send-email-vapier@gentoo.org> Message-ID: <20090723214946.GE9480@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 21:04 Sat 18 Jul , Mike Frysinger wrote: > Signed-off-by: Mike Frysinger > --- > Ben: some things to note: > - i adopted Jean's proposed naming scheme in the CONFIG section > - i deprecated calling the driver-specific entry point > "xxx_initialization()" in favor of "xxx_register()" because the > former is way too confusing with everyone also having "xxx_init()" > > doc/README.drivers.eth | 199 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 199 insertions(+), 0 deletions(-) > create mode 100644 doc/README.drivers.eth > > diff --git a/doc/README.drivers.eth b/doc/README.drivers.eth > new file mode 100644 > index 0000000..00b4eb1 > --- /dev/null > +++ b/doc/README.drivers.eth > @@ -0,0 +1,199 @@ > +----------------------- > + Ethernet Driver Guide > +----------------------- > + > +The networking stack in Das U-Boot is designed for multiple network devices > +to be easily added and controlled at runtime. This guide is meant for people > +who wish to review the net driver stack with an eye towards implementing your > +own ethernet device driver. Here we will describe a new pseudo 'APE' driver. > + > +---------------- > + CONFIG Options > +---------------- > + > +The common config defines your device should respect (if applicable): > + CONFIG_MII - configure in MII mode > + CONFIG_RMII - configure in RMII mode how will you deal you on your board you have a MII and a RMII chip used I think need to be configure via drivers specifc CONFIG if your driver can not deal with 2 different instance config or via driver init param > + > + CONFIG_CMD_MII - support the MII command > + > +If you want to add config options specific to your driver, you should use the > +naming convention: > + CONFIG_NET__