1 Feb 2012 01:29
Re: [PATCH 2/4] net: fec_mxc: add PHYLIB support
Andy Fleming <afleming <at> gmail.com>
2012-02-01 00:29:59 GMT
2012-02-01 00:29:59 GMT
On Mon, Jan 30, 2012 at 8:13 PM, Troy Kisky
<troy.kisky <at> boundarydevices.com> wrote:
> On 1/29/2012 7:04 PM, Andy Fleming wrote:
>>
>> On Thu, Jan 26, 2012 at 4:21 PM, Troy Kisky
>> <troy.kisky <at> boundarydevices.com> wrote:
>>>
>>> Signed-off-by: Troy Kisky<troy.kisky <at> boundarydevices.com>
>>> ---
>>> drivers/net/fec_mxc.c | 35 ++++++++++++++++++++++++++++++-----
>>> drivers/net/fec_mxc.h | 1 +
>>> 2 files changed, 31 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
>>> index 3fffe79..4d7a38d 100644
>>> --- a/drivers/net/fec_mxc.c
>>> +++ b/drivers/net/fec_mxc.c
>>> <at> <at> -371,6 +371,20 <at> <at> static int fec_set_hwaddr(struct eth_device *dev)
>>> return 0;
>>> }
>>>
>>> +static void fec_eth_phy_config(struct eth_device *dev)
>>> +{
>>> +#ifdef CONFIG_PHYLIB
>>> + struct fec_priv *fec = (struct fec_priv *)dev->priv;
>>> + struct phy_device *phydev;
>>> +
>>> + phydev = phy_connect(miiphy_get_dev_by_name(dev->name),
>>> + fec->phy_id, dev, PHY_INTERFACE_MODE_RGMII);
>>> + fec->phydev = phydev;
(Continue reading)
I like this feature!
I tried something similar a few month ago for the da850evm and my own
board, it worked but I never had time to finished it and submit it, it was
just a hack.
For my tests I used the UART loader utility from TI to load the SPL and
then minicom for loading u-boot. Do you have an automated solution for
this? Would be nice to have something like this in tools/.
> Signed-off-by: Matt Porter <mporter <at> ti.com>
> Signed-off-by: Tom Rini <trini <at> ti.com>
> ---
> arch/arm/cpu/armv7/omap-common/Makefile | 3 +
> arch/arm/cpu/armv7/omap-common/spl.c | 5 ++
> arch/arm/cpu/armv7/omap-common/spl_ymodem.c | 76
+++++++++++++++++++++++++++
> arch/arm/include/asm/omap_common.h | 3 +
> common/Makefile | 3 +
> lib/Makefile | 3 +
> normally u-boot is bootstrapped from non-ram storage (via a bootrom, or
> some bit of code being latched in at a hardcoded address, or some other
> cpu-specific magic).
> -mike
RSS Feed