summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-05 18:58:06 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-05 18:58:06 +0000
commite63904c7e97cefa5644d9b02b3960f880d110232 (patch)
treed1f0d4bad0ba8f12aa7ee1d912ed7068356d07cd /firmware
parent1b752474a6c1520cd6bbdff2c1703430c12e11e2 (diff)
Onda VX747 backlight: use a higher frequency to reduce flickering
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21671 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c
index 78ff786755..315432ef6b 100644
--- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c
+++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/backlight-onda_vx7X7.c
@@ -39,7 +39,6 @@ static void set_backlight(int val)
if(val == old_val)
return;
- /* Clock = 32 768 Hz */
__tcu_disable_pwm_output(BACKLIGHT_PWM);
__tcu_stop_counter(BACKLIGHT_PWM);
@@ -75,8 +74,8 @@ bool _backlight_init(void)
__tcu_set_pwm_output_shutdown_graceful(BACKLIGHT_PWM);
__tcu_disable_pwm_output(BACKLIGHT_PWM);
- __tcu_select_rtcclk(BACKLIGHT_PWM); /* 32.768 kHz */
- __tcu_select_clk_div1(BACKLIGHT_PWM);
+ __tcu_select_extalclk(BACKLIGHT_PWM); /* 12 MHz */
+ __tcu_select_clk_div64(BACKLIGHT_PWM); /* 187.5 kHz */
__tcu_mask_half_match_irq(BACKLIGHT_PWM);
__tcu_mask_full_match_irq(BACKLIGHT_PWM);