[PORT FROM R2] FB logo: remove the hard code during draw boot logo
authorBenoit Romieu <benoit.romieu@intel.com>
Fri, 27 Jan 2012 10:43:14 +0000 (11:43 +0100)
committerbuildbot <buildbot@intel.com>
Mon, 30 Jan 2012 19:55:28 +0000 (11:55 -0800)
BZ: 16563

Borqs-Id: ee0a5544ba5d57edbd50efb9584def0041ad0137
Borqs-Contact: b094 <leo.he@borqs.com>
Commit-Date: Wed Sep 14 02:56:03 PDT 2011

borqsbtx: 3347
The PR2/PR3 framebuffer geometry issue already fixed,
so remove the hard code.

Change-Id: I99213fd0e1aacc276bdea9e689b21b265b4e2652
Orig-Change-Id: I73bab4a65ba8d93b543ce66d921c7151a7342a11
Signed-off-by: Leo He <leo.he@borqs.com>
Reviewed-on: http://android.intel.com:8080/33062
Reviewed-by: Chotard, Celine <celine.chotard@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/video/fbmem.c

index 5aac00e..864647b 100644 (file)
@@ -493,8 +493,13 @@ static int fb_show_logo_line(struct fb_info *info, int rotate,
                fb_set_logo(info, logo, logo_new, fb_logo.depth);
        }
 
+#ifdef CONFIG_LOGO_CENTERED
+       image.dx = (info->var.xres - (n * logo->width)) / 2;
+       image.dy = (info->var.yres - logo->height) / 2;
+#else
        image.dx = 0;
        image.dy = y;
+#endif
        image.width = logo->width;
        image.height = logo->height;