|
@@ -26,6 +26,9 @@ idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount,
|
|
|
{
|
|
|
u32 result;
|
|
|
|
|
|
+ if (route_port == RIO_INVALID_ROUTE)
|
|
|
+ route_port = CPS_DEFAULT_ROUTE;
|
|
|
+
|
|
|
if (table == RIO_GLOBAL_TABLE) {
|
|
|
rio_mport_write_config_32(mport, destid, hopcount,
|
|
|
RIO_STD_RTE_CONF_DESTID_SEL_CSR, route_destid);
|
|
@@ -130,6 +133,9 @@ static int idtcps_switch_init(struct rio_dev *rdev, int do_enum)
|
|
|
/* set TVAL = ~50us */
|
|
|
rio_write_config_32(rdev,
|
|
|
rdev->phys_efptr + RIO_PORT_LINKTO_CTL_CSR, 0x8e << 8);
|
|
|
+ /* Ensure that default routing is disabled on startup */
|
|
|
+ rio_write_config_32(rdev,
|
|
|
+ RIO_STD_RTE_DEFAULT_PORT, CPS_NO_ROUTE);
|
|
|
}
|
|
|
|
|
|
return 0;
|