]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/net/dsa/mv88e6352.c
net: dsa: mv88e6123_61_65: Determine and use number of switch ports
[mirror_ubuntu-artful-kernel.git] / drivers / net / dsa / mv88e6352.c
CommitLineData
3ad50cca
GR
1/*
2 * net/dsa/mv88e6352.c - Marvell 88e6352 switch chip support
3 *
4 * Copyright (c) 2014 Guenter Roeck
5 *
6 * Derived from mv88e6123_61_65.c
7 * Copyright (c) 2008-2009 Marvell Semiconductor
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 */
14
15#include <linux/delay.h>
16#include <linux/jiffies.h>
17#include <linux/list.h>
18#include <linux/module.h>
19#include <linux/netdevice.h>
20#include <linux/platform_device.h>
21#include <linux/phy.h>
22#include <net/dsa.h>
23#include "mv88e6xxx.h"
24
3ad50cca
GR
25static char *mv88e6352_probe(struct device *host_dev, int sw_addr)
26{
27 struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev);
28 int ret;
29
30 if (bus == NULL)
31 return NULL;
32
33 ret = __mv88e6xxx_reg_read(bus, sw_addr, REG_PORT(0), 0x03);
34 if (ret >= 0) {
2716777b
GR
35 if ((ret & 0xfff0) == 0x1760)
36 return "Marvell 88E6176";
3ad50cca
GR
37 if (ret == 0x3521)
38 return "Marvell 88E6352 (A0)";
39 if (ret == 0x3522)
40 return "Marvell 88E6352 (A1)";
41 if ((ret & 0xfff0) == 0x3520)
42 return "Marvell 88E6352";
43 }
44
45 return NULL;
46}
47
48static int mv88e6352_switch_reset(struct dsa_switch *ds)
49{
50 unsigned long timeout;
51 int ret;
52 int i;
53
54 /* Set all ports to the disabled state. */
55 for (i = 0; i < 7; i++) {
56 ret = REG_READ(REG_PORT(i), 0x04);
57 REG_WRITE(REG_PORT(i), 0x04, ret & 0xfffc);
58 }
59
60 /* Wait for transmit queues to drain. */
61 usleep_range(2000, 4000);
62
63 /* Reset the switch. Keep PPU active (bit 14, undocumented).
64 * The PPU needs to be active to support indirect phy register
65 * accesses through global registers 0x18 and 0x19.
66 */
67 REG_WRITE(REG_GLOBAL, 0x04, 0xc000);
68
69 /* Wait up to one second for reset to complete. */
70 timeout = jiffies + 1 * HZ;
71 while (time_before(jiffies, timeout)) {
72 ret = REG_READ(REG_GLOBAL, 0x00);
73 if ((ret & 0x8800) == 0x8800)
74 break;
75 usleep_range(1000, 2000);
76 }
77 if (time_after(jiffies, timeout))
78 return -ETIMEDOUT;
79
80 return 0;
81}
82
83static int mv88e6352_setup_global(struct dsa_switch *ds)
84{
85 int ret;
86 int i;
87
88 /* Discard packets with excessive collisions,
89 * mask all interrupt sources, enable PPU (bit 14, undocumented).
90 */
91 REG_WRITE(REG_GLOBAL, 0x04, 0x6000);
92
93 /* Set the default address aging time to 5 minutes, and
94 * enable address learn messages to be sent to all message
95 * ports.
96 */
97 REG_WRITE(REG_GLOBAL, 0x0a, 0x0148);
98
99 /* Configure the priority mapping registers. */
100 ret = mv88e6xxx_config_prio(ds);
101 if (ret < 0)
102 return ret;
103
104 /* Configure the upstream port, and configure the upstream
105 * port as the port to which ingress and egress monitor frames
106 * are to be sent.
107 */
108 REG_WRITE(REG_GLOBAL, 0x1a, (dsa_upstream_port(ds) * 0x1110));
109
110 /* Disable remote management for now, and set the switch's
111 * DSA device number.
112 */
113 REG_WRITE(REG_GLOBAL, 0x1c, ds->index & 0x1f);
114
115 /* Send all frames with destination addresses matching
116 * 01:80:c2:00:00:2x to the CPU port.
117 */
118 REG_WRITE(REG_GLOBAL2, 0x02, 0xffff);
119
120 /* Send all frames with destination addresses matching
121 * 01:80:c2:00:00:0x to the CPU port.
122 */
123 REG_WRITE(REG_GLOBAL2, 0x03, 0xffff);
124
125 /* Disable the loopback filter, disable flow control
126 * messages, disable flood broadcast override, disable
127 * removing of provider tags, disable ATU age violation
128 * interrupts, disable tag flow control, force flow
129 * control priority to the highest, and send all special
130 * multicast frames to the CPU at the highest priority.
131 */
132 REG_WRITE(REG_GLOBAL2, 0x05, 0x00ff);
133
134 /* Program the DSA routing table. */
135 for (i = 0; i < 32; i++) {
136 int nexthop = 0x1f;
137
138 if (i != ds->index && i < ds->dst->pd->nr_chips)
139 nexthop = ds->pd->rtable[i] & 0x1f;
140
141 REG_WRITE(REG_GLOBAL2, 0x06, 0x8000 | (i << 8) | nexthop);
142 }
143
144 /* Clear all trunk masks. */
145 for (i = 0; i < 8; i++)
146 REG_WRITE(REG_GLOBAL2, 0x07, 0x8000 | (i << 12) | 0x7f);
147
148 /* Clear all trunk mappings. */
149 for (i = 0; i < 16; i++)
150 REG_WRITE(REG_GLOBAL2, 0x08, 0x8000 | (i << 11));
151
152 /* Disable ingress rate limiting by resetting all ingress
153 * rate limit registers to their initial state.
154 */
155 for (i = 0; i < 7; i++)
156 REG_WRITE(REG_GLOBAL2, 0x09, 0x9000 | (i << 8));
157
158 /* Initialise cross-chip port VLAN table to reset defaults. */
159 REG_WRITE(REG_GLOBAL2, 0x0b, 0x9000);
160
161 /* Clear the priority override table. */
162 for (i = 0; i < 16; i++)
163 REG_WRITE(REG_GLOBAL2, 0x0f, 0x8000 | (i << 8));
164
165 /* @@@ initialise AVB (22/23) watchdog (27) sdet (29) registers */
166
167 return 0;
168}
169
170static int mv88e6352_setup_port(struct dsa_switch *ds, int p)
171{
172 int addr = REG_PORT(p);
173 u16 val;
174
175 /* MAC Forcing register: don't force link, speed, duplex
176 * or flow control state to any particular values on physical
177 * ports, but force the CPU port and all DSA ports to 1000 Mb/s
178 * full duplex.
179 */
180 if (dsa_is_cpu_port(ds, p) || ds->dsa_port_mask & (1 << p))
181 REG_WRITE(addr, 0x01, 0x003e);
182 else
183 REG_WRITE(addr, 0x01, 0x0003);
184
185 /* Do not limit the period of time that this port can be
186 * paused for by the remote end or the period of time that
187 * this port can pause the remote end.
188 */
189 REG_WRITE(addr, 0x02, 0x0000);
190
191 /* Port Control: disable Drop-on-Unlock, disable Drop-on-Lock,
192 * disable Header mode, enable IGMP/MLD snooping, disable VLAN
193 * tunneling, determine priority by looking at 802.1p and IP
194 * priority fields (IP prio has precedence), and set STP state
195 * to Forwarding.
196 *
197 * If this is the CPU link, use DSA or EDSA tagging depending
198 * on which tagging mode was configured.
199 *
200 * If this is a link to another switch, use DSA tagging mode.
201 *
202 * If this is the upstream port for this switch, enable
203 * forwarding of unknown unicasts and multicasts.
204 */
205 val = 0x0433;
206 if (dsa_is_cpu_port(ds, p)) {
207 if (ds->dst->tag_protocol == DSA_TAG_PROTO_EDSA)
208 val |= 0x3300;
209 else
210 val |= 0x0100;
211 }
212 if (ds->dsa_port_mask & (1 << p))
213 val |= 0x0100;
214 if (p == dsa_upstream_port(ds))
215 val |= 0x000c;
216 REG_WRITE(addr, 0x04, val);
217
3ad50cca
GR
218 /* Port Control 2: don't force a good FCS, set the maximum
219 * frame size to 10240 bytes, don't let the switch add or
220 * strip 802.1q tags, don't discard tagged or untagged frames
221 * on this port, do a destination address lookup on all
222 * received packets as usual, disable ARP mirroring and don't
223 * send a copy of all transmitted/received frames on this port
224 * to the CPU.
225 */
226 REG_WRITE(addr, 0x08, 0x2080);
227
228 /* Egress rate control: disable egress rate control. */
229 REG_WRITE(addr, 0x09, 0x0001);
230
231 /* Egress rate control 2: disable egress rate control. */
232 REG_WRITE(addr, 0x0a, 0x0000);
233
234 /* Port Association Vector: when learning source addresses
235 * of packets, add the address to the address database using
236 * a port bitmap that has only the bit for this port set and
237 * the other bits clear.
238 */
239 REG_WRITE(addr, 0x0b, 1 << p);
240
241 /* Port ATU control: disable limiting the number of address
242 * database entries that this port is allowed to use.
243 */
244 REG_WRITE(addr, 0x0c, 0x0000);
245
246 /* Priority Override: disable DA, SA and VTU priority override. */
247 REG_WRITE(addr, 0x0d, 0x0000);
248
249 /* Port Ethertype: use the Ethertype DSA Ethertype value. */
250 REG_WRITE(addr, 0x0f, ETH_P_EDSA);
251
252 /* Tag Remap: use an identity 802.1p prio -> switch prio
253 * mapping.
254 */
255 REG_WRITE(addr, 0x18, 0x3210);
256
257 /* Tag Remap 2: use an identity 802.1p prio -> switch prio
258 * mapping.
259 */
260 REG_WRITE(addr, 0x19, 0x7654);
261
2089052f 262 return mv88e6xxx_setup_port_common(ds, p);
3ad50cca
GR
263}
264
276db3b1
GR
265#ifdef CONFIG_NET_DSA_HWMON
266
267static int mv88e6352_phy_page_read(struct dsa_switch *ds,
268 int port, int page, int reg)
269{
270 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
271 int ret;
272
273 mutex_lock(&ps->phy_mutex);
f3044683 274 ret = mv88e6xxx_phy_write_indirect(ds, port, 0x16, page);
276db3b1
GR
275 if (ret < 0)
276 goto error;
f3044683 277 ret = mv88e6xxx_phy_read_indirect(ds, port, reg);
276db3b1 278error:
f3044683 279 mv88e6xxx_phy_write_indirect(ds, port, 0x16, 0x0);
276db3b1
GR
280 mutex_unlock(&ps->phy_mutex);
281 return ret;
282}
283
284static int mv88e6352_phy_page_write(struct dsa_switch *ds,
285 int port, int page, int reg, int val)
286{
287 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
288 int ret;
289
290 mutex_lock(&ps->phy_mutex);
f3044683 291 ret = mv88e6xxx_phy_write_indirect(ds, port, 0x16, page);
276db3b1
GR
292 if (ret < 0)
293 goto error;
294
f3044683 295 ret = mv88e6xxx_phy_write_indirect(ds, port, reg, val);
276db3b1 296error:
f3044683 297 mv88e6xxx_phy_write_indirect(ds, port, 0x16, 0x0);
276db3b1
GR
298 mutex_unlock(&ps->phy_mutex);
299 return ret;
300}
301
302static int mv88e6352_get_temp(struct dsa_switch *ds, int *temp)
303{
304 int ret;
305
306 *temp = 0;
307
308 ret = mv88e6352_phy_page_read(ds, 0, 6, 27);
309 if (ret < 0)
310 return ret;
311
312 *temp = (ret & 0xff) - 25;
313
314 return 0;
315}
316
317static int mv88e6352_get_temp_limit(struct dsa_switch *ds, int *temp)
318{
319 int ret;
320
321 *temp = 0;
322
323 ret = mv88e6352_phy_page_read(ds, 0, 6, 26);
324 if (ret < 0)
325 return ret;
326
327 *temp = (((ret >> 8) & 0x1f) * 5) - 25;
328
329 return 0;
330}
331
332static int mv88e6352_set_temp_limit(struct dsa_switch *ds, int temp)
333{
334 int ret;
335
336 ret = mv88e6352_phy_page_read(ds, 0, 6, 26);
337 if (ret < 0)
338 return ret;
339 temp = clamp_val(DIV_ROUND_CLOSEST(temp, 5) + 5, 0, 0x1f);
340 return mv88e6352_phy_page_write(ds, 0, 6, 26,
341 (ret & 0xe0ff) | (temp << 8));
342}
343
344static int mv88e6352_get_temp_alarm(struct dsa_switch *ds, bool *alarm)
345{
346 int ret;
347
348 *alarm = false;
349
350 ret = mv88e6352_phy_page_read(ds, 0, 6, 26);
351 if (ret < 0)
352 return ret;
353
354 *alarm = !!(ret & 0x40);
355
356 return 0;
357}
358#endif /* CONFIG_NET_DSA_HWMON */
359
3ad50cca
GR
360static int mv88e6352_setup(struct dsa_switch *ds)
361{
362 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
363 int ret;
364 int i;
365
acdaffcc
GR
366 ret = mv88e6xxx_setup_common(ds);
367 if (ret < 0)
368 return ret;
369
33b43df4 370 mutex_init(&ps->eeprom_mutex);
3ad50cca 371
3ad50cca
GR
372 ret = mv88e6352_switch_reset(ds);
373 if (ret < 0)
374 return ret;
375
376 /* @@@ initialise vtu and atu */
377
378 ret = mv88e6352_setup_global(ds);
379 if (ret < 0)
380 return ret;
381
382 for (i = 0; i < 7; i++) {
383 ret = mv88e6352_setup_port(ds, i);
384 if (ret < 0)
385 return ret;
386 }
387
388 return 0;
389}
390
391static int mv88e6352_port_to_phy_addr(int port)
392{
393 if (port >= 0 && port <= 4)
394 return port;
395 return -EINVAL;
396}
397
398static int
399mv88e6352_phy_read(struct dsa_switch *ds, int port, int regnum)
400{
401 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
402 int addr = mv88e6352_port_to_phy_addr(port);
403 int ret;
404
405 if (addr < 0)
406 return addr;
407
408 mutex_lock(&ps->phy_mutex);
f3044683 409 ret = mv88e6xxx_phy_read_indirect(ds, addr, regnum);
3ad50cca
GR
410 mutex_unlock(&ps->phy_mutex);
411
412 return ret;
413}
414
415static int
416mv88e6352_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val)
417{
418 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
419 int addr = mv88e6352_port_to_phy_addr(port);
420 int ret;
421
422 if (addr < 0)
423 return addr;
424
425 mutex_lock(&ps->phy_mutex);
f3044683 426 ret = mv88e6xxx_phy_write_indirect(ds, addr, regnum, val);
3ad50cca
GR
427 mutex_unlock(&ps->phy_mutex);
428
429 return ret;
430}
431
432static struct mv88e6xxx_hw_stat mv88e6352_hw_stats[] = {
433 { "in_good_octets", 8, 0x00, },
434 { "in_bad_octets", 4, 0x02, },
435 { "in_unicast", 4, 0x04, },
436 { "in_broadcasts", 4, 0x06, },
437 { "in_multicasts", 4, 0x07, },
438 { "in_pause", 4, 0x16, },
439 { "in_undersize", 4, 0x18, },
440 { "in_fragments", 4, 0x19, },
441 { "in_oversize", 4, 0x1a, },
442 { "in_jabber", 4, 0x1b, },
443 { "in_rx_error", 4, 0x1c, },
444 { "in_fcs_error", 4, 0x1d, },
445 { "out_octets", 8, 0x0e, },
446 { "out_unicast", 4, 0x10, },
447 { "out_broadcasts", 4, 0x13, },
448 { "out_multicasts", 4, 0x12, },
449 { "out_pause", 4, 0x15, },
450 { "excessive", 4, 0x11, },
451 { "collisions", 4, 0x1e, },
452 { "deferred", 4, 0x05, },
453 { "single", 4, 0x14, },
454 { "multiple", 4, 0x17, },
455 { "out_fcs_error", 4, 0x03, },
456 { "late", 4, 0x1f, },
457 { "hist_64bytes", 4, 0x08, },
458 { "hist_65_127bytes", 4, 0x09, },
459 { "hist_128_255bytes", 4, 0x0a, },
460 { "hist_256_511bytes", 4, 0x0b, },
461 { "hist_512_1023bytes", 4, 0x0c, },
462 { "hist_1024_max_bytes", 4, 0x0d, },
17ee3e04
GR
463 { "sw_in_discards", 4, 0x110, },
464 { "sw_in_filtered", 2, 0x112, },
465 { "sw_out_filtered", 2, 0x113, },
3ad50cca
GR
466};
467
33b43df4
GR
468static int mv88e6352_read_eeprom_word(struct dsa_switch *ds, int addr)
469{
470 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
471 int ret;
472
473 mutex_lock(&ps->eeprom_mutex);
474
475 ret = mv88e6xxx_reg_write(ds, REG_GLOBAL2, 0x14,
476 0xc000 | (addr & 0xff));
477 if (ret < 0)
478 goto error;
479
f3044683 480 ret = mv88e6xxx_eeprom_busy_wait(ds);
33b43df4
GR
481 if (ret < 0)
482 goto error;
483
484 ret = mv88e6xxx_reg_read(ds, REG_GLOBAL2, 0x15);
485error:
486 mutex_unlock(&ps->eeprom_mutex);
487 return ret;
488}
489
490static int mv88e6352_get_eeprom(struct dsa_switch *ds,
491 struct ethtool_eeprom *eeprom, u8 *data)
492{
493 int offset;
494 int len;
495 int ret;
496
497 offset = eeprom->offset;
498 len = eeprom->len;
499 eeprom->len = 0;
500
501 eeprom->magic = 0xc3ec4951;
502
f3044683 503 ret = mv88e6xxx_eeprom_load_wait(ds);
33b43df4
GR
504 if (ret < 0)
505 return ret;
506
507 if (offset & 1) {
508 int word;
509
510 word = mv88e6352_read_eeprom_word(ds, offset >> 1);
511 if (word < 0)
512 return word;
513
514 *data++ = (word >> 8) & 0xff;
515
516 offset++;
517 len--;
518 eeprom->len++;
519 }
520
521 while (len >= 2) {
522 int word;
523
524 word = mv88e6352_read_eeprom_word(ds, offset >> 1);
525 if (word < 0)
526 return word;
527
528 *data++ = word & 0xff;
529 *data++ = (word >> 8) & 0xff;
530
531 offset += 2;
532 len -= 2;
533 eeprom->len += 2;
534 }
535
536 if (len) {
537 int word;
538
539 word = mv88e6352_read_eeprom_word(ds, offset >> 1);
540 if (word < 0)
541 return word;
542
543 *data++ = word & 0xff;
544
545 offset++;
546 len--;
547 eeprom->len++;
548 }
549
550 return 0;
551}
552
553static int mv88e6352_eeprom_is_readonly(struct dsa_switch *ds)
554{
555 int ret;
556
557 ret = mv88e6xxx_reg_read(ds, REG_GLOBAL2, 0x14);
558 if (ret < 0)
559 return ret;
560
561 if (!(ret & 0x0400))
562 return -EROFS;
563
564 return 0;
565}
566
567static int mv88e6352_write_eeprom_word(struct dsa_switch *ds, int addr,
568 u16 data)
569{
570 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
571 int ret;
572
573 mutex_lock(&ps->eeprom_mutex);
574
575 ret = mv88e6xxx_reg_write(ds, REG_GLOBAL2, 0x15, data);
576 if (ret < 0)
577 goto error;
578
579 ret = mv88e6xxx_reg_write(ds, REG_GLOBAL2, 0x14,
580 0xb000 | (addr & 0xff));
581 if (ret < 0)
582 goto error;
583
f3044683 584 ret = mv88e6xxx_eeprom_busy_wait(ds);
33b43df4
GR
585error:
586 mutex_unlock(&ps->eeprom_mutex);
587 return ret;
588}
589
590static int mv88e6352_set_eeprom(struct dsa_switch *ds,
591 struct ethtool_eeprom *eeprom, u8 *data)
592{
593 int offset;
594 int ret;
595 int len;
596
597 if (eeprom->magic != 0xc3ec4951)
598 return -EINVAL;
599
600 ret = mv88e6352_eeprom_is_readonly(ds);
601 if (ret)
602 return ret;
603
604 offset = eeprom->offset;
605 len = eeprom->len;
606 eeprom->len = 0;
607
f3044683 608 ret = mv88e6xxx_eeprom_load_wait(ds);
33b43df4
GR
609 if (ret < 0)
610 return ret;
611
612 if (offset & 1) {
613 int word;
614
615 word = mv88e6352_read_eeprom_word(ds, offset >> 1);
616 if (word < 0)
617 return word;
618
619 word = (*data++ << 8) | (word & 0xff);
620
621 ret = mv88e6352_write_eeprom_word(ds, offset >> 1, word);
622 if (ret < 0)
623 return ret;
624
625 offset++;
626 len--;
627 eeprom->len++;
628 }
629
630 while (len >= 2) {
631 int word;
632
633 word = *data++;
634 word |= *data++ << 8;
635
636 ret = mv88e6352_write_eeprom_word(ds, offset >> 1, word);
637 if (ret < 0)
638 return ret;
639
640 offset += 2;
641 len -= 2;
642 eeprom->len += 2;
643 }
644
645 if (len) {
646 int word;
647
648 word = mv88e6352_read_eeprom_word(ds, offset >> 1);
649 if (word < 0)
650 return word;
651
652 word = (word & 0xff00) | *data++;
653
654 ret = mv88e6352_write_eeprom_word(ds, offset >> 1, word);
655 if (ret < 0)
656 return ret;
657
658 offset++;
659 len--;
660 eeprom->len++;
661 }
662
663 return 0;
664}
665
3ad50cca
GR
666static void
667mv88e6352_get_strings(struct dsa_switch *ds, int port, uint8_t *data)
668{
669 mv88e6xxx_get_strings(ds, ARRAY_SIZE(mv88e6352_hw_stats),
670 mv88e6352_hw_stats, port, data);
671}
672
673static void
674mv88e6352_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data)
675{
676 mv88e6xxx_get_ethtool_stats(ds, ARRAY_SIZE(mv88e6352_hw_stats),
677 mv88e6352_hw_stats, port, data);
678}
679
680static int mv88e6352_get_sset_count(struct dsa_switch *ds)
681{
682 return ARRAY_SIZE(mv88e6352_hw_stats);
683}
684
685struct dsa_switch_driver mv88e6352_switch_driver = {
686 .tag_protocol = DSA_TAG_PROTO_EDSA,
687 .priv_size = sizeof(struct mv88e6xxx_priv_state),
688 .probe = mv88e6352_probe,
689 .setup = mv88e6352_setup,
690 .set_addr = mv88e6xxx_set_addr_indirect,
691 .phy_read = mv88e6352_phy_read,
692 .phy_write = mv88e6352_phy_write,
693 .poll_link = mv88e6xxx_poll_link,
694 .get_strings = mv88e6352_get_strings,
695 .get_ethtool_stats = mv88e6352_get_ethtool_stats,
696 .get_sset_count = mv88e6352_get_sset_count,
04b0a80b
GR
697 .set_eee = mv88e6xxx_set_eee,
698 .get_eee = mv88e6xxx_get_eee,
276db3b1
GR
699#ifdef CONFIG_NET_DSA_HWMON
700 .get_temp = mv88e6352_get_temp,
701 .get_temp_limit = mv88e6352_get_temp_limit,
702 .set_temp_limit = mv88e6352_set_temp_limit,
703 .get_temp_alarm = mv88e6352_get_temp_alarm,
704#endif
33b43df4
GR
705 .get_eeprom = mv88e6352_get_eeprom,
706 .set_eeprom = mv88e6352_set_eeprom,
95d08b5a
GR
707 .get_regs_len = mv88e6xxx_get_regs_len,
708 .get_regs = mv88e6xxx_get_regs,
3f244abb
GR
709 .port_join_bridge = mv88e6xxx_join_bridge,
710 .port_leave_bridge = mv88e6xxx_leave_bridge,
711 .port_stp_update = mv88e6xxx_port_stp_update,
4f431e56
GR
712 .fdb_add = mv88e6xxx_port_fdb_add,
713 .fdb_del = mv88e6xxx_port_fdb_del,
714 .fdb_getnext = mv88e6xxx_port_fdb_getnext,
3ad50cca
GR
715};
716
717MODULE_ALIAS("platform:mv88e6352");