]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - drivers/net/dsa/dsa_loop_bdinfo.c
Merge tag 'leds-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux...
[mirror_ubuntu-jammy-kernel.git] / drivers / net / dsa / dsa_loop_bdinfo.c
CommitLineData
09c434b8 1// SPDX-License-Identifier: GPL-2.0-only
98cd1552
FF
2#include <linux/kernel.h>
3#include <linux/init.h>
4#include <linux/phy.h>
5#include <net/dsa.h>
6
7#include "dsa_loop.h"
8
9static 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",
16 },
17 .name = "DSA mockup driver",
18 .enabled_ports = 0x1f,
19 .netdev = "eth0",
20};
21
22static 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,
27};
28
29static int __init dsa_loop_bdinfo_init(void)
30{
31 return mdiobus_register_board_info(&bdinfo, 1);
32}
33arch_initcall(dsa_loop_bdinfo_init)
34
35MODULE_LICENSE("GPL");