From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Tue, 22 Sep 2009 10:01:51 -0700 Subject: [U-Boot] [PATCH 0/3 v2] New MIIPHYBB implementation with multi-bus support In-Reply-To: <1253633264-4901-1-git-send-email-luigi.mantellini.ml@gmail.com> References: <1253633264-4901-1-git-send-email-luigi.mantellini.ml@gmail.com> Message-ID: <4AB902FF.5020802@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Luigi, I like what you're doing here. Thanks for working towards making the BB driver more universal. Luigi 'Comio' Mantellini wrote: > From: Luigi 'Comio' Mantellini > > This patch rewrites the miiphybb ( Bit-banged MII bus driver ) in order to > support an arbitrary number of buses. This feature is useful when your board > uses different mii buses for different phys and all (or a part) of these buses > are implemented via bit-banging mode. > > The driver requires that the following macros should be defined into the board > configuration file: > > CONFIG_BITBANGMII - Enable the miiphybb driver > CONFIG_BITBANGMII_MULTI - Enable the multi bus support > > If the CONFIG_BITBANGMII_MULTI is not defined, the board's config file needs to define > the following macros: > > My preference would be to only support the 'multi' mode. That way we can keep it smaller (source-wise, not binary-wise) and not use macros. I'll give a more thorough review shortly, but just thought I'd put this idea out there... regards, Ben