drm/exynos: add ratio calculation
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 7 Apr 2015 06:59:39 +0000 (15:59 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 13 Apr 2015 02:39:41 +0000 (11:39 +0900)
commit3cabaf7ea7044d6a75fd76e2fc53304a55abe965
tree0e3e9eed4bb33e4a5121e5eed2b93ee3674e9434
parentcb8a3db29f8fa8186185ba716f3f485a7f3fabe7
drm/exynos: add ratio calculation

Calculation ratio from exynos_drm plane codes, then each hw drivers can
use it without extra operation. Also this fixes width and height of
source used for actual crtc shown via screen.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.h
drivers/gpu/drm/exynos/exynos_drm_plane.c
drivers/gpu/drm/exynos/exynos_mixer.c