blob: 61920f23ad96347a69ec9936da6f4d0e2365a9b3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
eric.gao@rock-chips.com36602eb2017-06-21 11:20:33 +08002/*
3 * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
4 * Author: Eric Gao <eric.gao@rock-chips.com>
eric.gao@rock-chips.com36602eb2017-06-21 11:20:33 +08005 */
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