aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/omap_udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/omap_udc.c')
-rw-r--r--drivers/usb/gadget/omap_udc.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c
index f81e4f025f23..7f472a57490e 100644
--- a/drivers/usb/gadget/omap_udc.c
+++ b/drivers/usb/gadget/omap_udc.c
@@ -54,7 +54,6 @@
54 54
55#include <plat/dma.h> 55#include <plat/dma.h>
56#include <plat/usb.h> 56#include <plat/usb.h>
57#include <plat/control.h>
58 57
59#include "omap_udc.h" 58#include "omap_udc.h"
60 59
@@ -2309,21 +2308,12 @@ static char *trx_mode(unsigned m, int enabled)
2309static int proc_otg_show(struct seq_file *s) 2308static int proc_otg_show(struct seq_file *s)
2310{ 2309{
2311 u32 tmp; 2310 u32 tmp;
2312 u32 trans; 2311 u32 trans = 0;
2313 char *ctrl_name; 2312 char *ctrl_name = "(UNKNOWN)";
2314 2313
2314 /* XXX This needs major revision for OMAP2+ */
2315 tmp = omap_readl(OTG_REV); 2315 tmp = omap_readl(OTG_REV);
2316 if (cpu_is_omap24xx()) { 2316 if (cpu_class_is_omap1()) {
2317 /*
2318 * REVISIT: Not clear how this works on OMAP2. trans
2319 * is ANDed to produce bits 7 and 8, which might make
2320 * sense for USB_TRANSCEIVER_CTRL on OMAP1,
2321 * but with CONTROL_DEVCONF, these bits have something to
2322 * do with the frame adjustment counter and McBSP2.
2323 */
2324 ctrl_name = "control_devconf";
2325 trans = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0);
2326 } else {
2327 ctrl_name = "tranceiver_ctrl"; 2317 ctrl_name = "tranceiver_ctrl";
2328 trans = omap_readw(USB_TRANSCEIVER_CTRL); 2318 trans = omap_readw(USB_TRANSCEIVER_CTRL);
2329 } 2319 }