[COMMON] media: scaler: add version information
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Thu, 15 Mar 2018 02:11:10 +0000 (11:11 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:17 +0000 (20:22 +0300)
Change-Id: Iebd38f9623354a45ea75dc88c0bdcef50fdc944c
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/media/platform/exynos/scaler/scaler-core.c

index ac361f43f69541e97f0095874e3e60afb34f37c8..b4468e6cdc252c269da4ee8a38eb64dd54e126b3 100644 (file)
@@ -328,6 +328,7 @@ static const struct sc_fmt sc_formats[] = {
 
 /* must specify in revers order of SCALER_VERSION(xyz) */
 static const u32 sc_version_table[][2] = {
+       { 0x04000000, SCALER_VERSION(5, 1, 0) }, /* SC_POLY */
        { 0x02000100, SCALER_VERSION(5, 0, 1) }, /* SC_POLY */
        { 0x02000000, SCALER_VERSION(5, 0, 0) },
        { 0x80060007, SCALER_VERSION(4, 2, 0) }, /* SC_BI */
@@ -348,6 +349,29 @@ 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, 1, 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,
+               .pixfmt_10bit           = 1,
+       }, {
                .limit_input = {
                        .min_w          = 16,
                        .min_h          = 16,