diff options
author | Daniel Mack <zonque@gmail.com> | 2013-11-25 16:26:42 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-11-26 11:35:15 -0500 |
commit | b991f9b77c029135f6e0d1d5d16869ebf755c4c0 (patch) | |
tree | 1966375a6f2a707de58002d043a83b396ee50850 /drivers/usb/musb/musb_dsps.c | |
parent | 94f72136a86141604bcab75a2548b6488e70128d (diff) |
usb: musb: dsps: add {tx,rx}_mode to wrapper
rx_mode and tx_mode need to be read at suspend time and restored on
resume for dsps platforms. So add it to the wrapper struct first, and
initialize the values.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_dsps.c')
-rw-r--r-- | drivers/usb/musb/musb_dsps.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index ce7ec014a125..3f3724471667 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c | |||
@@ -83,6 +83,8 @@ struct dsps_musb_wrapper { | |||
83 | u16 coreintr_status; | 83 | u16 coreintr_status; |
84 | u16 phy_utmi; | 84 | u16 phy_utmi; |
85 | u16 mode; | 85 | u16 mode; |
86 | u16 tx_mode; | ||
87 | u16 rx_mode; | ||
86 | 88 | ||
87 | /* bit positions for control */ | 89 | /* bit positions for control */ |
88 | unsigned reset:5; | 90 | unsigned reset:5; |
@@ -655,6 +657,8 @@ static const struct dsps_musb_wrapper am33xx_driver_data = { | |||
655 | .coreintr_status = 0x34, | 657 | .coreintr_status = 0x34, |
656 | .phy_utmi = 0xe0, | 658 | .phy_utmi = 0xe0, |
657 | .mode = 0xe8, | 659 | .mode = 0xe8, |
660 | .tx_mode = 0x70, | ||
661 | .rx_mode = 0x74, | ||
658 | .reset = 0, | 662 | .reset = 0, |
659 | .otg_disable = 21, | 663 | .otg_disable = 21, |
660 | .iddig = 8, | 664 | .iddig = 8, |