2 * Platform data definition for the Realtek RTL8367 ethernet switch driver
4 * Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
14 #define RTL8367_DRIVER_NAME "rtl8367"
15 #define RTL8367B_DRIVER_NAME "rtl8367b"
17 enum rtl8367_port_speed {
18 RTL8367_PORT_SPEED_10 = 0,
19 RTL8367_PORT_SPEED_100,
20 RTL8367_PORT_SPEED_1000,
23 struct rtl8367_port_ability {
30 enum rtl8367_port_speed speed;
33 enum rtl8367_extif_mode {
34 RTL8367_EXTIF_MODE_DISABLED = 0,
35 RTL8367_EXTIF_MODE_RGMII,
36 RTL8367_EXTIF_MODE_MII_MAC,
37 RTL8367_EXTIF_MODE_MII_PHY,
38 RTL8367_EXTIF_MODE_TMII_MAC,
39 RTL8367_EXTIF_MODE_TMII_PHY,
40 RTL8367_EXTIF_MODE_GMII,
41 RTL8367_EXTIF_MODE_RGMII_33V,
44 struct rtl8367_extif_config {
47 enum rtl8367_extif_mode mode;
48 struct rtl8367_port_ability ability;
51 struct rtl8367_platform_data {
54 void (*hw_reset)(bool active);
56 struct rtl8367_extif_config *extif0_cfg;
57 struct rtl8367_extif_config *extif1_cfg;
60 #endif /* _RTL8367_H */