intel-xway.c (9b0dcd0e5a27958b57e3e390f63c098d63a055da) intel-xway.c (dcdecdcfe1fc39ded8590aed2fe84d62f14b2392)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2012 Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
4 * Copyright (C) 2016 Hauke Mehrtens <hauke@hauke-m.de>
5 */
6
7#include <linux/mdio.h>
8#include <linux/module.h>

--- 218 unchanged lines hidden (view full) ---

227 return phy_write(phydev, XWAY_MDIO_IMASK, mask);
228}
229
230static struct phy_driver xway_gphy[] = {
231 {
232 .phy_id = PHY_ID_PHY11G_1_3,
233 .phy_id_mask = 0xffffffff,
234 .name = "Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.3",
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2012 Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
4 * Copyright (C) 2016 Hauke Mehrtens <hauke@hauke-m.de>
5 */
6
7#include <linux/mdio.h>
8#include <linux/module.h>

--- 218 unchanged lines hidden (view full) ---

227 return phy_write(phydev, XWAY_MDIO_IMASK, mask);
228}
229
230static struct phy_driver xway_gphy[] = {
231 {
232 .phy_id = PHY_ID_PHY11G_1_3,
233 .phy_id_mask = 0xffffffff,
234 .name = "Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.3",
235 .features = PHY_GBIT_FEATURES,
235 /* PHY_GBIT_FEATURES */
236 .config_init = xway_gphy_config_init,
237 .config_aneg = xway_gphy14_config_aneg,
238 .ack_interrupt = xway_gphy_ack_interrupt,
239 .did_interrupt = xway_gphy_did_interrupt,
240 .config_intr = xway_gphy_config_intr,
241 .suspend = genphy_suspend,
242 .resume = genphy_resume,
243 }, {
244 .phy_id = PHY_ID_PHY22F_1_3,
245 .phy_id_mask = 0xffffffff,
246 .name = "Intel XWAY PHY22F (PEF 7061) v1.3",
236 .config_init = xway_gphy_config_init,
237 .config_aneg = xway_gphy14_config_aneg,
238 .ack_interrupt = xway_gphy_ack_interrupt,
239 .did_interrupt = xway_gphy_did_interrupt,
240 .config_intr = xway_gphy_config_intr,
241 .suspend = genphy_suspend,
242 .resume = genphy_resume,
243 }, {
244 .phy_id = PHY_ID_PHY22F_1_3,
245 .phy_id_mask = 0xffffffff,
246 .name = "Intel XWAY PHY22F (PEF 7061) v1.3",
247 .features = PHY_BASIC_FEATURES,
247 /* PHY_BASIC_FEATURES */
248 .config_init = xway_gphy_config_init,
249 .config_aneg = xway_gphy14_config_aneg,
250 .ack_interrupt = xway_gphy_ack_interrupt,
251 .did_interrupt = xway_gphy_did_interrupt,
252 .config_intr = xway_gphy_config_intr,
253 .suspend = genphy_suspend,
254 .resume = genphy_resume,
255 }, {
256 .phy_id = PHY_ID_PHY11G_1_4,
257 .phy_id_mask = 0xffffffff,
258 .name = "Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.4",
248 .config_init = xway_gphy_config_init,
249 .config_aneg = xway_gphy14_config_aneg,
250 .ack_interrupt = xway_gphy_ack_interrupt,
251 .did_interrupt = xway_gphy_did_interrupt,
252 .config_intr = xway_gphy_config_intr,
253 .suspend = genphy_suspend,
254 .resume = genphy_resume,
255 }, {
256 .phy_id = PHY_ID_PHY11G_1_4,
257 .phy_id_mask = 0xffffffff,
258 .name = "Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.4",
259 .features = PHY_GBIT_FEATURES,
259 /* PHY_GBIT_FEATURES */
260 .config_init = xway_gphy_config_init,
261 .config_aneg = xway_gphy14_config_aneg,
262 .ack_interrupt = xway_gphy_ack_interrupt,
263 .did_interrupt = xway_gphy_did_interrupt,
264 .config_intr = xway_gphy_config_intr,
265 .suspend = genphy_suspend,
266 .resume = genphy_resume,
267 }, {
268 .phy_id = PHY_ID_PHY22F_1_4,
269 .phy_id_mask = 0xffffffff,
270 .name = "Intel XWAY PHY22F (PEF 7061) v1.4",
260 .config_init = xway_gphy_config_init,
261 .config_aneg = xway_gphy14_config_aneg,
262 .ack_interrupt = xway_gphy_ack_interrupt,
263 .did_interrupt = xway_gphy_did_interrupt,
264 .config_intr = xway_gphy_config_intr,
265 .suspend = genphy_suspend,
266 .resume = genphy_resume,
267 }, {
268 .phy_id = PHY_ID_PHY22F_1_4,
269 .phy_id_mask = 0xffffffff,
270 .name = "Intel XWAY PHY22F (PEF 7061) v1.4",
271 .features = PHY_BASIC_FEATURES,
271 /* PHY_BASIC_FEATURES */
272 .config_init = xway_gphy_config_init,
273 .config_aneg = xway_gphy14_config_aneg,
274 .ack_interrupt = xway_gphy_ack_interrupt,
275 .did_interrupt = xway_gphy_did_interrupt,
276 .config_intr = xway_gphy_config_intr,
277 .suspend = genphy_suspend,
278 .resume = genphy_resume,
279 }, {
280 .phy_id = PHY_ID_PHY11G_1_5,
281 .phy_id_mask = 0xffffffff,
282 .name = "Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.5 / v1.6",
272 .config_init = xway_gphy_config_init,
273 .config_aneg = xway_gphy14_config_aneg,
274 .ack_interrupt = xway_gphy_ack_interrupt,
275 .did_interrupt = xway_gphy_did_interrupt,
276 .config_intr = xway_gphy_config_intr,
277 .suspend = genphy_suspend,
278 .resume = genphy_resume,
279 }, {
280 .phy_id = PHY_ID_PHY11G_1_5,
281 .phy_id_mask = 0xffffffff,
282 .name = "Intel XWAY PHY11G (PEF 7071/PEF 7072) v1.5 / v1.6",
283 .features = PHY_GBIT_FEATURES,
283 /* PHY_GBIT_FEATURES */
284 .config_init = xway_gphy_config_init,
285 .ack_interrupt = xway_gphy_ack_interrupt,
286 .did_interrupt = xway_gphy_did_interrupt,
287 .config_intr = xway_gphy_config_intr,
288 .suspend = genphy_suspend,
289 .resume = genphy_resume,
290 }, {
291 .phy_id = PHY_ID_PHY22F_1_5,
292 .phy_id_mask = 0xffffffff,
293 .name = "Intel XWAY PHY22F (PEF 7061) v1.5 / v1.6",
284 .config_init = xway_gphy_config_init,
285 .ack_interrupt = xway_gphy_ack_interrupt,
286 .did_interrupt = xway_gphy_did_interrupt,
287 .config_intr = xway_gphy_config_intr,
288 .suspend = genphy_suspend,
289 .resume = genphy_resume,
290 }, {
291 .phy_id = PHY_ID_PHY22F_1_5,
292 .phy_id_mask = 0xffffffff,
293 .name = "Intel XWAY PHY22F (PEF 7061) v1.5 / v1.6",
294 .features = PHY_BASIC_FEATURES,
294 /* PHY_BASIC_FEATURES */
295 .config_init = xway_gphy_config_init,
296 .ack_interrupt = xway_gphy_ack_interrupt,
297 .did_interrupt = xway_gphy_did_interrupt,
298 .config_intr = xway_gphy_config_intr,
299 .suspend = genphy_suspend,
300 .resume = genphy_resume,
301 }, {
302 .phy_id = PHY_ID_PHY11G_VR9_1_1,
303 .phy_id_mask = 0xffffffff,
304 .name = "Intel XWAY PHY11G (xRX v1.1 integrated)",
295 .config_init = xway_gphy_config_init,
296 .ack_interrupt = xway_gphy_ack_interrupt,
297 .did_interrupt = xway_gphy_did_interrupt,
298 .config_intr = xway_gphy_config_intr,
299 .suspend = genphy_suspend,
300 .resume = genphy_resume,
301 }, {
302 .phy_id = PHY_ID_PHY11G_VR9_1_1,
303 .phy_id_mask = 0xffffffff,
304 .name = "Intel XWAY PHY11G (xRX v1.1 integrated)",
305 .features = PHY_GBIT_FEATURES,
305 /* PHY_GBIT_FEATURES */
306 .config_init = xway_gphy_config_init,
307 .ack_interrupt = xway_gphy_ack_interrupt,
308 .did_interrupt = xway_gphy_did_interrupt,
309 .config_intr = xway_gphy_config_intr,
310 .suspend = genphy_suspend,
311 .resume = genphy_resume,
312 }, {
313 .phy_id = PHY_ID_PHY22F_VR9_1_1,
314 .phy_id_mask = 0xffffffff,
315 .name = "Intel XWAY PHY22F (xRX v1.1 integrated)",
306 .config_init = xway_gphy_config_init,
307 .ack_interrupt = xway_gphy_ack_interrupt,
308 .did_interrupt = xway_gphy_did_interrupt,
309 .config_intr = xway_gphy_config_intr,
310 .suspend = genphy_suspend,
311 .resume = genphy_resume,
312 }, {
313 .phy_id = PHY_ID_PHY22F_VR9_1_1,
314 .phy_id_mask = 0xffffffff,
315 .name = "Intel XWAY PHY22F (xRX v1.1 integrated)",
316 .features = PHY_BASIC_FEATURES,
316 /* PHY_BASIC_FEATURES */
317 .config_init = xway_gphy_config_init,
318 .ack_interrupt = xway_gphy_ack_interrupt,
319 .did_interrupt = xway_gphy_did_interrupt,
320 .config_intr = xway_gphy_config_intr,
321 .suspend = genphy_suspend,
322 .resume = genphy_resume,
323 }, {
324 .phy_id = PHY_ID_PHY11G_VR9_1_2,
325 .phy_id_mask = 0xffffffff,
326 .name = "Intel XWAY PHY11G (xRX v1.2 integrated)",
317 .config_init = xway_gphy_config_init,
318 .ack_interrupt = xway_gphy_ack_interrupt,
319 .did_interrupt = xway_gphy_did_interrupt,
320 .config_intr = xway_gphy_config_intr,
321 .suspend = genphy_suspend,
322 .resume = genphy_resume,
323 }, {
324 .phy_id = PHY_ID_PHY11G_VR9_1_2,
325 .phy_id_mask = 0xffffffff,
326 .name = "Intel XWAY PHY11G (xRX v1.2 integrated)",
327 .features = PHY_GBIT_FEATURES,
327 /* PHY_GBIT_FEATURES */
328 .config_init = xway_gphy_config_init,
329 .ack_interrupt = xway_gphy_ack_interrupt,
330 .did_interrupt = xway_gphy_did_interrupt,
331 .config_intr = xway_gphy_config_intr,
332 .suspend = genphy_suspend,
333 .resume = genphy_resume,
334 }, {
335 .phy_id = PHY_ID_PHY22F_VR9_1_2,
336 .phy_id_mask = 0xffffffff,
337 .name = "Intel XWAY PHY22F (xRX v1.2 integrated)",
328 .config_init = xway_gphy_config_init,
329 .ack_interrupt = xway_gphy_ack_interrupt,
330 .did_interrupt = xway_gphy_did_interrupt,
331 .config_intr = xway_gphy_config_intr,
332 .suspend = genphy_suspend,
333 .resume = genphy_resume,
334 }, {
335 .phy_id = PHY_ID_PHY22F_VR9_1_2,
336 .phy_id_mask = 0xffffffff,
337 .name = "Intel XWAY PHY22F (xRX v1.2 integrated)",
338 .features = PHY_BASIC_FEATURES,
338 /* PHY_BASIC_FEATURES */
339 .config_init = xway_gphy_config_init,
340 .ack_interrupt = xway_gphy_ack_interrupt,
341 .did_interrupt = xway_gphy_did_interrupt,
342 .config_intr = xway_gphy_config_intr,
343 .suspend = genphy_suspend,
344 .resume = genphy_resume,
345 },
346};

--- 19 unchanged lines hidden ---
339 .config_init = xway_gphy_config_init,
340 .ack_interrupt = xway_gphy_ack_interrupt,
341 .did_interrupt = xway_gphy_did_interrupt,
342 .config_intr = xway_gphy_config_intr,
343 .suspend = genphy_suspend,
344 .resume = genphy_resume,
345 },
346};

--- 19 unchanged lines hidden ---