summaryrefslogtreecommitdiffstats
path: root/drivers/bcma/driver_gmac_cmn.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2012-07-11 09:23:43 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-07-12 15:27:18 -0400
commite1ac4b409037b128f9a3eca3b3ab5dbbb71a7e6f (patch)
tree33eb5d7bb0751f17f0968bdd29901df1807797fd /drivers/bcma/driver_gmac_cmn.c
parent97cfda8fecacc40c5652b0924c4c0f5ab508dc9a (diff)
downloadop-kernel-dev-e1ac4b409037b128f9a3eca3b3ab5dbbb71a7e6f.zip
op-kernel-dev-e1ac4b409037b128f9a3eca3b3ab5dbbb71a7e6f.tar.gz
bcma: add trivial GBIT MAC COMMON driver
GMAC COMMON core is present on BCM4706 and is used for example to access board PHYs (PHYs can not be accessed directly using GBIT MAC core). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/driver_gmac_cmn.c')
-rw-r--r--drivers/bcma/driver_gmac_cmn.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/bcma/driver_gmac_cmn.c b/drivers/bcma/driver_gmac_cmn.c
new file mode 100644
index 0000000..834225f
--- /dev/null
+++ b/drivers/bcma/driver_gmac_cmn.c
@@ -0,0 +1,14 @@
+/*
+ * Broadcom specific AMBA
+ * GBIT MAC COMMON Core
+ *
+ * Licensed under the GNU/GPL. See COPYING for details.
+ */
+
+#include "bcma_private.h"
+#include <linux/bcma/bcma.h>
+
+void __devinit bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc)
+{
+ mutex_init(&gc->phy_mutex);
+}
OpenPOWER on IntegriCloud