summaryrefslogtreecommitdiff
path: root/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h
diff options
context:
space:
mode:
authorMoudy Ho <moudy.ho@mediatek.com>2023-03-27 06:13:26 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-04-11 18:17:45 +0300
commitb59ed26fb48930902614915f185103e2ca54d7d7 (patch)
tree9d48491e09bc2892516461b0f23d362b17b9a9ef /drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h
parent0cbfa7c9054c164528f2416099eb8f399df707b4 (diff)
downloadlinux-b59ed26fb48930902614915f185103e2ca54d7d7.tar.xz
media: platform: mtk-mdp3: chip config split about component settings
For different chips, different types and numbers of components are configured in the MDP3 to achieve the desired application, which will cause ID compatibility problems in the same driver. Subdivide the component ID into two kinds: 1. public_id (compatible with other chips) 2. inner_id (what the current chip actually owns) In addition, the chip configuration related structures of MDP3 components are integrated into specific file. Signed-off-by: Moudy Ho <moudy.ho@mediatek.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h')
-rw-r--r--drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h
index 2ef5fbc4f25a..0c398ef75616 100644
--- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h
+++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h
@@ -54,6 +54,8 @@ struct mtk_mdp_driver_data {
const struct of_device_id *mdp_probe_infra;
const struct mdp_platform_config *mdp_cfg;
const u32 *mdp_mutex_table_idx;
+ const struct mdp_comp_data *comp_data;
+ unsigned int comp_data_len;
};
struct mdp_dev {