devs-cpsw-am62a.so
Driver for Texas Instruments Common Platform Ethernet Switch (CPSW) J7/AM62 devices
Syntax:
io-sock -m fdt -m phy -m phy_fdt -d cpsw-am62a [option[,option...]]
mount -T io-sock [-o option[,option...]] fdt
mount -T io-sock [-o option[,option...]] phy
mount -T io-sock [-o option[,option...]] phy_fdt
mount -T io-sock [-o option[,option...]] cpsw-am62a
Runs on:
QNX OS
Options:
Use commas, not spaces, to separate the options.- prefix=prefix
- Specifies the instance of io-sock that mounts this driver. You specify the prefix that creates an alternative stack when you start io-sock. Used only when you load a driver with mount after starting io-sock.
- qnxdev=device
- When Plug & Play is disabled, specifies the device instance to use. Use devinfo -v to determine the location value to use (e.g., qnxdev=ofwbus1:0x46000000).
Description:
For devs-cpsw-am62a.so drivers, the suffix am62a indicates the Texas Instruments (TI) Processor SDK that was used at compilation time. For example, the devs-cpsw-am62a.so driver is compiled against the header files from the am62a Processor SDK.
These drivers require the mods-fdt.so driver and don't include a
PHY driver. If they need a PHY driver, they rely on io-sock's
miibus
framework to find it. PHY drivers are provided in
mods-phy.so or mods-phy_fdt.so. In
some cases, a custom PHY driver may be required.
For information on starting io-sock with a driver or
loading a driver later using mount, see Starting io-sock and Driver Management
in the
High-Performance Networking Stack User's Guide. You cannot load
devs-cpsw-am62a.so driver using
a configuration file or by using loader.config.
Devices
Support for CPSW2G_MAIN, CPSW2G_MCU, CPSW9G, and CPSW3G devices is enabled by default. Devices can be disabled in the io-sock configuration file using tunables. For example, the following entries disable all devices except for CPSW2G_MCU:
hw.cpsw.cpsw2g_main="0"
hw.cpsw.cpsw9g="0"
hw.cpsw.cpsw3g="0"
The devs-cpsw-am62a.so drivers create a device hierarchy. A cpswss device is created for each cpsw controller, and a cpsw device is created for each port.
Hardware statistics
You can use sysctl to display the hardware statistics. For example:
sysctl dev.cpswss.0.stats
The statistics are displayed using the CPSW device ALE port index. By default, many statistics are not shown. To see additional statistics, in the io-sock configuration file, set the hw.cpsw.stats tunable to 1.
Required libraries
In addition to the libfdt.so required by FDT network drivers, the devs-cpsw-am62a.so drivers require the following TI libraries:
- libti-pdk.so
- libti-sciclient.so
- libti-udmalld.so
- libtiudma-usr.so