blob: d8a7b805696bb3ad3c0021ee74bd234136cc10a7 [file] [log] [blame]
eric.gao@rock-chips.comb7e4b8c2017-06-21 11:20:33 +08001/*
2 * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
3 * Author: Eric Gao <eric.gao@rock-chips.com>
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __RK_MIPI_H
8#define __RK_MIPI_H
9
10struct rk_mipi_priv {
11 ulong 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
23int rk_mipi_read_timing(struct udevice *dev,
24 struct display_timing *timing);
25
26int rk_mipi_dsi_enable(struct udevice *dev,
27 const struct display_timing *timing);
28
29int rk_mipi_phy_enable(struct udevice *dev);
30
31
32#endif