summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-12-20 13:10:04 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-12-20 13:10:04 +0000
commite4c09799a0330e5799a1665a12183c62f12fa33f (patch)
tree895dc0dd2d6c08275da828f2d8642591a52cdf18 /firmware/target/mips/ingenic_jz47xx/system-jz4740.c
parent977bab5348fb91d33552ea92b1d7f381bde8c993 (diff)
downloadrockbox-e4c09799a0330e5799a1665a12183c62f12fa33f.tar.gz
rockbox-e4c09799a0330e5799a1665a12183c62f12fa33f.tar.bz2
rockbox-e4c09799a0330e5799a1665a12183c62f12fa33f.zip
Ingenic players:
* Enable clocks when needed * Fix VX747+ button_hold() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19505 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-jz4740.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
index 22d35d93de..48fb192810 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
@@ -694,6 +694,9 @@ void system_main(void)
detect_clock();
+ /* Disable unneeded clocks, clocks are enabled when needed */
+ __cpm_stop_all();
+
/* Enable interrupts at core level */
sti();