CHROMIUM: drm/exynos: fbdev: Set visible dimensions correctly
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 3 Jan 2013 02:37:06 +0000 (10:37 +0800)
committerChromeBot <chrome-bot@google.com>
Sat, 5 Jan 2013 08:11:51 +0000 (00:11 -0800)
commitb1cbd07882e4d1e160c64153ccd42b4e09394e7d
tree44a1e59399c99aa2c1c27c44e7a8cb013b0ecf6e
parent3970c731be7ccbf0b021afc1c14a9b437c522a3f
CHROMIUM: drm/exynos: fbdev: Set visible dimensions correctly

When probing the fbdev, the drm_fb_helper may specify a visible area
(fb_width x fb_height) than is smaller than the total requested
framebuffer area (surface_width x surface_height).

Use these fb dimensions when setting the visible area in the "variable"
portion of the fb info.  This is consistent with other drm fbdev drivers
(i915, radeon, nouveau).

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=none
TEST=splash screen displayed properly at boot w/ no HDMI
TEST=splash screen displayed properly at boot w/ HDMI

Change-Id: Id209ea395a7e5eb993632ae4cfe4263b5af18138
Reviewed-on: https://gerrit.chromium.org/gerrit/40443
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Queue: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/gpu/drm/exynos/exynos_drm_fbdev.c