1 // SPDX-License-Identifier: GPL-2.0-only
2 #include <linux/kernel.h>
3 #include <linux/init.h>
9 static struct dsa_loop_pdata dsa_loop_pdata
= {
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,
22 static const struct mdio_board_info bdinfo
= {
24 .modalias
= "dsa-loop",
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");