[RFC PATCH 08/13] dwmac-meson8b: add support for phy selection

Andrew Lunn andrew at lunn.ch
Fri Oct 21 08:54:08 PDT 2016


On Fri, Oct 21, 2016 at 04:40:33PM +0200, Neil Armstrong wrote:
> The Meson GXL dwmac Glue Layer also provides switching between an external PHY
> and an internal RMII 10/100 PHY.
> Add a way to setup the correct PHY switching from a device tree attribute.

Humm, actually. Maybe PHY_IS_INTERNAL in the phydrv->flags is the
better solution. The MAC can then use phy_is_internal(ndev->phydev) to
decide if this register needs programming.

       Andrew



More information about the linux-amlogic mailing list