summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-03-01 15:27:05 +0100
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:42:51 +0900
commit62d061240943aaf3fec3215bf0608732f4ce5ad5 (patch)
treefd1396fb2a271c796669460b17eb04c1ce82f38c /drivers/gpu
parent1e0f39c9288513a319101b009d400f5d71065aa1 (diff)
downloadlinux-3.10-62d061240943aaf3fec3215bf0608732f4ce5ad5.tar.gz
linux-3.10-62d061240943aaf3fec3215bf0608732f4ce5ad5.tar.bz2
linux-3.10-62d061240943aaf3fec3215bf0608732f4ce5ad5.zip
gpu: drm: exynos: fimd: Parse display physical size from DT
This patch adds a temporary solution for getting physical display size from device tree by parsing driver-specific properties in display node. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index 0d7e42b4768..e8465f56901 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -932,6 +932,12 @@ static int fimd_probe(struct platform_device *pdev)
DRM_ERROR("failed: of_get_fb_videomode() : %d\n", ret);
return ret;
}
+
+ /* FIXME */
+ of_property_read_u32(display_np, "samsung,panel-width-mm",
+ &pdata->panel.width_mm);
+ of_property_read_u32(display_np, "samsung,panel-height-mm",
+ &pdata->panel.height_mm);
} else {
pdata = dev->platform_data;
if (!pdata) {