# CONFIG_SENSOR_DEVICE is not set
# CONFIG_SERIO is not set
# CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVMEM is not set
+CONFIG_DEVMEM=y
+CONFIG_DEVKMEM=y
CONFIG_SERIAL_ROCKCHIP=y
# CONFIG_HW_RANDOM is not set
CONFIG_I2C_CHARDEV=y
CONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_GENERIC is not set
CONFIG_BACKLIGHT_PWM=y
+CONFIG_LCD_GENERAL=y
+CONFIG_RK_TRSM=y
+CONFIG_RK32_LVDS=y
CONFIG_ROCKCHIP_RGA2=y
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
CONFIG_SND_USB_AUDIO=y
CONFIG_SND_SOC=y
CONFIG_SND_RK_SOC=y
-CONFIG_SND_RK_SOC_RT3224=y
CONFIG_HID_BATTERY_STRENGTH=y
CONFIG_HIDRAW=y
CONFIG_UHID=y
val = v_WIN0_EN(1) | v_WIN0_DATA_FMT(fmt_cfg);
lcdc_msk_reg(ctx, WIN0_CTRL0+off, mask,val);
- val = v_WIN0_VIR_STRIDE(win_data->line_size/(win_data->bpp>>3));
+ val = v_WIN0_VIR_STRIDE(win_data->fb_width);
lcdc_writel(ctx, WIN0_VIR+off, val);
- val = v_WIN0_ACT_WIDTH(win_data->ovl_width) |
- v_WIN0_ACT_HEIGHT(win_data->ovl_height);
+ val = v_WIN0_ACT_WIDTH(win_data->fb_width) |
+ v_WIN0_ACT_HEIGHT(win_data->fb_height);
lcdc_writel(ctx, WIN0_ACT_INFO+off, val);
- val = v_WIN0_DSP_WIDTH(win_data->fb_width) |
- v_WIN0_DSP_HEIGHT(win_data->fb_height);
+ val = v_WIN0_DSP_WIDTH(win_data->ovl_width) |
+ v_WIN0_DSP_HEIGHT(win_data->ovl_height);
lcdc_writel(ctx, WIN0_DSP_INFO+off, val);
val = v_WIN0_DSP_XST(xpos) |
v_WIN0_DSP_YST(ypos);
lcdc_writel(ctx, WIN0_DSP_ST+off, val);
- lcdc_writel(ctx, WIN0_YRGB_MST+off, win_data->dma_addr +win_data->buf_offsize );
+ lcdc_writel(ctx, WIN0_YRGB_MST+off, win_data->dma_addr );
if(win_id == 1)
rk3288_lcdc_alpha_cfg(ctx,win_id);