rk30: ds1001b: remove PWM_APB_PRE_DIV on rk2818_backlight.h
author黄涛 <huangtao@rock-chips.com>
Sun, 30 Dec 2012 10:20:27 +0000 (18:20 +0800)
committer黄涛 <huangtao@rock-chips.com>
Sun, 30 Dec 2012 10:20:27 +0000 (18:20 +0800)
arch/arm/mach-rk30/board-rk30-ds1001b.c
drivers/video/backlight/rk2818_backlight.h

index 0fa8d94dacc26be5389b80be4777adf869e55fe4..9c2b64fe1acfc32078724eee168499e8285fdee2 100644 (file)
@@ -646,7 +646,8 @@ static struct rk29_bl_info rk29_bl_info = {
        .io_deinit = rk29_backlight_io_deinit,
        .pwm_suspend = rk29_backlight_pwm_suspend,
        .pwm_resume = rk29_backlight_pwm_resume,
-        .min_brightness = 60
+       .min_brightness = 60,
+       .pre_div = 20000,
 };
 
 static struct platform_device rk29_device_backlight = {
index e0804ae839cf4a6f615a6cba2a9fd2ccf4222a9e..0ce4039e9a9d63a74c14b9b6d3de22f10f8e67e7 100644 (file)
 
 
 #define PWM_DIV              PWM_DIV2
-#ifdef CONFIG_MACH_RK30_DS1001B
-#define PWM_APB_PRE_DIV      20000
-#else
 #define PWM_APB_PRE_DIV      1000
-#endif
 #define BL_STEP              255
 
 #endif /* __ASM_ARCH_RK2818_BACKLIGHT_H */