Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1664054
| From | Thierry Escande <thierry.escande@collabora.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 1/6] [media] s5p-jpeg: Reset the Codec before doing a soft reset |
| Date | 2017-06-12 19:20 +0200 |
| Message-ID | <tRBar-4Z3-31@gated-at.bofh.it> (permalink) |
| References | <tRBar-4Z3-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Abhilash Kesavan <a.kesavan@samsung.com> This patch resets the encoding and decoding register bits before doing a soft reset. Signed-off-by: Tony K Nadackal <tony.kn@samsung.com> Signed-off-by: Thierry Escande <thierry.escande@collabora.com> --- drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c index a1d823a..9ad8f6d 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c @@ -21,6 +21,10 @@ void exynos4_jpeg_sw_reset(void __iomem *base) unsigned int reg; reg = readl(base + EXYNOS4_JPEG_CNTL_REG); + writel(reg & ~(EXYNOS4_DEC_MODE | EXYNOS4_ENC_MODE), + base + EXYNOS4_JPEG_CNTL_REG); + + reg = readl(base + EXYNOS4_JPEG_CNTL_REG); writel(reg & ~EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); udelay(100); -- 2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 1/6] [media] s5p-jpeg: Reset the Codec before doing a soft reset Thierry Escande <thierry.escande@collabora.com> - 2017-06-12 19:20 +0200
csiph-web