summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2012-08-29 10:08:03 +0200
committerDavid S. Miller <davem@davemloft.net>2012-08-30 19:29:32 +0200
commit761743ebc92df72053e736fce953a5d2e90099d5 (patch)
tree18ef089c177bc6a506187eca0e41961820bf5144
parentnet/fsl-pq-mdio: coalesce multiple memory allocations into one (diff)
downloadlinux-761743ebc92df72053e736fce953a5d2e90099d5.tar.xz
linux-761743ebc92df72053e736fce953a5d2e90099d5.zip
net/fsl_pq_mdio: add support for the Fman 1G MDIO controller
The MDIO controller on the Frame Manager (Fman) is compatible with the QE and Gianfar MDIO controllers, but we don't care about the TBI because the Ethernet drivers (FMD) take care of programming it. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/freescale/fsl_pq_mdio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fsl_pq_mdio.c b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
index ebd4638b4977..c93a05654b46 100644
--- a/drivers/net/ethernet/freescale/fsl_pq_mdio.c
+++ b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
@@ -342,6 +342,15 @@ static struct of_device_id fsl_pq_mdio_match[] = {
},
},
#endif
+ /* No Kconfig option for Fman support yet */
+ {
+ .compatible = "fsl,fman-mdio",
+ .data = &(struct fsl_pq_mdio_data) {
+ .mii_offset = 0,
+ /* Fman TBI operations are handled elsewhere */
+ },
+ },
+
{},
};
MODULE_DEVICE_TABLE(of, fsl_pq_mdio_match);