blob: efa31a655eb179b69c273bf01c787ed93ab163c9 [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
27#define MII_BCM7XX_64CLK_MDIO BIT(12)
28#define MII_BCM7XXX_CORE_BASE1E 0x1e
29#define MII_BCM7XXX_TEST 0x1f
30#define MII_BCM7XXX_SHD_MODE_2 BIT(2)
31
Florian Fainellia3622f22014-03-24 16:36:47 -070032/* 28nm only register definitions */
33#define MISC_ADDR(base, channel) base, channel
34
35#define DSP_TAP10 MISC_ADDR(0x0a, 0)
36#define PLL_PLLCTRL_1 MISC_ADDR(0x32, 1)
37#define PLL_PLLCTRL_2 MISC_ADDR(0x32, 2)
38#define PLL_PLLCTRL_4 MISC_ADDR(0x33, 0)
39
40#define AFE_RXCONFIG_0 MISC_ADDR(0x38, 0)
41#define AFE_RXCONFIG_1 MISC_ADDR(0x38, 1)
Florian Fainellia4906312014-11-11 14:55:13 -080042#define AFE_RXCONFIG_2 MISC_ADDR(0x38, 2)
Florian Fainellia3622f22014-03-24 16:36:47 -070043#define AFE_RX_LP_COUNTER MISC_ADDR(0x38, 3)
44#define AFE_TX_CONFIG MISC_ADDR(0x39, 0)
Florian Fainellia4906312014-11-11 14:55:13 -080045#define AFE_VDCA_ICTRL_0 MISC_ADDR(0x39, 1)
46#define AFE_VDAC_OTHERS_0 MISC_ADDR(0x39, 3)
Florian Fainellia3622f22014-03-24 16:36:47 -070047#define AFE_HPF_TRIM_OTHERS MISC_ADDR(0x3a, 0)
48
49#define CORE_EXPB0 0xb0
50
Florian Fainelli9c41f2b2014-11-11 14:55:12 -080051static void r_rc_cal_reset(struct phy_device *phydev)
52{
53 /* Reset R_CAL/RC_CAL Engine */
Arun Parameswarana1cba562015-10-06 12:25:48 -070054 bcm_phy_write_exp(phydev, 0x00b0, 0x0010);
Florian Fainelli9c41f2b2014-11-11 14:55:12 -080055
56 /* Disable Reset R_AL/RC_CAL Engine */
Arun Parameswarana1cba562015-10-06 12:25:48 -070057 bcm_phy_write_exp(phydev, 0x00b0, 0x0000);
Florian Fainelli9c41f2b2014-11-11 14:55:12 -080058}
59
Florian Fainelli2a9df742014-11-11 14:55:11 -080060static int bcm7xxx_28nm_b0_afe_config_init(struct phy_device *phydev)
Florian Fainellib560a582014-02-13 16:08:45 -080061{
Florian Fainellib560a582014-02-13 16:08:45 -080062 /* Increase VCO range to prevent unlocking problem of PLL at low
63 * temp
64 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070065 bcm_phy_write_misc(phydev, PLL_PLLCTRL_1, 0x0048);
Florian Fainellib560a582014-02-13 16:08:45 -080066
67 /* Change Ki to 011 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070068 bcm_phy_write_misc(phydev, PLL_PLLCTRL_2, 0x021b);
Florian Fainellib560a582014-02-13 16:08:45 -080069
70 /* Disable loading of TVCO buffer to bandgap, set bandgap trim
71 * to 111
72 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070073 bcm_phy_write_misc(phydev, PLL_PLLCTRL_4, 0x0e20);
Florian Fainellib560a582014-02-13 16:08:45 -080074
75 /* Adjust bias current trim by -3 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070076 bcm_phy_write_misc(phydev, DSP_TAP10, 0x690b);
Florian Fainellib560a582014-02-13 16:08:45 -080077
78 /* Switch to CORE_BASE1E */
79 phy_write(phydev, MII_BCM7XXX_CORE_BASE1E, 0xd);
80
Florian Fainelli9c41f2b2014-11-11 14:55:12 -080081 r_rc_cal_reset(phydev);
Florian Fainellib560a582014-02-13 16:08:45 -080082
Florian Fainelli99185422014-03-24 16:36:48 -070083 /* write AFE_RXCONFIG_0 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070084 bcm_phy_write_misc(phydev, AFE_RXCONFIG_0, 0xeb19);
Florian Fainelli99185422014-03-24 16:36:48 -070085
86 /* write AFE_RXCONFIG_1 */
Arun Parameswarana1cba562015-10-06 12:25:48 -070087 bcm_phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9a3f);
Florian Fainelli99185422014-03-24 16:36:48 -070088
89 /* write AFE_RX_LP_COUNTER */
Arun Parameswarana1cba562015-10-06 12:25:48 -070090 bcm_phy_write_misc(phydev, AFE_RX_LP_COUNTER, 0x7fc0);
Florian Fainelli99185422014-03-24 16:36:48 -070091
92 /* write AFE_HPF_TRIM_OTHERS */
Arun Parameswarana1cba562015-10-06 12:25:48 -070093 bcm_phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x000b);
Florian Fainelli99185422014-03-24 16:36:48 -070094
95 /* write AFTE_TX_CONFIG */
Arun Parameswarana1cba562015-10-06 12:25:48 -070096 bcm_phy_write_misc(phydev, AFE_TX_CONFIG, 0x0800);
Florian Fainelli99185422014-03-24 16:36:48 -070097
Florian Fainellib560a582014-02-13 16:08:45 -080098 return 0;
99}
100
Florian Fainellia4906312014-11-11 14:55:13 -0800101static int bcm7xxx_28nm_d0_afe_config_init(struct phy_device *phydev)
102{
103 /* AFE_RXCONFIG_0 */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700104 bcm_phy_write_misc(phydev, AFE_RXCONFIG_0, 0xeb15);
Florian Fainellia4906312014-11-11 14:55:13 -0800105
106 /* AFE_RXCONFIG_1 */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700107 bcm_phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9b2f);
Florian Fainellia4906312014-11-11 14:55:13 -0800108
109 /* AFE_RXCONFIG_2, set rCal offset for HT=0 code and LT=-2 code */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700110 bcm_phy_write_misc(phydev, AFE_RXCONFIG_2, 0x2003);
Florian Fainellia4906312014-11-11 14:55:13 -0800111
112 /* AFE_RX_LP_COUNTER, set RX bandwidth to maximum */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700113 bcm_phy_write_misc(phydev, AFE_RX_LP_COUNTER, 0x7fc0);
Florian Fainellia4906312014-11-11 14:55:13 -0800114
Florian Fainelli6da82532015-06-08 11:05:20 -0700115 /* AFE_TX_CONFIG, set 100BT Cfeed=011 to improve rise/fall time */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700116 bcm_phy_write_misc(phydev, AFE_TX_CONFIG, 0x431);
Florian Fainellia4906312014-11-11 14:55:13 -0800117
118 /* AFE_VDCA_ICTRL_0, set Iq=1101 instead of 0111 for AB symmetry */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700119 bcm_phy_write_misc(phydev, AFE_VDCA_ICTRL_0, 0xa7da);
Florian Fainellia4906312014-11-11 14:55:13 -0800120
121 /* AFE_VDAC_OTHERS_0, set 1000BT Cidac=010 for all ports */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700122 bcm_phy_write_misc(phydev, AFE_VDAC_OTHERS_0, 0xa020);
Florian Fainellia4906312014-11-11 14:55:13 -0800123
124 /* AFE_HPF_TRIM_OTHERS, set 100Tx/10BT to -4.5% swing and set rCal
125 * offset for HT=0 code
126 */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700127 bcm_phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x00e3);
Florian Fainellia4906312014-11-11 14:55:13 -0800128
129 /* CORE_BASE1E, force trim to overwrite and set I_ext trim to 0000 */
130 phy_write(phydev, MII_BCM7XXX_CORE_BASE1E, 0x0010);
131
132 /* DSP_TAP10, adjust bias current trim (+0% swing, +0 tick) */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700133 bcm_phy_write_misc(phydev, DSP_TAP10, 0x011b);
Florian Fainellia4906312014-11-11 14:55:13 -0800134
135 /* Reset R_CAL/RC_CAL engine */
136 r_rc_cal_reset(phydev);
137
138 return 0;
139}
140
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800141static int bcm7xxx_28nm_e0_plus_afe_config_init(struct phy_device *phydev)
142{
143 /* AFE_RXCONFIG_1, provide more margin for INL/DNL measurement */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700144 bcm_phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9b2f);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800145
Florian Fainelli6da82532015-06-08 11:05:20 -0700146 /* AFE_TX_CONFIG, set 100BT Cfeed=011 to improve rise/fall time */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700147 bcm_phy_write_misc(phydev, AFE_TX_CONFIG, 0x431);
Florian Fainelli6da82532015-06-08 11:05:20 -0700148
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800149 /* AFE_VDCA_ICTRL_0, set Iq=1101 instead of 0111 for AB symmetry */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700150 bcm_phy_write_misc(phydev, AFE_VDCA_ICTRL_0, 0xa7da);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800151
152 /* AFE_HPF_TRIM_OTHERS, set 100Tx/10BT to -4.5% swing and set rCal
153 * offset for HT=0 code
154 */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700155 bcm_phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x00e3);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800156
157 /* CORE_BASE1E, force trim to overwrite and set I_ext trim to 0000 */
158 phy_write(phydev, MII_BCM7XXX_CORE_BASE1E, 0x0010);
159
160 /* DSP_TAP10, adjust bias current trim (+0% swing, +0 tick) */
Arun Parameswarana1cba562015-10-06 12:25:48 -0700161 bcm_phy_write_misc(phydev, DSP_TAP10, 0x011b);
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800162
163 /* Reset R_CAL/RC_CAL engine */
164 r_rc_cal_reset(phydev);
165
166 return 0;
167}
168
Florian Fainellib560a582014-02-13 16:08:45 -0800169static int bcm7xxx_28nm_config_init(struct phy_device *phydev)
170{
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700171 u8 rev = PHY_BRCM_7XXX_REV(phydev->dev_flags);
172 u8 patch = PHY_BRCM_7XXX_PATCH(phydev->dev_flags);
173 int ret = 0;
Florian Fainellib560a582014-02-13 16:08:45 -0800174
Florian Fainelli6ec259c2014-11-11 14:55:10 -0800175 pr_info_once("%s: %s PHY revision: 0x%02x, patch: %d\n",
176 dev_name(&phydev->dev), phydev->drv->name, rev, patch);
Florian Fainellib560a582014-02-13 16:08:45 -0800177
Florian Fainelli8e346e12015-06-26 10:39:04 -0700178 /* Dummy read to a register to workaround an issue upon reset where the
179 * internal inverter may not allow the first MDIO transaction to pass
180 * the MDIO management controller and make us return 0xffff for such
181 * reads.
182 */
183 phy_read(phydev, MII_BMSR);
184
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700185 switch (rev) {
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700186 case 0xb0:
Florian Fainelli2a9df742014-11-11 14:55:11 -0800187 ret = bcm7xxx_28nm_b0_afe_config_init(phydev);
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700188 break;
Florian Fainellia4906312014-11-11 14:55:13 -0800189 case 0xd0:
190 ret = bcm7xxx_28nm_d0_afe_config_init(phydev);
191 break;
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800192 case 0xe0:
193 case 0xf0:
Florian Fainelli60efff02014-12-03 09:57:00 -0800194 /* Rev G0 introduces a roll over */
195 case 0x10:
Florian Fainelli0c2fdc22014-11-11 14:55:14 -0800196 ret = bcm7xxx_28nm_e0_plus_afe_config_init(phydev);
197 break;
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700198 default:
Florian Fainellid8ebfed2014-09-19 13:07:56 -0700199 break;
200 }
201
Florian Fainelli9df54dd2014-08-22 18:55:41 -0700202 if (ret)
203 return ret;
204
Arun Parameswarana1cba562015-10-06 12:25:48 -0700205 ret = bcm_phy_enable_eee(phydev);
Florian Fainellib8f9a022014-08-22 18:55:45 -0700206 if (ret)
207 return ret;
208
Arun Parameswarana1cba562015-10-06 12:25:48 -0700209 return bcm_phy_enable_apd(phydev, true);
Florian Fainellib560a582014-02-13 16:08:45 -0800210}
211
Florian Fainelli4fd14e02014-08-14 16:52:52 -0700212static int bcm7xxx_28nm_resume(struct phy_device *phydev)
213{
214 int ret;
215
216 /* Re-apply workarounds coming out suspend/resume */
217 ret = bcm7xxx_28nm_config_init(phydev);
218 if (ret)
219 return ret;
220
221 /* 28nm Gigabit PHYs come out of reset without any half-duplex
222 * or "hub" compliant advertised mode, fix that. This does not
223 * cause any problems with the PHY library since genphy_config_aneg()
224 * gracefully handles auto-negotiated and forced modes.
225 */
226 return genphy_config_aneg(phydev);
227}
228
Florian Fainellib560a582014-02-13 16:08:45 -0800229static int phy_set_clr_bits(struct phy_device *dev, int location,
230 int set_mask, int clr_mask)
231{
232 int v, ret;
233
234 v = phy_read(dev, location);
235 if (v < 0)
236 return v;
237
238 v &= ~clr_mask;
239 v |= set_mask;
240
241 ret = phy_write(dev, location, v);
242 if (ret < 0)
243 return ret;
244
245 return v;
246}
247
248static int bcm7xxx_config_init(struct phy_device *phydev)
249{
250 int ret;
251
252 /* Enable 64 clock MDIO */
253 phy_write(phydev, MII_BCM7XXX_AUX_MODE, MII_BCM7XX_64CLK_MDIO);
254 phy_read(phydev, MII_BCM7XXX_AUX_MODE);
255
Florian Fainellie18556e2014-09-19 13:07:51 -0700256 /* Workaround only required for 100Mbits/sec capable PHYs */
257 if (phydev->supported & PHY_GBIT_FEATURES)
Florian Fainellib560a582014-02-13 16:08:45 -0800258 return 0;
259
260 /* set shadow mode 2 */
261 ret = phy_set_clr_bits(phydev, MII_BCM7XXX_TEST,
262 MII_BCM7XXX_SHD_MODE_2, MII_BCM7XXX_SHD_MODE_2);
263 if (ret < 0)
264 return ret;
265
266 /* set iddq_clkbias */
267 phy_write(phydev, MII_BCM7XXX_100TX_DISC, 0x0F00);
268 udelay(10);
269
270 /* reset iddq_clkbias */
271 phy_write(phydev, MII_BCM7XXX_100TX_DISC, 0x0C00);
272
273 phy_write(phydev, MII_BCM7XXX_100TX_FALSE_CAR, 0x7555);
274
275 /* reset shadow mode 2 */
276 ret = phy_set_clr_bits(phydev, MII_BCM7XXX_TEST, MII_BCM7XXX_SHD_MODE_2, 0);
277 if (ret < 0)
278 return ret;
279
280 return 0;
281}
282
283/* Workaround for putting the PHY in IDDQ mode, required
Florian Fainelli82c084f2014-08-14 16:52:53 -0700284 * for all BCM7XXX 40nm and 65nm PHYs
Florian Fainellib560a582014-02-13 16:08:45 -0800285 */
286static int bcm7xxx_suspend(struct phy_device *phydev)
287{
288 int ret;
289 const struct bcm7xxx_regs {
290 int reg;
291 u16 value;
292 } bcm7xxx_suspend_cfg[] = {
293 { MII_BCM7XXX_TEST, 0x008b },
294 { MII_BCM7XXX_100TX_AUX_CTL, 0x01c0 },
295 { MII_BCM7XXX_100TX_DISC, 0x7000 },
296 { MII_BCM7XXX_TEST, 0x000f },
297 { MII_BCM7XXX_100TX_AUX_CTL, 0x20d0 },
298 { MII_BCM7XXX_TEST, 0x000b },
299 };
300 unsigned int i;
301
302 for (i = 0; i < ARRAY_SIZE(bcm7xxx_suspend_cfg); i++) {
303 ret = phy_write(phydev,
304 bcm7xxx_suspend_cfg[i].reg,
305 bcm7xxx_suspend_cfg[i].value);
306 if (ret)
307 return ret;
308 }
309
310 return 0;
311}
312
313static int bcm7xxx_dummy_config_init(struct phy_device *phydev)
314{
315 return 0;
316}
317
Florian Fainelli153df3c2014-08-26 13:15:24 -0700318#define BCM7XXX_28NM_GPHY(_oui, _name) \
319{ \
320 .phy_id = (_oui), \
321 .phy_id_mask = 0xfffffff0, \
322 .name = _name, \
323 .features = PHY_GBIT_FEATURES | \
324 SUPPORTED_Pause | SUPPORTED_Asym_Pause, \
325 .flags = PHY_IS_INTERNAL, \
Florian Fainelli2a9df742014-11-11 14:55:11 -0800326 .config_init = bcm7xxx_28nm_config_init, \
Florian Fainelli153df3c2014-08-26 13:15:24 -0700327 .config_aneg = genphy_config_aneg, \
328 .read_status = genphy_read_status, \
329 .resume = bcm7xxx_28nm_resume, \
330 .driver = { .owner = THIS_MODULE }, \
331}
332
Florian Fainellib560a582014-02-13 16:08:45 -0800333static struct phy_driver bcm7xxx_driver[] = {
Florian Fainelli430ad682014-08-26 13:15:27 -0700334 BCM7XXX_28NM_GPHY(PHY_ID_BCM7250, "Broadcom BCM7250"),
335 BCM7XXX_28NM_GPHY(PHY_ID_BCM7364, "Broadcom BCM7364"),
Florian Fainelli153df3c2014-08-26 13:15:24 -0700336 BCM7XXX_28NM_GPHY(PHY_ID_BCM7366, "Broadcom BCM7366"),
337 BCM7XXX_28NM_GPHY(PHY_ID_BCM7439, "Broadcom BCM7439"),
Florian Fainelli59e33c22015-03-09 15:44:13 -0700338 BCM7XXX_28NM_GPHY(PHY_ID_BCM7439_2, "Broadcom BCM7439 (2)"),
Florian Fainelli153df3c2014-08-26 13:15:24 -0700339 BCM7XXX_28NM_GPHY(PHY_ID_BCM7445, "Broadcom BCM7445"),
Florian Fainellib560a582014-02-13 16:08:45 -0800340{
Petri Gyntherd068b022014-10-01 11:58:02 -0700341 .phy_id = PHY_ID_BCM7425,
342 .phy_id_mask = 0xfffffff0,
343 .name = "Broadcom BCM7425",
344 .features = PHY_GBIT_FEATURES |
345 SUPPORTED_Pause | SUPPORTED_Asym_Pause,
Florian Fainellicc4a84c2015-05-22 14:07:30 -0700346 .flags = PHY_IS_INTERNAL,
Petri Gyntherd068b022014-10-01 11:58:02 -0700347 .config_init = bcm7xxx_config_init,
348 .config_aneg = genphy_config_aneg,
349 .read_status = genphy_read_status,
350 .suspend = bcm7xxx_suspend,
351 .resume = bcm7xxx_config_init,
352 .driver = { .owner = THIS_MODULE },
353}, {
354 .phy_id = PHY_ID_BCM7429,
355 .phy_id_mask = 0xfffffff0,
356 .name = "Broadcom BCM7429",
357 .features = PHY_GBIT_FEATURES |
358 SUPPORTED_Pause | SUPPORTED_Asym_Pause,
359 .flags = PHY_IS_INTERNAL,
360 .config_init = bcm7xxx_config_init,
361 .config_aneg = genphy_config_aneg,
362 .read_status = genphy_read_status,
363 .suspend = bcm7xxx_suspend,
364 .resume = bcm7xxx_config_init,
365 .driver = { .owner = THIS_MODULE },
366}, {
Florian Fainellib560a582014-02-13 16:08:45 -0800367 .phy_id = PHY_BCM_OUI_4,
368 .phy_id_mask = 0xffff0000,
369 .name = "Broadcom BCM7XXX 40nm",
370 .features = PHY_GBIT_FEATURES |
371 SUPPORTED_Pause | SUPPORTED_Asym_Pause,
372 .flags = PHY_IS_INTERNAL,
373 .config_init = bcm7xxx_config_init,
374 .config_aneg = genphy_config_aneg,
375 .read_status = genphy_read_status,
376 .suspend = bcm7xxx_suspend,
377 .resume = bcm7xxx_config_init,
378 .driver = { .owner = THIS_MODULE },
379}, {
380 .phy_id = PHY_BCM_OUI_5,
381 .phy_id_mask = 0xffffff00,
382 .name = "Broadcom BCM7XXX 65nm",
383 .features = PHY_BASIC_FEATURES |
384 SUPPORTED_Pause | SUPPORTED_Asym_Pause,
385 .flags = PHY_IS_INTERNAL,
386 .config_init = bcm7xxx_dummy_config_init,
387 .config_aneg = genphy_config_aneg,
388 .read_status = genphy_read_status,
389 .suspend = bcm7xxx_suspend,
390 .resume = bcm7xxx_config_init,
391 .driver = { .owner = THIS_MODULE },
392} };
393
394static struct mdio_device_id __maybe_unused bcm7xxx_tbl[] = {
Florian Fainelli430ad682014-08-26 13:15:27 -0700395 { PHY_ID_BCM7250, 0xfffffff0, },
396 { PHY_ID_BCM7364, 0xfffffff0, },
Florian Fainellib560a582014-02-13 16:08:45 -0800397 { PHY_ID_BCM7366, 0xfffffff0, },
Petri Gyntherd068b022014-10-01 11:58:02 -0700398 { PHY_ID_BCM7425, 0xfffffff0, },
399 { PHY_ID_BCM7429, 0xfffffff0, },
Florian Fainellib560a582014-02-13 16:08:45 -0800400 { PHY_ID_BCM7439, 0xfffffff0, },
401 { PHY_ID_BCM7445, 0xfffffff0, },
Florian Fainellib560a582014-02-13 16:08:45 -0800402 { PHY_BCM_OUI_4, 0xffff0000 },
403 { PHY_BCM_OUI_5, 0xffffff00 },
404 { }
405};
406
Johan Hovold50fd7152014-11-11 19:45:59 +0100407module_phy_driver(bcm7xxx_driver);
Florian Fainellib560a582014-02-13 16:08:45 -0800408
409MODULE_DEVICE_TABLE(mdio, bcm7xxx_tbl);
410
411MODULE_DESCRIPTION("Broadcom BCM7xxx internal PHY driver");
412MODULE_LICENSE("GPL");
413MODULE_AUTHOR("Broadcom Corporation");