summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-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);