summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-11-18 20:07:23 +0000
committerAmaury Pouly <amaury.pouly@gmail.com>2013-11-18 21:44:06 +0000
commit287be81c16ef52484403c9f08bbf80465da6263b (patch)
treeede24a7e6948487227b4e9b7d54253427c0a83c7 /utils
parent977a6c3ce7a2ab960590e9d997388cca2e4c29ee (diff)
downloadrockbox-287be81c16ef52484403c9f08bbf80465da6263b.tar.gz
rockbox-287be81c16ef52484403c9f08bbf80465da6263b.tar.bz2
rockbox-287be81c16ef52484403c9f08bbf80465da6263b.zip
hwstub: use a more reasonable hclk frequency
The old code would set CPU to 64MHz and HCLK to 9MHz but that's too low for many things like usb and gpmi. So change HCLK to ~32MHZ. Change-Id: I6459f25900e42603333cebccb7b0ed26c59640ad
Diffstat (limited to 'utils')
-rw-r--r--utils/hwstub/stub/stmp/target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hwstub/stub/stmp/target.c b/utils/hwstub/stub/stmp/target.c
index 55cb344955..47768aab0d 100644
--- a/utils/hwstub/stub/stmp/target.c
+++ b/utils/hwstub/stub/stmp/target.c
@@ -213,7 +213,7 @@ void target_init(void)
__REG_CLR(HW_CLKCTRL_PLLCTRL0) = HW_CLKCTRL_PLLCTRL0__BYPASS;
/* Get back XBUS = 24 MHz and CPU = HBUS = 64MHz */
HW_CLKCTRL_CPUCLKCTRL = 7;
- HW_CLKCTRL_HBUSCLKCTRL = 7;
+ HW_CLKCTRL_HBUSCLKCTRL = 2;
HW_CLKCTRL_XBUSCLKCTRL = 1;
__REG_CLR(HW_CLKCTRL_UTMICLKCTRL) = HW_CLKCTRL_UTMICLKCTRL__UTMI_CLK120M_GATE;
__REG_CLR(HW_CLKCTRL_UTMICLKCTRL) = HW_CLKCTRL_UTMICLKCTRL__UTMI_CLK30M_GATE;