mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
media: platform: mtk-mdp3: chip config split about subcomponents
Integrate subcomponent related information into specific config file for further multi-chip compatibility. Signed-off-by: Moudy Ho <moudy.ho@mediatek.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
@@ -144,12 +144,24 @@ static const struct mdp_comp_data mt8183_mdp_comp_data[MDP_MAX_COMP_COUNT] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct of_device_id mt8183_sub_comp_dt_ids[] = {
|
||||
{
|
||||
.compatible = "mediatek,mt8183-mdp3-wdma",
|
||||
.data = (void *)MDP_COMP_TYPE_PATH,
|
||||
}, {
|
||||
.compatible = "mediatek,mt8183-mdp3-wrot",
|
||||
.data = (void *)MDP_COMP_TYPE_PATH,
|
||||
},
|
||||
{}
|
||||
};
|
||||
|
||||
const struct mtk_mdp_driver_data mt8183_mdp_driver_data = {
|
||||
.mdp_probe_infra = mt8183_mdp_probe_infra,
|
||||
.mdp_cfg = &mt8183_plat_cfg,
|
||||
.mdp_mutex_table_idx = mt8183_mutex_idx,
|
||||
.comp_data = mt8183_mdp_comp_data,
|
||||
.comp_data_len = ARRAY_SIZE(mt8183_mdp_comp_data),
|
||||
.mdp_sub_comp_dt_ids = mt8183_sub_comp_dt_ids,
|
||||
};
|
||||
|
||||
s32 mdp_cfg_get_id_inner(struct mdp_dev *mdp_dev, enum mtk_mdp_comp_id id)
|
||||
|
||||
Reference in New Issue
Block a user