File tree Expand file tree Collapse file tree 5 files changed +13
-0
lines changed
drivers/net/ethernet/microchip/sparx5 Expand file tree Collapse file tree 5 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ static const struct sparx5_ops lan969x_ops = {
329
329
.is_port_5g = & lan969x_port_is_5g ,
330
330
.is_port_10g = & lan969x_port_is_10g ,
331
331
.is_port_25g = & lan969x_port_is_25g ,
332
+ .is_port_rgmii = & lan969x_port_is_rgmii ,
332
333
.get_port_dev_index = & lan969x_port_dev_mapping ,
333
334
.get_port_dev_bit = & lan969x_get_dev_mode_bit ,
334
335
.get_hsch_max_group_rate = & lan969x_get_hsch_max_group_rate ,
Original file line number Diff line number Diff line change @@ -59,6 +59,11 @@ static inline bool lan969x_port_is_25g(int portno)
59
59
return false;
60
60
}
61
61
62
+ static inline bool lan969x_port_is_rgmii (int portno )
63
+ {
64
+ return portno == 28 || portno == 29 ;
65
+ }
66
+
62
67
/* lan969x_calendar.c */
63
68
int lan969x_dsm_calendar_calc (struct sparx5 * sparx5 , u32 taxi ,
64
69
struct sparx5_calendar_data * data );
Original file line number Diff line number Diff line change @@ -1072,6 +1072,7 @@ static const struct sparx5_ops sparx5_ops = {
1072
1072
.is_port_5g = & sparx5_port_is_5g ,
1073
1073
.is_port_10g = & sparx5_port_is_10g ,
1074
1074
.is_port_25g = & sparx5_port_is_25g ,
1075
+ .is_port_rgmii = & sparx5_port_is_rgmii ,
1075
1076
.get_port_dev_index = & sparx5_port_dev_mapping ,
1076
1077
.get_port_dev_bit = & sparx5_port_dev_mapping ,
1077
1078
.get_hsch_max_group_rate = & sparx5_get_hsch_max_group_rate ,
Original file line number Diff line number Diff line change @@ -313,6 +313,7 @@ struct sparx5_ops {
313
313
bool (* is_port_5g )(int portno );
314
314
bool (* is_port_10g )(int portno );
315
315
bool (* is_port_25g )(int portno );
316
+ bool (* is_port_rgmii )(int portno );
316
317
u32 (* get_port_dev_index )(struct sparx5 * sparx5 , int port );
317
318
u32 (* get_port_dev_bit )(struct sparx5 * sparx5 , int port );
318
319
u32 (* get_hsch_max_group_rate )(int grp );
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ static inline bool sparx5_port_is_25g(int portno)
40
40
return portno >= 56 && portno <= 63 ;
41
41
}
42
42
43
+ static inline bool sparx5_port_is_rgmii (int portno )
44
+ {
45
+ return false;
46
+ }
47
+
43
48
static inline u32 sparx5_to_high_dev (struct sparx5 * sparx5 , int port )
44
49
{
45
50
const struct sparx5_ops * ops = sparx5 -> data -> ops ;
You can’t perform that action at this time.
0 commit comments