blob: de6ac52eb37c55ade766aed91a815181aceb82ef [file] [log] [blame]
eric.gao@rock-chips.com36602eb2017-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 {
eric.gao@rock-chips.comf680a912017-06-21 11:22:01 +080011 uintptr_t regs;
eric.gao@rock-chips.com36602eb2017-06-21 11:20:33 +080012 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