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
,
42 RTL8367B_EXTIF_MODE_RMII_MAC
= 7,
43 RTL8367B_EXTIF_MODE_RMII_PHY
,
44 RTL8367B_EXTIF_MODE_RGMII_33V
,
47 struct rtl8367_extif_config
{
50 enum rtl8367_extif_mode mode
;
51 struct rtl8367_port_ability ability
;
54 struct rtl8367_platform_data
{
57 void (*hw_reset
)(bool active
);
59 struct rtl8367_extif_config
*extif0_cfg
;
60 struct rtl8367_extif_config
*extif1_cfg
;
63 #endif /* _RTL8367_H */