WIP FPC-III support
[linux/fpc-iii.git] / drivers / net / dsa / dsa_loop_bdinfo.c
blob237066d307044583167923fcfc54d88a1ff53bc4
1 // SPDX-License-Identifier: GPL-2.0-only
2 #include <linux/kernel.h>
3 #include <linux/init.h>
4 #include <linux/phy.h>
5 #include <net/dsa.h>
7 #include "dsa_loop.h"
9 static struct dsa_loop_pdata dsa_loop_pdata = {
10 .cd = {
11 .port_names[0] = "lan1",
12 .port_names[1] = "lan2",
13 .port_names[2] = "lan3",
14 .port_names[3] = "lan4",
15 .port_names[DSA_LOOP_CPU_PORT] = "cpu",
17 .name = "DSA mockup driver",
18 .enabled_ports = 0x1f,
19 .netdev = "eth0",
22 static const struct mdio_board_info bdinfo = {
23 .bus_id = "fixed-0",
24 .modalias = "dsa-loop",
25 .mdio_addr = 31,
26 .platform_data = &dsa_loop_pdata,
29 static int __init dsa_loop_bdinfo_init(void)
31 return mdiobus_register_board_info(&bdinfo, 1);
33 arch_initcall(dsa_loop_bdinfo_init)
35 MODULE_LICENSE("GPL");