diff options
author | Mihail Zenkov <Mihail_Zenkov@rockbox.org> | 2014-09-27 23:58:51 +0200 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2014-09-28 21:07:45 +0200 |
commit | 02414bf286e4ff6a08d19e951bff1e0905d330b4 (patch) | |
tree | a0040c236528b0b71616bef6bd713865e338ab94 | |
parent | 515a3c50fca3f6e623683dc2c4c77c5b84911b12 (diff) | |
download | rockbox-02414bf286e4ff6a08d19e951bff1e0905d330b4.tar.gz rockbox-02414bf286e4ff6a08d19e951bff1e0905d330b4.zip |
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>
-rw-r--r-- | docs/CREDITS | 1 | ||||
-rw-r--r-- | firmware/target/arm/usb-s3c6400x.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/CREDITS b/docs/CREDITS index 4b3b5907fd..96a5b784bd 100644 --- a/docs/CREDITS +++ b/docs/CREDITS | |||
@@ -643,6 +643,7 @@ Yifu Huang | |||
643 | Jonathan Bettencourt | 643 | Jonathan Bettencourt |
644 | Ilia Sergachev | 644 | Ilia Sergachev |
645 | Nial Shui | 645 | Nial Shui |
646 | Mihail Zenkov | ||
646 | 647 | ||
647 | The libmad team | 648 | The libmad team |
648 | The wavpack team | 649 | The wavpack team |
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c index 48521aa622..af4e564442 100644 --- a/firmware/target/arm/usb-s3c6400x.c +++ b/firmware/target/arm/usb-s3c6400x.c | |||
@@ -354,6 +354,12 @@ void usb_drv_exit(void) | |||
354 | 354 | ||
355 | CGU_USB = 0; | 355 | CGU_USB = 0; |
356 | bitclr32(&CGU_PERI, CGU_USB_CLOCK_ENABLE); | 356 | bitclr32(&CGU_PERI, CGU_USB_CLOCK_ENABLE); |
357 | |||
358 | /* reset USB_PHY to prevent power consumption */ | ||
359 | CCU_SRC = CCU_SRC_USB_PHY_EN; | ||
360 | CCU_SRL = CCU_SRL_MAGIC_NUMBER; | ||
361 | CCU_SRL = 0; | ||
362 | |||
357 | } | 363 | } |
358 | #elif CONFIG_CPU == S5L8701 || CONFIG_CPU == S5L8702 | 364 | #elif CONFIG_CPU == S5L8701 || CONFIG_CPU == S5L8702 |
359 | static void usb_reset(void) | 365 | static void usb_reset(void) |