1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
4  * Author: Eric Gao <eric.gao@rock-chips.com>
5  */
6 
7 #ifndef __RK_MIPI_H
8 #define __RK_MIPI_H
9 
10 struct rk_mipi_priv {
11 	uintptr_t regs;
12 	void *grf;
13 	struct udevice *panel;
14 	struct mipi_dsi *dsi;
15 	u32 ref_clk;
16 	u32 sys_clk;
17 	u32 pix_clk;
18 	u32 phy_clk;
19 	u32 txbyte_clk;
20 	u32 txesc_clk;
21 };
22 
23 int rk_mipi_read_timing(struct udevice *dev,
24 			       struct display_timing *timing);
25 
26 int rk_mipi_dsi_enable(struct udevice *dev,
27 			      const struct display_timing *timing);
28 
29 int rk_mipi_phy_enable(struct udevice *dev);
30 
31 
32 #endif
33