From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dieter Kiermaier Date: Wed, 1 Jul 2009 16:36:57 +0200 Subject: [U-Boot] OpenRD base/client support? In-Reply-To: <20090701161945.050d979a@marrow.netinsight.se> References: <20090701155741.7e46e423@marrow.netinsight.se> <200907011603.25306.dk-arm-linux@gmx.de> <20090701161945.050d979a@marrow.netinsight.se> Message-ID: <200907011636.57568.dk-arm-linux@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Mittwoch 01 Juli 2009 16:19:45 schrieb Simon Kagstrom: > On Wed, 1 Jul 2009 16:03:25 +0200 > Dieter Kiermaier wrote: > > > > It works "pretty well" with U-boot built for sheevaplug - my main > > > problem now is that it hangs on miiphy_reset. > > > > I can confirm that. Have the same behaviour but haven't time to investigate further. > > Maybe we can share information and coordinate some work? > > Sure. I've created a board support package for OpenRD base which is > still basically a copy of sheevaplug. I can submit it if Prafulla wants > to, but it's very preliminary still. > Simon, could you please post it on the list, or if this is uncommon send it per mail to me? Thanks in advance, Dieter > The problem with the phy_reset was simple though: The phy simply has a > different address than the one for sheevaplug. The patch below (against > my board package - not possible to apply!) fixes this. > > // Simon > > diff --git a/include/configs/openrd_base.h b/include/configs/openrd_base.h > index eb62554..996eacf 100644 > --- a/include/configs/openrd_base.h > +++ b/include/configs/openrd_base.h > @@ -187,8 +187,8 @@ > #define CONFIG_MII /* expose smi ove miiphy interface */ > #define CONFIG_KIRKWOOD_EGIGA /* Enable kirkwood Gbe Controller Driver */ > #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN /* detect link using phy */ > -#define CONFIG_KIRKWOOD_EGIGA_PORTS {1,0} /* enable port 0 only */ > -#define CONFIG_PHY_BASE_ADR 0 > +#define CONFIG_KIRKWOOD_EGIGA_PORTS {1,1} /* enable both ports */ > +#define CONFIG_PHY_BASE_ADR 0x8 > #define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */ > #define CONFIG_RESET_PHY_R /* use reset_phy() to init mv8831116 PHY */ > #endif /* CONFIG_CMD_NET */ >