1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2016 Chris Zhong <zyw@rock-chips.com>
4 * Copyright (C) 2016 ROCKCHIP, Inc.
10 #include <drm/drm_dp_helper.h>
11 #include <drm/drm_panel.h>
12 #include <drm/drm_probe_helper.h>
14 #include "rockchip_drm_drv.h"
25 enum audio_format format
;
31 enum vic_pxl_encoding_format
{
44 enum vic_pxl_encoding_format color_fmt
;
47 struct cdn_firmware_header
{
48 u32 size_bytes
; /* size of the entire header+image(s) in bytes */
49 u32 header_size
; /* size of just the header in bytes */
50 u32 iram_size
; /* size of iram */
51 u32 dram_size
; /* size of dram */
55 struct cdn_dp_device
*dp
;
56 struct notifier_block event_nb
;
57 struct extcon_dev
*extcon
;
64 struct cdn_dp_device
{
66 struct drm_device
*drm_dev
;
67 struct drm_connector connector
;
68 struct drm_encoder encoder
;
69 struct drm_display_mode mode
;
70 struct platform_device
*audio_pdev
;
71 struct work_struct event_work
;
79 const struct firmware
*fw
; /* cdn dp firmware */
80 unsigned int fw_version
; /* cdn fw version */
87 struct clk
*spdif_clk
;
89 struct reset_control
*spdif_rst
;
90 struct reset_control
*dptx_rst
;
91 struct reset_control
*apb_rst
;
92 struct reset_control
*core_rst
;
93 struct audio_info audio_info
;
94 struct video_info video_info
;
95 struct cdn_dp_port
*port
[MAX_PHY
];
98 unsigned int max_rate
;
102 u8 dpcd
[DP_RECEIVER_CAP_SIZE
];
105 #endif /* _CDN_DP_CORE_H */