media: platform: mtk-mdp3: chip config split about component settings
authorMoudy Ho <moudy.ho@mediatek.com>
Mon, 27 Mar 2023 03:13:26 +0000 (11:13 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 11 Apr 2023 15:17:45 +0000 (17:17 +0200)
commitb59ed26fb48930902614915f185103e2ca54d7d7
tree9d48491e09bc2892516461b0f23d362b17b9a9ef
parent0cbfa7c9054c164528f2416099eb8f399df707b4
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>
drivers/media/platform/mediatek/mdp3/mdp_cfg_data.c
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cfg.h
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.h
drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.h