net: qcom/emac: move phy init code to separate files
authorTimur Tabi <timur@codeaurora.org>
Thu, 8 Dec 2016 19:24:20 +0000 (13:24 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Dec 2016 03:11:02 +0000 (22:11 -0500)
commit1e88ab6fbbaacbd79dd14ab9ceec7a595611248d
tree2ea604d7ae61ee4b2afffe7adfbf08c2681d6992
parentf006b2c5dff35cb32ee77a0cbcabb52d90118c19
net: qcom/emac: move phy init code to separate files

The internal PHY of the EMAC differs on each SOC, and the list will
only continue to grow.  By separating the code into individual files,
we can add support for more SOCs more cleanly.

Note: The internal PHY is also sometimes called the SGMII device.

We also stop referring to the various PHY variations by version number,
so no more "v2", "v3", etc.  Instead, the devices are named after the
SOC they are, which is in sync with the device tree property names.

Future patches will probably rearrange more code among the files.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/Makefile
drivers/net/ethernet/qualcomm/emac/emac-sgmii-fsm9900.c [new file with mode: 0644]
drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2432.c [new file with mode: 0644]
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c
drivers/net/ethernet/qualcomm/emac/emac-sgmii.h