static struct rk29_bl_info rk29_bl_info = {
.pwm_id = BL_PWM,
- .min_brightness=20,
+ .min_brightness=200,
.max_brightness=255,
.brightness_mode = BRIGHTNESS_MODE_CONIC,
.bl_ref = PWM_EFFECT_VALUE,
}
rk3188_lcdc_read_reg_defalut_cfg(lcdc_dev);
- #ifdef CONFIG_ARCH_RK3188
+ #if defined(CONFIG_ARCH_RK3188)
if(lcdc_dev->id == 0)
{
#if defined(CONFIG_LCDC0_IO_18V)
v_VASP(screen->vsync_len + screen->upper_margin));
}
spin_unlock(&lcdc_dev->reg_lock);
- #ifdef CONFIG_ARCH_RK3026
+ #if defined(CONFIG_ARCH_RK3026)
if(dev_drv->screen0->type == SCREEN_RGB) //iomux for RGB screen
{
iomux_set(LCDC0_DCLK);
#include "../transmitter/rk610_lcd.h"
#endif
-#if defined(CONFIG_RK610_LVDS) || defined(CONFIG_RK616_LVDS)
+#if defined(CONFIG_RK610_LVDS) || defined(CONFIG_RK616_LVDS) || defined(CONFIG_RK3026_LVDS)
#define SCREEN_TYPE SCREEN_LVDS
#else
#define SCREEN_TYPE SCREEN_RGB
#define LCD_WIDTH 216
#define LCD_HEIGHT 135
/* Other */
-#if defined(CONFIG_RK610_LVDS) || defined(CONFIG_RK616_LVDS)
+#if defined(CONFIG_RK610_LVDS) || defined(CONFIG_RK616_LVDS) || defined(CONFIG_RK3026_LVDS)
#define DCLK_POL 1
#else
#define DCLK_POL 0
static void rk3026_output_lvds(rk_screen *screen)
{
+
u32 val =0;
/*
val |= (LVDS_DATA_SEL | LVDS_OUTPUT_FORMAT(3) | LVDS_CBG_PWR_EN | LVDS_PLL_PWR_EN |
LVDS_OUTPUT_EN | LVDS_CBS_COL_SEL(3) | LVDS_SWING_SEL) << 16;
-
+ val = LVDS_OUT_CONFIG;
lvds_writel(val,CRU_LVDS_CON0);
return;
static int rk3026_lvds_set_param(rk_screen *screen,bool enable)
{
+
if(OUT_ENABLE == enable){
switch(screen->type){
case SCREEN_LVDS:
rk3026_output_lvttl(screen);
break;
default:
- printk("%s>>>>LVDS not support this screen type %d,power down LVDS\n",__func__,screen->type);
+ printk("%s>>>>LVDS not support this screen type %d,power down LVDS\n",__func__,screen->type);
rk3026_output_disable();
break;
}
static int rk3026_lvds_probe(struct platform_device *pdev)
{
rk_screen *screen = NULL;
-
screen = rk_fb_get_prmry_screen();
if(!screen)
{
#define LVDS_INPUT_FORMAT (1<<3)
#define LVDS_OUTPUT_FORMAT(x) (((x)&3)<<1)
#define LVDS_DATA_SEL (1<<0)
+#define LVDS_OUT_CONFIG 0xffff088a
enum{
OUT_DISABLE=0,