1 #ifndef __ROCKCHIP_DP_CORE_H__
2 #define __ROCKCHIP_DP_CORE_H__
4 /* dp grf register offset */
5 #define GRF_SOC_CON9 0x6224
6 #define GRF_SOC_CON26 0x6268
9 #define UPHY_SEL_MASK BIT(19)
11 #define DPTX_HPD_SEL (3 << 12)
12 #define DPTX_HPD_DEL (2 << 12)
13 #define DPTX_HPD_SEL_MASK (3 << 28)
15 #define DP_SEL_VOP_LIT BIT(12)
16 #define MAX_FW_WAIT_SECS 64
17 #define EDID_BLOCK_SIZE 128
18 #define CDN_DP_FIRMWARE "cdn/dptx.bin"
21 struct fb_videomode *mode;
33 struct dp_disp_info disp_info;
36 struct notifier_block fb_notif;
41 int cdn_dp_fb_register(struct platform_device *pdev, void *dp);
42 void hpd_change(struct device *dev, int lanes);