[COMMON] media: smfc: add support for HWJPEG compatible with Exynos7870
authorCho KyongHo <pullip.cho@samsung.com>
Fri, 11 Sep 2015 02:00:57 +0000 (11:00 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:19 +0000 (20:22 +0300)
The HWJPEG of Exynos7870 is equivalent to the HWJPEG of Exynos8890 but
HWFC. Therefore, it is required to distinguish them.

Change-Id: Ic4b82c2c0d1c4521d3adbf245ba71c2a67d45fd4
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc.c

index 519ceb02362f576f351c05b759066a0fdc867b0d..da27b340b6935759a9ad97845d61bba26cd79601 100644 (file)
@@ -761,6 +761,14 @@ static const struct smfc_device_data smfc_8890_data = {
        .burstlenth_bits = 4, /* 16 bytes: 1 burst */
 };
 
+static const struct smfc_device_data smfc_7870_data = {
+       .device_caps = V4L2_CAP_EXYNOS_JPEG_B2B_COMPRESSION
+                       | V4L2_CAP_EXYNOS_JPEG_NO_STREAMBASE_ALIGN
+                       | V4L2_CAP_EXYNOS_JPEG_NO_IMAGEBASE_ALIGN
+                       | V4L2_CAP_EXYNOS_JPEG_DECOMPRESSION,
+       .burstlenth_bits = 4, /* 16 bytes: 1 burst */
+};
+
 static const struct smfc_device_data smfc_7420_data = {
        .device_caps = V4L2_CAP_EXYNOS_JPEG_NO_STREAMBASE_ALIGN
                        | V4L2_CAP_EXYNOS_JPEG_NO_IMAGEBASE_ALIGN
@@ -783,6 +791,9 @@ static const struct of_device_id exynos_smfc_match[] = {
        }, {
                .compatible = "samsung,exynos8890-jpeg",
                .data = &smfc_8890_data,
+       }, {
+               .compatible = "samsung,exynos7870-jpeg",
+               .data = &smfc_7870_data,
        }, {
                .compatible = "samsung,exynos7420-jpeg",
                .data = &smfc_7420_data,