diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-01-27 00:38:58 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-01-27 00:38:58 +0000 |
commit | a4e7bc383ed296b532a648a02db62a06c99c9ad8 (patch) | |
tree | 97ab9a2d4441aebeae7a76ef1c448f10883daadf /firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c | |
parent | 95577c7996e7a79a71a12e27433cbd5126c0ccd8 (diff) | |
download | rockbox-a4e7bc383ed296b532a648a02db62a06c99c9ad8.tar.gz rockbox-a4e7bc383ed296b532a648a02db62a06c99c9ad8.zip |
Onda VX747:
* Implement lcd_flip()
* Add support for multiple banks in NAND driver
* Add basic I²C driver (untested)
* Get audio back working
* Add power driver
* Other minor fixes and cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19863 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c b/firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c index 431af490da..2ef66a1d19 100644 --- a/firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c | |||
@@ -39,7 +39,8 @@ void tick_start(unsigned int interval_in_ms) | |||
39 | __tcu_select_extalclk(0); | 39 | __tcu_select_extalclk(0); |
40 | __tcu_select_clk_div4(0); | 40 | __tcu_select_clk_div4(0); |
41 | 41 | ||
42 | latch = (JZ_EXTAL / 4 + (interval_in_ms>>1)) / interval_in_ms; | 42 | /* 12Mhz / 4 = 3Mhz */ |
43 | latch = interval_in_ms*1000 * 3; | ||
43 | 44 | ||
44 | REG_TCU_TCNT(0) = 0; | 45 | REG_TCU_TCNT(0) = 0; |
45 | REG_TCU_TDFR(0) = latch; | 46 | REG_TCU_TDFR(0) = latch; |