usb: dwc3: make maximum-speed a per-instance attribute

in order to allow different instances of the
core work in different maximum speeds, we will
move the maximum_speed module_parameter to
both DeviceTree (making use the new maximum-speed
DT property) and platform_data.

Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
Felipe Balbi
2013-06-30 14:29:51 +03:00
parent 6462cbd54d
commit f7e846f095
3 changed files with 30 additions and 18 deletions

View File

@@ -17,6 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <linux/usb/ch9.h>
struct dwc3_platform_data {
enum usb_device_speed maximum_speed;
bool tx_fifo_resize;
};