blob: 9636da0b6efc449907025b52e5e9cefaa51df198 [file] [log] [blame]
Florian Fainellib560a582014-02-13 16:08:45 -08001/*
2 * Broadcom BCM7xxx internal transceivers support.
3 *
4 * Copyright (C) 2014, Broadcom Corporation
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
12#include <linux/module.h>
13#include <linux/phy.h>
14#include <linux/delay.h>
Arun Parameswarana1cba562015-10-06 12:25:48 -070015#include "bcm-phy-lib.h"
Florian Fainellib560a582014-02-13 16:08:45 -080016#include <linux/bitops.h>
17#include <linux/brcmphy.h>
Florian Fainellib8f9a022014-08-22 18:55:45 -070018#include <linux/mdio.h>
Florian Fainellib560a582014-02-13 16:08:45 -080019
20/* Broadcom BCM7xxx internal PHY registers */
Florian Fainellib560a582014-02-13 16:08:45 -080021
22/* 40nm only register definitions */
23#define MII_BCM7XXX_100TX_AUX_CTL 0x10
24#define MII_BCM7XXX_100TX_FALSE_CAR 0x13
25#define MII_BCM7XXX_100TX_DISC 0x14
26#define MII_BCM7XXX_AUX_MODE 0x1d
Florian Fainelli3ccc3052016-02-06 13:09:36 -080027#define MII_BCM7XXX_64CLK_MDIO BIT(12)
Florian Fainellib560a582014-02-13 16:08:45 -080028#define MII_BCM7XXX_TEST 0x1f
29#define MII_BCM7XXX_SHD_MODE_2 BIT(2)
30
Florian Fainellia3622f22014-03-24 16:36:47 -070031/* 28nm only register definitions */
32#define MISC_ADDR(base, channel) base, channel
33
34#define DSP_TAP10 MISC_ADDR(0x0a, 0)
35#define PLL_PLLCTRL_1 MISC_ADDR(0x32, 1)
36#define PLL_PLLCTRL_2 MISC_ADDR(0x32, 2)
37#define PLL_PLLCTRL_4 MISC_ADDR(0x33, 0)
38
39#define AFE_RXCONFIG_0 MISC_ADDR(0x38, 0)
40#define AFE_RXCONFIG_1 MISC_ADDR(0x38, 1)
Florian Fainellia4906312014-11-11 14:55:13 -080041#define AFE_RXCONFIG_2 MISC_ADDR(0x38, 2)
Florian Fainellia3622f22014-03-24 16:36:47 -070042#define AFE_RX_LP_COUNTER MISC_ADDR(0x38, 3)
43#define AFE_TX_CONFIG MISC_ADDR(0x39, 0)
Florian Fainellia4906312014-11-11 14:55:13 -080044#define AFE_VDCA_ICTRL_0 MISC_ADDR(0x39, 1)
45#define AFE_VDAC_OTHERS_0 MISC_ADDR(0x39, 3)
Florian Fainellia3622f22014-03-24 16:36:47 -070046#define AFE_HPF_TRIM_OTHERS MISC_ADDR(0x3a, 0)
47
Florian Fainelli9c41f2b2014-11-11 14:55:12 -080048static void r_rc_cal_reset(struct phy_device *phydev)
49{
50 /* Reset R_CAL/RC_CAL Engine */
Arun Parameswarana1cba562015-10-06 12:25:48 -070051 bcm_phy_write_exp(phydev, 0x00b0, 0x0010);
Florian Fainelli9c41f2b2014-11-11 14:55:12 -080052
53 /* Disable Reset R_AL/RC_CAL Engine */
Arun Parameswarana1cba562015-10-06 12:25:48 -070054 bcm_phy_write_exp(phydev, 0x00b0, 0x0000);
Florian Fainelli9c41f2b2014-11-11 14:55:12 -080055}
56
Florian Fainelli2a9df742014-11-11 14:55:11 -080057static int bcm7xxx_28nm_b0_afe_config_init(struct phy_device *phydev)
Florian Fainellib560a582014-02-13 16:08:45 -080058{
Florian Fainellib560a582014-02-13 16:08:45 -080059 /* Increase VCO range to prevent unlocking problem of PLL at low
60 * temp
61 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070062 bcm_phy_write_misc(phydev, PLL_PLLCTRL_1, 0x0048);
Florian Fainellib560a582014-02-13 16:08:45 -080063
64 /* Change Ki to 011 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070065 bcm_phy_write_misc(phydev, PLL_PLLCTRL_2, 0x021b);
Florian Fainellib560a582014-02-13 16:08:45 -080066
67 /* Disable loading of TVCO buffer to bandgap, set bandgap trim
68 * to 111
69 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070070 bcm_phy_write_misc(phydev, PLL_PLLCTRL_4, 0x0e20);
Florian Fainellib560a582014-02-13 16:08:45 -080071
72 /* Adjust bias current trim by -3 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070073 bcm_phy_write_misc(phydev, DSP_TAP10, 0x690b);
Florian Fainellib560a582014-02-13 16:08:45 -080074
75 /* Switch to CORE_BASE1E */
Arun Parameswaran9200c272015-10-06 12:25:50 -070076 phy_write(phydev, MII_BRCM_CORE_BASE1E, 0xd);
Florian Fainellib560a582014-02-13 16:08:45 -080077
Florian Fainelli9c41f2b2014-11-11 14:55:12 -080078 r_rc_cal_reset(phydev);
Florian Fainellib560a582014-02-13 16:08:45 -080079
Florian Fainelli99185422014-03-24 16:36:48 -070080 /* write AFE_RXCONFIG_0 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070081 bcm_phy_write_misc(phydev, AFE_RXCONFIG_0, 0xeb19);
Florian Fainelli99185422014-03-24 16:36:48 -070082
83 /* write AFE_RXCONFIG_1 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070084 bcm_phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9a3f);
Florian Fainelli99185422014-03-24 16:36:48 -070085
86 /* write AFE_RX_LP_COUNTER */
Arun Parameswarana1cba562015-10-06 12:25:48 -070087 bcm_phy_write_misc(phydev, AFE_RX_LP_COUNTER, 0x7fc0);
Florian Fainelli99185422014-03-24 16:36:48 -070088
89 /* write AFE_HPF_TRIM_OTHERS */
Arun Parameswarana1cba562015-10-06 12:25:48 -070090 bcm_phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x000b);
Florian Fainelli99185422014-03-24 16:36:48 -070091
92 /* write AFTE_TX_CONFIG */
Arun Parameswarana1cba562015-10-06 12:25:48 -070093 bcm_phy_write_misc(phydev, AFE_TX_CONFIG, 0x0800);
Florian Fainelli99185422014-03-24 16:36:48 -070094
Florian Fainellib560a582014-02-13 16:08:45 -080095 return 0;
96}
97
Florian Fainellia4906312014-11-11 14:55:13 -080098static int bcm7xxx_28nm_d0_afe_config_init(struct phy_device *phydev)
99{
100 /* AFE_RXCONFIG_0 */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700101 bcm_phy_write_misc(phydev, AFE_RXCONFIG_0, 0xeb15);
Florian Fainellia4906312014-11-11 14:55:13 -0800102
103 /* AFE_RXCONFIG_1 */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700104 bcm_phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9b2f);
Florian Fainellia4906312014-11-11 14:55:13 -0800105
106 /* AFE_RXCONFIG_2, set rCal offset for HT=0 code and LT=-2 code */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700107 bcm_phy_write_misc(phydev, AFE_RXCONFIG_2, 0x2003);
Florian Fainellia4906312014-11-11 14:55:13 -0800108
109 /* AFE_RX_LP_COUNTER, set RX bandwidth to maximum */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700110 bcm_phy_write_misc(phydev, AFE_RX_LP_COUNTER, 0x7fc0);
Florian Fainellia4906312014-11-11 14:55:13 -0800111
Florian Fainelli6da82532015-06-08 11:05:20 -0700112 /* AFE_TX_CONFIG, set 100BT Cfeed=011 to improve rise/fall time */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700113 bcm_phy_write_misc(phydev, AFE_TX_CONFIG, 0x431);
Florian Fainellia4906312014-11-11 14:55:13 -0800114
115 /* AFE_VDCA_ICTRL_0, set Iq=1101 instead of 0111 for AB symmetry */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700116 bcm_phy_write_misc(phydev, AFE_VDCA_ICTRL_0, 0xa7da);
Florian Fainellia4906312014-11-11 14:55:13 -0800117
118 /* AFE_VDAC_OTHERS_0, set 1000BT Cidac=010 for all ports */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700119 bcm_phy_write_misc(phydev, AFE_VDAC_OTHERS_0, 0xa020);
Florian Fainellia4906312014-11-11 14:55:13 -0800120
121 /* AFE_HPF_TRIM_OTHERS, set 100Tx/10BT to -4.5% swing and set rCal
122 * offset for HT=0 code
123 */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700124 bcm_phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x00e3);
Florian Fainellia4906312014-11-11 14:55:13 -0800125
126 /* CORE_BASE1E, force trim to overwrite and set I_ext trim to 0000 */
Arun Parameswaran9200c272015-10-06 12:25:50 -0700127 phy_write(phydev, MII_BRCM_CORE_BASE1E, 0x0010);
Florian Fainellia4906312014-11-11 14:55:13 -0800128
129 /* DSP_TAP10, adjust bias current trim (+0% swing, +0 tick) */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700130 bcm_phy_write_misc(phydev, DSP_TAP10, 0x011b);
Florian Fainellia4906312014-11-11 14:55:13 -0800131
132 /* Reset R_CAL/RC_CAL engine */
133 r_rc_cal_reset(phydev);
134
135 return 0;
136}
137
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800138static int bcm7xxx_28nm_e0_plus_afe_config_init(struct phy_device *phydev)
139{
140 /* AFE_RXCONFIG_1, provide more margin for INL/DNL measurement */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700141 bcm_phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9b2f);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800142
Florian Fainelli6da82532015-06-08 11:05:20 -0700143 /* AFE_TX_CONFIG, set 100BT Cfeed=011 to improve rise/fall time */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700144 bcm_phy_write_misc(phydev, AFE_TX_CONFIG, 0x431);
Florian Fainelli6da82532015-06-08 11:05:20 -0700145
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800146 /* AFE_VDCA_ICTRL_0, set Iq=1101 instead of 0111 for AB symmetry */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700147 bcm_phy_write_misc(phydev, AFE_VDCA_ICTRL_0, 0xa7da);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800148
149 /* AFE_HPF_TRIM_OTHERS, set 100Tx/10BT to -4.5% swing and set rCal
150 * offset for HT=0 code
151 */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700152 bcm_phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x00e3);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800153
154 /* CORE_BASE1E, force trim to overwrite and set I_ext trim to 0000 */
Arun Parameswaran9200c272015-10-06 12:25:50 -0700155 phy_write(phydev, MII_BRCM_CORE_BASE1E, 0x0010);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800156
157 /* DSP_TAP10, adjust bias current trim (+0% swing, +0 tick) */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700158 bcm_phy_write_misc(phydev, DSP_TAP10, 0x011b);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800159
160 /* Reset R_CAL/RC_CAL engine */
161 r_rc_cal_reset(phydev);
162
163 return 0;
164}
165
Florian Fainellib560a582014-02-13 16:08:45 -0800166static int bcm7xxx_28nm_config_init(struct phy_device *phydev)
167{
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700168 u8 rev = PHY_BRCM_7XXX_REV(phydev->dev_flags);
169 u8 patch = PHY_BRCM_7XXX_PATCH(phydev->dev_flags);
170 int ret = 0;
Florian Fainellib560a582014-02-13 16:08:45 -0800171
Florian Fainelli6ec259c2014-11-11 14:55:10 -0800172 pr_info_once("%s: %s PHY revision: 0x%02x, patch: %d\n",
Andrew Lunn84eff6d2016-01-06 20:11:10 +0100173 phydev_name(phydev), phydev->drv->name, rev, patch);
Florian Fainellib560a582014-02-13 16:08:45 -0800174
Florian Fainelli8e346e12015-06-26 10:39:04 -0700175 /* Dummy read to a register to workaround an issue upon reset where the
176 * internal inverter may not allow the first MDIO transaction to pass
177 * the MDIO management controller and make us return 0xffff for such
178 * reads.
179 */
180 phy_read(phydev, MII_BMSR);
181
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700182 switch (rev) {
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700183 case 0xb0:
Florian Fainelli2a9df742014-11-11 14:55:11 -0800184 ret = bcm7xxx_28nm_b0_afe_config_init(phydev);
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700185 break;
Florian Fainellia4906312014-11-11 14:55:13 -0800186 case 0xd0:
187 ret = bcm7xxx_28nm_d0_afe_config_init(phydev);
188 break;
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800189 case 0xe0:
190 case 0xf0:
Florian Fainelli60efff02014-12-03 09:57:00 -0800191 /* Rev G0 introduces a roll over */
192 case 0x10:
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800193 ret = bcm7xxx_28nm_e0_plus_afe_config_init(phydev);
194 break;
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700195 default:
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700196 break;
197 }
198
Florian Fainelli9df54dd2014-08-22 18:55:41 -0700199 if (ret)
200 return ret;
201
Arun Parameswarana1cba562015-10-06 12:25:48 -0700202 ret = bcm_phy_enable_eee(phydev);
Florian Fainellib8f9a022014-08-22 18:55:45 -0700203 if (ret)
204 return ret;
205
Arun Parameswarana1cba562015-10-06 12:25:48 -0700206 return bcm_phy_enable_apd(phydev, true);
Florian Fainellib560a582014-02-13 16:08:45 -0800207}
208
Florian Fainelli4fd14e02014-08-14 16:52:52 -0700209static int bcm7xxx_28nm_resume(struct phy_device *phydev)
210{
211 int ret;
212
213 /* Re-apply workarounds coming out suspend/resume */
214 ret = bcm7xxx_28nm_config_init(phydev);
215 if (ret)
216 return ret;
217
218 /* 28nm Gigabit PHYs come out of reset without any half-duplex
219 * or "hub" compliant advertised mode, fix that. This does not
220 * cause any problems with the PHY library since genphy_config_aneg()
221 * gracefully handles auto-negotiated and forced modes.
222 */
223 return genphy_config_aneg(phydev);
224}
225
Florian Fainellib560a582014-02-13 16:08:45 -0800226static int phy_set_clr_bits(struct phy_device *dev, int location,
227 int set_mask, int clr_mask)
228{
229 int v, ret;
230
231 v = phy_read(dev, location);
232 if (v < 0)
233 return v;
234
235 v &= ~clr_mask;
236 v |= set_mask;
237
238 ret = phy_write(dev, location, v);
239 if (ret < 0)
240 return ret;
241
242 return v;
243}
244
245static int bcm7xxx_config_init(struct phy_device *phydev)
246{
247 int ret;
248
249 /* Enable 64 clock MDIO */
Florian Fainelli3ccc3052016-02-06 13:09:36 -0800250 phy_write(phydev, MII_BCM7XXX_AUX_MODE, MII_BCM7XXX_64CLK_MDIO);
Florian Fainellib560a582014-02-13 16:08:45 -0800251 phy_read(phydev, MII_BCM7XXX_AUX_MODE);
252
Florian Fainellib560a582014-02-13 16:08:45 -0800253 /* set shadow mode 2 */
254 ret = phy_set_clr_bits(phydev, MII_BCM7XXX_TEST,
255 MII_BCM7XXX_SHD_MODE_2, MII_BCM7XXX_SHD_MODE_2);
256 if (ret < 0)
257 return ret;
258
259 /* set iddq_clkbias */
260 phy_write(phydev, MII_BCM7XXX_100TX_DISC, 0x0F00);
261 udelay(10);
262
263 /* reset iddq_clkbias */
264 phy_write(phydev, MII_BCM7XXX_100TX_DISC, 0x0C00);
265
266 phy_write(phydev, MII_BCM7XXX_100TX_FALSE_CAR, 0x7555);
267
268 /* reset shadow mode 2 */
Florian Fainelli50d89982016-02-06 12:58:48 -0800269 ret = phy_set_clr_bits(phydev, MII_BCM7XXX_TEST, 0, MII_BCM7XXX_SHD_MODE_2);
Florian Fainellib560a582014-02-13 16:08:45 -0800270 if (ret < 0)
271 return ret;
272
273 return 0;
274}
275
276/* Workaround for putting the PHY in IDDQ mode, required
Florian Fainelli82c084f2014-08-14 16:52:53 -0700277 * for all BCM7XXX 40nm and 65nm PHYs
Florian Fainellib560a582014-02-13 16:08:45 -0800278 */
279static int bcm7xxx_suspend(struct phy_device *phydev)
280{
281 int ret;
282 const struct bcm7xxx_regs {
283 int reg;
284 u16 value;
285 } bcm7xxx_suspend_cfg[] = {
286 { MII_BCM7XXX_TEST, 0x008b },
287 { MII_BCM7XXX_100TX_AUX_CTL, 0x01c0 },
288 { MII_BCM7XXX_100TX_DISC, 0x7000 },
289 { MII_BCM7XXX_TEST, 0x000f },
290 { MII_BCM7XXX_100TX_AUX_CTL, 0x20d0 },
291 { MII_BCM7XXX_TEST, 0x000b },
292 };
293 unsigned int i;
294
295 for (i = 0; i < ARRAY_SIZE(bcm7xxx_suspend_cfg); i++) {
296 ret = phy_write(phydev,
297 bcm7xxx_suspend_cfg[i].reg,
298 bcm7xxx_suspend_cfg[i].value);
299 if (ret)
300 return ret;
301 }
302
303 return 0;
304}
305
Florian Fainelli153df3c2014-08-26 13:15:24 -0700306#define BCM7XXX_28NM_GPHY(_oui, _name) \
307{ \
308 .phy_id = (_oui), \
309 .phy_id_mask = 0xfffffff0, \
310 .name = _name, \
311 .features = PHY_GBIT_FEATURES | \
312 SUPPORTED_Pause | SUPPORTED_Asym_Pause, \
313 .flags = PHY_IS_INTERNAL, \
Florian Fainelli2a9df742014-11-11 14:55:11 -0800314 .config_init = bcm7xxx_28nm_config_init, \
Florian Fainelli153df3c2014-08-26 13:15:24 -0700315 .config_aneg = genphy_config_aneg, \
316 .read_status = genphy_read_status, \
317 .resume = bcm7xxx_28nm_resume, \
Florian Fainelli153df3c2014-08-26 13:15:24 -0700318}
319
Florian Fainelli3125c082016-02-06 13:09:37 -0800320#define BCM7XXX_40NM_EPHY(_oui, _name) \
321{ \
322 .phy_id = (_oui), \
323 .phy_id_mask = 0xfffffff0, \
324 .name = _name, \
325 .features = PHY_BASIC_FEATURES | \
326 SUPPORTED_Pause | SUPPORTED_Asym_Pause, \
327 .flags = PHY_IS_INTERNAL, \
328 .config_init = bcm7xxx_config_init, \
329 .config_aneg = genphy_config_aneg, \
330 .read_status = genphy_read_status, \
331 .suspend = bcm7xxx_suspend, \
332 .resume = bcm7xxx_config_init, \
333}
334
Florian Fainellib560a582014-02-13 16:08:45 -0800335static struct phy_driver bcm7xxx_driver[] = {
Florian Fainelli430ad682014-08-26 13:15:27 -0700336 BCM7XXX_28NM_GPHY(PHY_ID_BCM7250, "Broadcom BCM7250"),
337 BCM7XXX_28NM_GPHY(PHY_ID_BCM7364, "Broadcom BCM7364"),
Florian Fainelli153df3c2014-08-26 13:15:24 -0700338 BCM7XXX_28NM_GPHY(PHY_ID_BCM7366, "Broadcom BCM7366"),
339 BCM7XXX_28NM_GPHY(PHY_ID_BCM7439, "Broadcom BCM7439"),
Florian Fainelli59e33c22015-03-09 15:44:13 -0700340 BCM7XXX_28NM_GPHY(PHY_ID_BCM7439_2, "Broadcom BCM7439 (2)"),
Florian Fainelli153df3c2014-08-26 13:15:24 -0700341 BCM7XXX_28NM_GPHY(PHY_ID_BCM7445, "Broadcom BCM7445"),
Jaedon Shin4cef1912016-03-25 12:46:54 +0900342 BCM7XXX_40NM_EPHY(PHY_ID_BCM7346, "Broadcom BCM7346"),
343 BCM7XXX_40NM_EPHY(PHY_ID_BCM7362, "Broadcom BCM7362"),
Florian Fainelli3125c082016-02-06 13:09:37 -0800344 BCM7XXX_40NM_EPHY(PHY_ID_BCM7425, "Broadcom BCM7425"),
345 BCM7XXX_40NM_EPHY(PHY_ID_BCM7429, "Broadcom BCM7429"),
346 BCM7XXX_40NM_EPHY(PHY_ID_BCM7435, "Broadcom BCM7435"),
David S. Millerb6333532016-02-23 00:09:14 -0500347};
Florian Fainellib560a582014-02-13 16:08:45 -0800348
349static struct mdio_device_id __maybe_unused bcm7xxx_tbl[] = {
Florian Fainelli430ad682014-08-26 13:15:27 -0700350 { PHY_ID_BCM7250, 0xfffffff0, },
351 { PHY_ID_BCM7364, 0xfffffff0, },
Florian Fainellib560a582014-02-13 16:08:45 -0800352 { PHY_ID_BCM7366, 0xfffffff0, },
Jaedon Shin4cef1912016-03-25 12:46:54 +0900353 { PHY_ID_BCM7346, 0xfffffff0, },
354 { PHY_ID_BCM7362, 0xfffffff0, },
Petri Gyntherd068b022014-10-01 11:58:02 -0700355 { PHY_ID_BCM7425, 0xfffffff0, },
356 { PHY_ID_BCM7429, 0xfffffff0, },
Florian Fainellib560a582014-02-13 16:08:45 -0800357 { PHY_ID_BCM7439, 0xfffffff0, },
Florian Fainelli9458cea2015-11-24 15:30:21 -0800358 { PHY_ID_BCM7435, 0xfffffff0, },
Florian Fainellib560a582014-02-13 16:08:45 -0800359 { PHY_ID_BCM7445, 0xfffffff0, },
Florian Fainellib560a582014-02-13 16:08:45 -0800360 { }
361};
362
Johan Hovold50fd7152014-11-11 19:45:59 +0100363module_phy_driver(bcm7xxx_driver);
Florian Fainellib560a582014-02-13 16:08:45 -0800364
365MODULE_DEVICE_TABLE(mdio, bcm7xxx_tbl);
366
367MODULE_DESCRIPTION("Broadcom BCM7xxx internal PHY driver");
368MODULE_LICENSE("GPL");
369MODULE_AUTHOR("Broadcom Corporation");