From: Ming Qian <ming.qian@oss.nxp.com>
Support the upgraded JPEG encoder v1 found on i.MX952 SoC.
V1 hardware uses enhanced descriptors with mode, quality, and
threshold fields, configured in a single phase via setup_desc
callback.
V0 hardware continues using the existing two-phase manual configuration.
---
Change logs
v4
- Use devm_pm_runtime_enable() helper
- Correct the typo in the title
v3
- Split the changes into separate patches
v2
- Improve commit message
- Use GENMASK_U32
- make mxc_jpeg_get_version() static
- Check version in probe()
- Remove noise that update copyright years
Ming Qian (4):
media: imx-jpeg: Simplify descriptor initialization with memset
media: imx-jpeg: Use devm_pm_runtime_enable() helper
media: imx-jpeg: Add encoder ops layer for hardware abstraction
media: imx-jpeg: Add support for encoder v1 descriptor configuration
.../media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h | 1 +
.../media/platform/nxp/imx-jpeg/mxc-jpeg.c | 117 +++++++++++++++---
.../media/platform/nxp/imx-jpeg/mxc-jpeg.h | 22 ++++
3 files changed, 123 insertions(+), 17 deletions(-)
base-commit: c824345288d11e269ce41b36c105715bc2286050
prerequisite-patch-id: 0000000000000000000000000000000000000000
--
2.52.0