-
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.
usb: ohci-at91: Forcibly suspend ports while USB suspend
In order to the save power consumption, as a workaround, suspend forcibly the USB PORTA/B/C via set the SUSPEND_A/B/C bits of OHCI Interrupt Configuration Register in the SFRs while OHCI USB suspend. This suspend operation must be done before the USB clock is disabled, resume after the USB clock is enabled. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information
Wenyou Yang
authored and
Greg Kroah-Hartman
committed
Jun 8, 2016
1 parent
62c32e4
commit 7150bc9
Showing
3 changed files
with
112 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Header file for the Atmel DDR/SDR SDRAM Controller | ||
* | ||
* Copyright (C) 2016 Atmel Corporation | ||
* | ||
* Author: Wenyou Yang <wenyou.yang@atmel.com> | ||
* | ||
* 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 __AT91_SFR_H__ | ||
#define __AT91_SFR_H__ | ||
|
||
#define SFR_DDRCFG 0x04 /* DDR Configuration Register */ | ||
/* 0x08 ~ 0x0c: Reserved */ | ||
#define SFR_OHCIICR 0x10 /* OHCI Interrupt Configuration Register */ | ||
#define SFR_OHCIISR 0x14 /* OHCI Interrupt Status Register */ | ||
|
||
#define SFR_OHCIICR_SUSPEND_A BIT(8) | ||
#define SFR_OHCIICR_SUSPEND_B BIT(9) | ||
#define SFR_OHCIICR_SUSPEND_C BIT(10) | ||
|
||
#define SFR_OHCIICR_USB_SUSPEND (SFR_OHCIICR_SUSPEND_A | \ | ||
SFR_OHCIICR_SUSPEND_B | \ | ||
SFR_OHCIICR_SUSPEND_C) | ||
|
||
#endif |