From 017090d6293657abe552d3487e1a047b269dd7b6 Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Fri, 11 Sep 2015 11:00:57 +0900 Subject: [PATCH] [COMMON] media: smfc: add support for HWJPEG compatible with Exynos7870 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 --- drivers/media/platform/exynos/smfc/smfc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index 519ceb02362f..da27b340b693 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -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, -- 2.20.1