On the dual Ethernet board we have a single p_clk pin for both PHYs.
The present interface does not cater for this
One way around this is to extract the setup code for the ports, so that the code can be invoked as follows::
on tile[0]: {
rmii_setup(p_clk, read/write ports 0);
rmii_setup(p_clk, read/write ports 1);
par {
rmii_interface(read/write ports 0);
rmii_interface(read/write ports 1);
}
}