diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2012-07-11 11:23:43 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-12 23:27:18 +0400 |
commit | e1ac4b409037b128f9a3eca3b3ab5dbbb71a7e6f (patch) | |
tree | 33eb5d7bb0751f17f0968bdd29901df1807797fd /drivers/bcma/driver_gmac_cmn.c | |
parent | 97cfda8fecacc40c5652b0924c4c0f5ab508dc9a (diff) | |
download | linux-e1ac4b409037b128f9a3eca3b3ab5dbbb71a7e6f.tar.xz |
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.c | 14 |
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 000000000000..834225f65e8f --- /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); +} |