mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 05:31:37 -04:00
In the implementation and integration of the SoC, the DW DisplayPort hardware block can be configured to work in single, dual, quad pixel mode on differnt platforms, so make the pixel mode set by plat_data to support the upcoming rk3576 variant. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patch.msgid.link/20260206010421.443605-3-andyshrk@163.com
28 lines
495 B
C
28 lines
495 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (c) 2025 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
|
|
#ifndef __DW_DP__
|
|
#define __DW_DP__
|
|
|
|
#include <linux/device.h>
|
|
|
|
struct drm_encoder;
|
|
struct dw_dp;
|
|
|
|
enum {
|
|
DW_DP_MP_SINGLE_PIXEL,
|
|
DW_DP_MP_DUAL_PIXEL,
|
|
DW_DP_MP_QUAD_PIXEL,
|
|
};
|
|
|
|
struct dw_dp_plat_data {
|
|
u32 max_link_rate;
|
|
u8 pixel_mode;
|
|
};
|
|
|
|
struct dw_dp *dw_dp_bind(struct device *dev, struct drm_encoder *encoder,
|
|
const struct dw_dp_plat_data *plat_data);
|
|
#endif /* __DW_DP__ */
|