summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/system-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-05-02 21:39:58 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-05-28 17:18:52 +0200
commita25700e4a04145fcf59e4674a88f55dd088a9c08 (patch)
treea472c8ab9ddb2970c67186b4a978d93b022d0241 /firmware/target/arm/imx233/system-imx233.c
parent643c0a1e0e80ee6010353201792ba6e2be7e1ced (diff)
downloadrockbox-a25700e4a04145fcf59e4674a88f55dd088a9c08.tar.gz
rockbox-a25700e4a04145fcf59e4674a88f55dd088a9c08.zip
imx233: fix frequency reporting
The code reported the frequency in kHz instead of Hz, thus breaking a debug screen. Change-Id: Id46de970cfb55bcdc09b63f59b244ee3ad6264b8
Diffstat (limited to 'firmware/target/arm/imx233/system-imx233.c')
-rw-r--r--firmware/target/arm/imx233/system-imx233.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c
index b2ece3be61..1174d1c93c 100644
--- a/firmware/target/arm/imx233/system-imx233.c
+++ b/firmware/target/arm/imx233/system-imx233.c
@@ -195,7 +195,7 @@ void system_init(void)
imx233_clkctrl_enable_auto_slow(false);
imx233_clkctrl_set_auto_slow_div(BV_CLKCTRL_HBUS_SLOW_DIV__BY8);
- cpu_frequency = imx233_clkctrl_get_freq(CLK_CPU);
+ cpu_frequency = imx233_clkctrl_get_freq(CLK_CPU) * 1000; /* variable in Hz */
#if !defined(BOOTLOADER) && CONFIG_TUNER != 0
fmradio_i2c_init();