mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Make sure the USB PHY is disabled after use. Patch by Mihail Zenkov who has
measured several milliamps power reduction from having the PHY disabled. Change-Id: I29e55222eb50acf2023ac1113a90612029c580af Reviewed-on: http://gerrit.rockbox.org/988 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com> Tested: Michael Giacomelli <giac2000@hotmail.com>
This commit is contained in:
parent
515a3c50fc
commit
02414bf286
2 changed files with 7 additions and 0 deletions
|
|
@ -354,6 +354,12 @@ void usb_drv_exit(void)
|
|||
|
||||
CGU_USB = 0;
|
||||
bitclr32(&CGU_PERI, CGU_USB_CLOCK_ENABLE);
|
||||
|
||||
/* reset USB_PHY to prevent power consumption */
|
||||
CCU_SRC = CCU_SRC_USB_PHY_EN;
|
||||
CCU_SRL = CCU_SRL_MAGIC_NUMBER;
|
||||
CCU_SRL = 0;
|
||||
|
||||
}
|
||||
#elif CONFIG_CPU == S5L8701 || CONFIG_CPU == S5L8702
|
||||
static void usb_reset(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue