-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: pxa: add U2D controller and ULPI driver for pxa3xx
USB2.0 Device Controller (U2DC) which is found in Marvell PXA3xx. U2DC supports both High and Full speed modes. PXA320 and PXA300 U2DC supports only UTMI interface. PXA310 U2DC supports only ULPI interface and has the OTG capability. U2D Controller ULPI driver introduced in this patch supports only the PXA310 USB Host via the ULPI. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
- Loading branch information
Igor Grinberg
authored and
Eric Miao
committed
Oct 8, 2010
1 parent
cb655d0
commit 69f22be
Showing
7 changed files
with
462 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* PXA3xx U2D header | ||
* | ||
* Copyright (C) 2010 CompuLab Ltd. | ||
* | ||
* Igor Grinberg <grinberg@compulab.co.il> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
#ifndef __PXA310_U2D__ | ||
#define __PXA310_U2D__ | ||
|
||
#include <linux/usb/ulpi.h> | ||
|
||
struct pxa3xx_u2d_platform_data { | ||
|
||
#define ULPI_SER_6PIN (1 << 0) | ||
#define ULPI_SER_3PIN (1 << 1) | ||
unsigned int ulpi_mode; | ||
|
||
int (*init)(struct device *); | ||
void (*exit)(struct device *); | ||
}; | ||
|
||
|
||
/* Start PXA3xx U2D host */ | ||
int pxa3xx_u2d_start_hc(struct usb_bus *host); | ||
/* Stop PXA3xx U2D host */ | ||
void pxa3xx_u2d_stop_hc(struct usb_bus *host); | ||
|
||
extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info); | ||
|
||
#endif /* __PXA310_U2D__ */ |
Oops, something went wrong.