aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/media/exynos-jpeg-codec.txt11
-rw-r--r--drivers/media/platform/s5p-jpeg/jpeg-core.c12
2 files changed, 22 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/media/exynos-jpeg-codec.txt b/Documentation/devicetree/bindings/media/exynos-jpeg-codec.txt
new file mode 100644
index 000000000000..937b755baf8f
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/exynos-jpeg-codec.txt
@@ -0,0 +1,11 @@
1Samsung S5P/EXYNOS SoC series JPEG codec
2
3Required properties:
4
5- compatible : should be one of:
6 "samsung,s5pv210-jpeg", "samsung,exynos4210-jpeg";
7- reg : address and length of the JPEG codec IP register set;
8- interrupts : specifies the JPEG codec IP interrupt;
9- clocks : should contain the JPEG codec IP gate clock specifier, from the
10 common clock bindings;
11- clock-names : should contain "jpeg" entry.
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c
index 091b06af84ea..a4bff8ec982e 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-core.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c
@@ -17,6 +17,7 @@
17#include <linux/io.h> 17#include <linux/io.h>
18#include <linux/kernel.h> 18#include <linux/kernel.h>
19#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/of.h>
20#include <linux/platform_device.h> 21#include <linux/platform_device.h>
21#include <linux/pm_runtime.h> 22#include <linux/pm_runtime.h>
22#include <linux/slab.h> 23#include <linux/slab.h>
@@ -1428,10 +1429,20 @@ static const struct dev_pm_ops s5p_jpeg_pm_ops = {
1428 .runtime_resume = s5p_jpeg_runtime_resume, 1429 .runtime_resume = s5p_jpeg_runtime_resume,
1429}; 1430};
1430 1431
1432#ifdef CONFIG_OF
1433static const struct of_device_id s5p_jpeg_of_match[] = {
1434 { .compatible = "samsung,s5pv210-jpeg" },
1435 { .compatible = "samsung,exynos4210-jpeg" },
1436 { /* sentinel */ },
1437};
1438MODULE_DEVICE_TABLE(of, s5p_jpeg_of_match);
1439#endif
1440
1431static struct platform_driver s5p_jpeg_driver = { 1441static struct platform_driver s5p_jpeg_driver = {
1432 .probe = s5p_jpeg_probe, 1442 .probe = s5p_jpeg_probe,
1433 .remove = s5p_jpeg_remove, 1443 .remove = s5p_jpeg_remove,
1434 .driver = { 1444 .driver = {
1445 .of_match_table = of_match_ptr(s5p_jpeg_of_match),
1435 .owner = THIS_MODULE, 1446 .owner = THIS_MODULE,
1436 .name = S5P_JPEG_M2M_NAME, 1447 .name = S5P_JPEG_M2M_NAME,
1437 .pm = &s5p_jpeg_pm_ops, 1448 .pm = &s5p_jpeg_pm_ops,
@@ -1443,4 +1454,3 @@ module_platform_driver(s5p_jpeg_driver);
1443MODULE_AUTHOR("Andrzej Pietrasiewicz <andrzej.p@samsung.com>"); 1454MODULE_AUTHOR("Andrzej Pietrasiewicz <andrzej.p@samsung.com>");
1444MODULE_DESCRIPTION("Samsung JPEG codec driver"); 1455MODULE_DESCRIPTION("Samsung JPEG codec driver");
1445MODULE_LICENSE("GPL"); 1456MODULE_LICENSE("GPL");
1446