Commit 101620db authored by Aakarsh Jain's avatar Aakarsh Jain Committed by Hans Verkuil

media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC

Commit 5441e9da ("[media] s5p-mfc: Core support for MFC v7")
which adds mfc v7 support for Exynos3250 and use the same compatible
string as used by Exynos5240 but both the IPs are a bit different in
terms of IP clock.
Add variant driver data based on the new compatible string
"samsung,exynos3250-mfc" for Exynos3250 SoC.
Suggested-by: default avatarAlim Akhtar <alim.akhtar@samsung.com>
Fixes: 5441e9da ("[media] s5p-mfc: Core support for MFC v7")
Signed-off-by: default avatarAakarsh Jain <aakarsh.jain@samsung.com>
Reviewed-by: default avatarAlim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 3ab848be
...@@ -1585,6 +1585,16 @@ static struct s5p_mfc_buf_size buf_size_v7 = { ...@@ -1585,6 +1585,16 @@ static struct s5p_mfc_buf_size buf_size_v7 = {
}; };
static struct s5p_mfc_variant mfc_drvdata_v7 = { static struct s5p_mfc_variant mfc_drvdata_v7 = {
.version = MFC_VERSION_V7,
.version_bit = MFC_V7_BIT,
.port_num = MFC_NUM_PORTS_V7,
.buf_size = &buf_size_v7,
.fw_name[0] = "s5p-mfc-v7.fw",
.clk_names = {"mfc"},
.num_clocks = 1,
};
static struct s5p_mfc_variant mfc_drvdata_v7_3250 = {
.version = MFC_VERSION_V7, .version = MFC_VERSION_V7,
.version_bit = MFC_V7_BIT, .version_bit = MFC_V7_BIT,
.port_num = MFC_NUM_PORTS_V7, .port_num = MFC_NUM_PORTS_V7,
...@@ -1661,6 +1671,9 @@ static const struct of_device_id exynos_mfc_match[] = { ...@@ -1661,6 +1671,9 @@ static const struct of_device_id exynos_mfc_match[] = {
}, { }, {
.compatible = "samsung,mfc-v7", .compatible = "samsung,mfc-v7",
.data = &mfc_drvdata_v7, .data = &mfc_drvdata_v7,
}, {
.compatible = "samsung,exynos3250-mfc",
.data = &mfc_drvdata_v7_3250,
}, { }, {
.compatible = "samsung,mfc-v8", .compatible = "samsung,mfc-v8",
.data = &mfc_drvdata_v8, .data = &mfc_drvdata_v8,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment