diff options
Diffstat (limited to 'bsps/shared/grlib/spw/grspw_router.c')
-rw-r--r-- | bsps/shared/grlib/spw/grspw_router.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bsps/shared/grlib/spw/grspw_router.c b/bsps/shared/grlib/spw/grspw_router.c index d8ba8feef3..9a31c3b49a 100644 --- a/bsps/shared/grlib/spw/grspw_router.c +++ b/bsps/shared/grlib/spw/grspw_router.c @@ -1431,6 +1431,11 @@ int router_port_link_start(void *d, int port) return router_port_ctrl_rmw(d, port, NULL, PCTRL_LD | PCTRL_LS, PCTRL_LS); } +int router_port_link_div(void *d, int port, int rundiv) +{ + return router_port_ctrl_rmw(d, port, NULL, PCTRL_RD, (rundiv << PCTRL_RD_BIT) & PCTRL_RD); +} + int router_port_link_receive_spill(void *d, int port) { struct router_priv *priv = d; |