eric.gao@rock-chips.com | 36602eb | 2017-06-21 11:20:33 +0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 10 | struct rk_mipi_priv { |
eric.gao@rock-chips.com | f680a91 | 2017-06-21 11:22:01 +0800 | [diff] [blame] | 11 | uintptr_t regs; |
eric.gao@rock-chips.com | 36602eb | 2017-06-21 11:20:33 +0800 | [diff] [blame] | 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 |