Re: [RESEND PATCH 2/4] arm: socfpga: Add platform initialization for ethernet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi!

> From: Dinh Nguyen <dinguyen@xxxxxxxxxx>
> 
> Use the PHYLIB to set the correct clock and skew values to the Micrel PHY. Add
> platform specific intilization to put the STMMAC ethernet controller into the
> correct PHY mode.
> 
...
>  arch/arm/mach-socfpga/core.h    |    8 ++++
>  arch/arm/mach-socfpga/socfpga.c |   85 ++++++++++++++++++++++++++++++++++++++-
>  2 files changed, 92 insertions(+), 1 deletion(-)

When I tried to apply it on today's mainline, I got:

  LD      init/built-in.o
arch/arm/mach-socfpga/socfpga.c: In function 'ksz9021rlrn_phy_fixup':
arch/arm/mach-socfpga/socfpga.c:85:21: error:
'MICREL_KSZ9021_EXTREG_CTRL' undeclared (first use in this function)
arch/arm/mach-socfpga/socfpga.c:85:21: note: each undeclared
identifier is reported only once for each function it appears in
arch/arm/mach-socfpga/socfpga.c:86:4: error:
'MICREL_KSZ9021_RGMII_RX_DATA_PAD_SCEW' undeclared (first use in this
function)
arch/arm/mach-socfpga/socfpga.c:87:21: error:
'MICREL_KSZ9021_EXTREG_DATA_WRITE' undeclared (first use in this
function)
arch/arm/mach-socfpga/socfpga.c:91:4: error:
'MICREL_KSZ9021_RGMII_CLK_CTRL_PAD_SCEW' undeclared (first use in this
function)
arch/arm/mach-socfpga/socfpga.c: In function 'socfpga_cyclone5_init':
arch/arm/mach-socfpga/socfpga.c:193:30: error: 'PHY_ID_KSZ9021RLRN'
undeclared (first use in this function)

I tried adding
git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git to my
branch, but that did not help.
 
It compiles ok when I apply

Date: Mon, 15 Jul 2013 18:08:50 -0500
From: dinguyen@xxxxxxxxxx
To: dinh.linux@xxxxxxxxx, netdev@xxxxxxxxxxxxxxx
Cc: Pavel Machek <pavel@xxxxxxx>, Nicolas Ferre
<nicolas.ferre@xxxxxxxxx>,
        "David S. Miller" <davem@xxxxxxxxxxxxx>,
        linux-arm-kernel@xxxxxxxxxxxxxxxxxxx,
        Shawn Guo <shawn.guo@xxxxxxxxxx>,
        Jean-Christophe Plagniol-Villard <plagnioj@xxxxxxxxxxxx>,
        Andrew Victor <linux@xxxxxxxxxxxx>,
        Dinh Nguyen <dinguyen@xxxxxxxxxx>
Subject: [PATCH] phy: micrel: Add definitions for common Micrel PHY
registers
X-Mailer: git-send-email 1.7.9.5

From: Dinh Nguyen <dinguyen@xxxxxxxxxx>

Add defines for common Micrel PHY setups so that other platforms
can use them. Update imx61 and sama5 hardware to use the micrel_phy.h
PHY defines.

Also add support for the KSZ9021RLRN PHY.

. Perhaps it should be added to the series (or at least pushed
again?).

Thanks,
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux