~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/rapidio/switches/idt_gen2.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        else
96
96
                table++;
97
97
 
 
98
        if (route_port == RIO_INVALID_ROUTE)
 
99
                route_port = IDT_DEFAULT_ROUTE;
 
100
 
98
101
        rio_mport_write_config_32(mport, destid, hopcount,
99
102
                                  LOCAL_RTE_CONF_DESTID_SEL, table);
100
103
 
411
414
        rdev->rswitch->em_handle = idtg2_em_handler;
412
415
        rdev->rswitch->sw_sysfs = idtg2_sysfs;
413
416
 
 
417
        if (do_enum) {
 
418
                /* Ensure that default routing is disabled on startup */
 
419
                rio_write_config_32(rdev,
 
420
                                    RIO_STD_RTE_DEFAULT_PORT, IDT_NO_ROUTE);
 
421
        }
 
422
 
414
423
        return 0;
415
424
}
416
425
 
418
427
DECLARE_RIO_SWITCH_INIT(RIO_VID_IDT, RIO_DID_IDTCPS1616, idtg2_switch_init);
419
428
DECLARE_RIO_SWITCH_INIT(RIO_VID_IDT, RIO_DID_IDTVPS1616, idtg2_switch_init);
420
429
DECLARE_RIO_SWITCH_INIT(RIO_VID_IDT, RIO_DID_IDTSPS1616, idtg2_switch_init);
 
430
DECLARE_RIO_SWITCH_INIT(RIO_VID_IDT, RIO_DID_IDTCPS1432, idtg2_switch_init);