diff options
author | Dave Airlie <airlied@redhat.com> | 2021-02-05 09:25:20 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2021-02-05 09:25:26 +1000 |
commit | 54c820d05ee8156b1379ca0efd011b77e23cabb2 (patch) | |
tree | ece3ed5cca3a8ce152a2999fa470e49d5fba1dbf /include | |
parent | ce7c3bded64abbaabb1146803d0ce09694dc95e0 (diff) | |
parent | 738ed4156fbac6f6eb84c23b95cf25aa57707332 (diff) | |
download | linux-54c820d05ee8156b1379ca0efd011b77e23cabb2.tar.gz |
Merge tag 'mediatek-drm-next-5.12' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-next
Mediatek DRM Next for Linux 5.12
1. Decouple Mediatek DRM sub driver
2. Share mtk mutex driver for both DRM and MDP
3. Add support for SoC MT8183
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210204151750.7550-1-chunkuang.hu@kernel.org
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/soc/mediatek/mtk-mutex.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/soc/mediatek/mtk-mutex.h b/include/linux/soc/mediatek/mtk-mutex.h new file mode 100644 index 000000000000..6fe4ffbde290 --- /dev/null +++ b/include/linux/soc/mediatek/mtk-mutex.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2015 MediaTek Inc. + */ + +#ifndef MTK_MUTEX_H +#define MTK_MUTEX_H + +struct regmap; +struct device; +struct mtk_mutex; + +struct mtk_mutex *mtk_mutex_get(struct device *dev); +int mtk_mutex_prepare(struct mtk_mutex *mutex); +void mtk_mutex_add_comp(struct mtk_mutex *mutex, + enum mtk_ddp_comp_id id); +void mtk_mutex_enable(struct mtk_mutex *mutex); +void mtk_mutex_disable(struct mtk_mutex *mutex); +void mtk_mutex_remove_comp(struct mtk_mutex *mutex, + enum mtk_ddp_comp_id id); +void mtk_mutex_unprepare(struct mtk_mutex *mutex); +void mtk_mutex_put(struct mtk_mutex *mutex); +void mtk_mutex_acquire(struct mtk_mutex *mutex); +void mtk_mutex_release(struct mtk_mutex *mutex); + +#endif /* MTK_MUTEX_H */ |