Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] s5p-mfc: Add support for MFC v8 available in Exynos 5433 SoCs

Exynos5433 SoC has MFC v8 hardware module, but it has more
complex clock hierarchy, so a new compatible is added.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Marek Szyprowski and committed by
Mauro Carvalho Chehab
00361133 1bce6fb3

+15
+1
Documentation/devicetree/bindings/media/s5p-mfc.txt
··· 12 12 (b) "samsung,mfc-v6" for MFC v6 present in Exynos5 SoCs 13 13 (c) "samsung,mfc-v7" for MFC v7 present in Exynos5420 SoC 14 14 (d) "samsung,mfc-v8" for MFC v8 present in Exynos5800 SoC 15 + (e) "samsung,exynos5433-mfc" for MFC v8 present in Exynos5433 SoC 15 16 16 17 - reg : Physical base address of the IP registers and length of memory 17 18 mapped region.
+14
drivers/media/platform/s5p-mfc/s5p_mfc.c
··· 1531 1531 .num_clocks = 1, 1532 1532 }; 1533 1533 1534 + static struct s5p_mfc_variant mfc_drvdata_v8_5433 = { 1535 + .version = MFC_VERSION_V8, 1536 + .version_bit = MFC_V8_BIT, 1537 + .port_num = MFC_NUM_PORTS_V8, 1538 + .buf_size = &buf_size_v8, 1539 + .buf_align = &mfc_buf_align_v8, 1540 + .fw_name[0] = "s5p-mfc-v8.fw", 1541 + .clk_names = {"pclk", "aclk", "aclk_xiu"}, 1542 + .num_clocks = 3, 1543 + }; 1544 + 1534 1545 static const struct of_device_id exynos_mfc_match[] = { 1535 1546 { 1536 1547 .compatible = "samsung,mfc-v5", ··· 1555 1544 }, { 1556 1545 .compatible = "samsung,mfc-v8", 1557 1546 .data = &mfc_drvdata_v8, 1547 + }, { 1548 + .compatible = "samsung,exynos5433-mfc", 1549 + .data = &mfc_drvdata_v8_5433, 1558 1550 }, 1559 1551 {}, 1560 1552 };