mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00

MT8195 and MT8188 share a similar MDP3 macro-block, with minor differences - as in, the latter supports a subset of the number of components supported by the former, but are otherwise handled in the same way. Add driver data for MT8188, reusing the already present MT8195 data where possible. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Fei Shao <fshao@chromium.org> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
24 lines
707 B
C
24 lines
707 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2023 MediaTek Inc.
|
|
* Author: Ping-Hsun Wu <ping-hsun.wu@mediatek.com>
|
|
*/
|
|
|
|
#ifndef __MTK_MDP3_CFG_H__
|
|
#define __MTK_MDP3_CFG_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
extern const struct mtk_mdp_driver_data mt8183_mdp_driver_data;
|
|
extern const struct mtk_mdp_driver_data mt8188_mdp_driver_data;
|
|
extern const struct mtk_mdp_driver_data mt8195_mdp_driver_data;
|
|
|
|
struct mdp_dev;
|
|
enum mtk_mdp_comp_id;
|
|
|
|
s32 mdp_cfg_get_id_inner(struct mdp_dev *mdp_dev, enum mtk_mdp_comp_id id);
|
|
enum mtk_mdp_comp_id mdp_cfg_get_id_public(struct mdp_dev *mdp_dev, s32 id);
|
|
bool mdp_cfg_comp_is_dummy(struct mdp_dev *mdp_dev, s32 inner_id);
|
|
|
|
#endif /* __MTK_MDP3_CFG_H__ */
|