case DECON_PIXEL_FORMAT_RGBX_8888:
case DECON_PIXEL_FORMAT_BGRX_8888:
case DECON_PIXEL_FORMAT_RGB_565:
+ case DECON_PIXEL_FORMAT_BGR_565:
case DECON_PIXEL_FORMAT_NV12:
case DECON_PIXEL_FORMAT_NV12M:
case DECON_PIXEL_FORMAT_NV21:
fmt = IDMA_IMG_FORMAT_RGB565;
fmt_type = DPP_IMG_FORMAT_ARGB8888;
break;
+ case DECON_PIXEL_FORMAT_BGR_565:
+ if (p->is_comp)
+ fmt = IDMA_IMG_FORMAT_RGB565;
+ else
+ fmt = IDMA_IMG_FORMAT_BGR565;
+ fmt_type = DPP_IMG_FORMAT_ARGB8888;
+ break;
/* TODO: add ARGB1555 & ARGB4444 */
case DECON_PIXEL_FORMAT_ARGB_2101010:
fmt = IDMA_IMG_FORMAT_ARGB2101010;
void __dsim_dump(u32 id, struct dsim_regs *regs)
{
+ if (!regs->regs)
+ return;
+
/* change to updated register read mode (meaning: SHADOW in DECON) */
dsim_info("=== DSIM %d LINK SFR DUMP ===\n", id);
dsim_reg_enable_shadow_read(id, 0);