/* Using the fb_var_screeninfo in fb_info we set the aoi of this particular framebuffer. It is a light version of fsl_diu_set_par.  */
static int fsl_diu_set_aoi(struct fb_info *info)
/* Using the fb_var_screeninfo in fb_info we set the aoi of this particular framebuffer. It is a light version of fsl_diu_set_par.  */
static int fsl_diu_set_aoi(struct fb_info *info)
{
	struct fb_var_screeninfo *var = &info->var;
	struct mfb_info *mfbi = info->par;
	struct diu_ad *ad = mfbi->ad;
	ad->offset_xyi = cpu_to_le32((var->yoffset << 16) | var->xoffset);
	ad->offset_xyd = cpu_to_le32((mfbi->y_aoi_d << 16) | mfbi->x_aoi_d);
	return 0;
}