diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2015-04-07 09:59:39 +0300 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-04-13 05:39:41 +0300 |
commit | 3cabaf7ea7044d6a75fd76e2fc53304a55abe965 (patch) | |
tree | 0e3e9eed4bb33e4a5121e5eed2b93ee3674e9434 /drivers/gpu/drm/exynos/exynos_drm_drv.h | |
parent | cb8a3db29f8fa8186185ba716f3f485a7f3fabe7 (diff) | |
download | linux-3cabaf7ea7044d6a75fd76e2fc53304a55abe965.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_drv.h')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 8e925838d047..e12ecb5d5d9a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -61,6 +61,8 @@ enum exynos_drm_output_type { * @crtc_height: window height to be displayed (hardware screen). * @mode_width: width of screen mode. * @mode_height: height of screen mode. + * @h_ratio: horizontal scaling ratio, 16.16 fixed point + * @v_ratio: vertical scaling ratio, 16.16 fixed point * @refresh: refresh rate. * @scan_flag: interlace or progressive way. * (it could be DRM_MODE_FLAG_*) @@ -97,6 +99,8 @@ struct exynos_drm_plane { unsigned int crtc_height; unsigned int mode_width; unsigned int mode_height; + unsigned int h_ratio; + unsigned int v_ratio; unsigned int refresh; unsigned int scan_flag; unsigned int bpp; |