From e95d5156054cbbeeca825db8619184adbfffdda2 Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Sat, 6 May 2017 14:36:17 +0900 Subject: [PATCH] [COMMON] media: scaler: add scaler version 5.0 Change-Id: Ic3c6a0f6fe40cf6b79af69cbb05bb53758aebe24 Signed-off-by: Janghyuck Kim --- .../platform/exynos/scaler/scaler-core.c | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/media/platform/exynos/scaler/scaler-core.c b/drivers/media/platform/exynos/scaler/scaler-core.c index 88bc066695b4..ab0157ad574b 100644 --- a/drivers/media/platform/exynos/scaler/scaler-core.c +++ b/drivers/media/platform/exynos/scaler/scaler-core.c @@ -281,6 +281,7 @@ static const struct sc_fmt sc_formats[] = { /* must specify in revers order of SCALER_VERSION(xyz) */ static const u32 sc_version_table[][2] = { + { 0x02000000, SCALER_VERSION(5, 0, 0) }, /* SC_POLY */ { 0x80060007, SCALER_VERSION(4, 2, 0) }, /* SC_BI */ { 0x0100000f, SCALER_VERSION(4, 0, 1) }, /* SC_POLY */ { 0xA0000013, SCALER_VERSION(4, 0, 1) }, @@ -299,6 +300,28 @@ static const u32 sc_version_table[][2] = { static const struct sc_variant sc_variant[] = { { + .limit_input = { + .min_w = 16, + .min_h = 16, + .max_w = 8192, + .max_h = 8192, + }, + .limit_output = { + .min_w = 4, + .min_h = 4, + .max_w = 8192, + .max_h = 8192, + }, + .version = SCALER_VERSION(5, 0, 0), + .sc_up_max = SCALE_RATIO_CONST(1, 8), + .sc_down_min = SCALE_RATIO_CONST(4, 1), + .sc_up_swmax = SCALE_RATIO_CONST(1, 64), + .sc_down_swmin = SCALE_RATIO_CONST(16, 1), + .blending = 0, + .prescale = 0, + .ratio_20bit = 1, + .initphase = 1, + }, { .limit_input = { .min_w = 16, .min_h = 16, -- 2.20.1