Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259300
b: refs/heads/master
c: 5154e9f
h: refs/heads/master
v: v3
  • Loading branch information
Yoshihiro Shimoda authored and Felipe Balbi committed Jul 8, 2011
1 parent 9e1cfe1 commit 8e4087e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: deafeb24e8a846da8555e68f4bcf651daa8a4ed1
refs/heads/master: 5154e9f126c1d2ee8f5f93d9954f83d82b2d5e64
6 changes: 5 additions & 1 deletion trunk/drivers/usb/gadget/r8a66597-udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,11 @@ static void init_controller(struct r8a66597 *r8a66597)
u16 endian = r8a66597->pdata->endian ? BIGEND : 0;

if (r8a66597->pdata->on_chip) {
r8a66597_bset(r8a66597, 0x04, SYSCFG1);
if (r8a66597->pdata->buswait)
r8a66597_write(r8a66597, r8a66597->pdata->buswait,
SYSCFG1);
else
r8a66597_write(r8a66597, 0x0f, SYSCFG1);
r8a66597_bset(r8a66597, HSE, SYSCFG0);

r8a66597_bclr(r8a66597, USBE, SYSCFG0);
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/usb/r8a66597.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ struct r8a66597_platdata {
/* This callback can control port power instead of DVSTCTR register. */
void (*port_power)(int port, int power);

/* This parameter is for BUSWAIT */
u16 buswait;

/* set one = on chip controller, set zero = external controller */
unsigned on_chip:1;

Expand Down

0 comments on commit 8e4087e

Please sign in to comment.