[COMMON] media: scaler: add scaler version 5.0
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Sat, 6 May 2017 05:36:17 +0000 (14:36 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:26 +0000 (14:28 +0900)
Change-Id: Ic3c6a0f6fe40cf6b79af69cbb05bb53758aebe24
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/media/platform/exynos/scaler/scaler-core.c

index 88bc066695b4c79a2c7d2c7913bdfc0b61829945..ab0157ad574b981f2937efd5e10855251e486b9f 100644 (file)
@@ -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,