blob: dd9adf90abf344afa28aace42ecee34e51c589b3 [file] [log] [blame]
Sachin Bhayareeeb88892018-01-02 16:36:01 +05301/* Copyright (c) 2013, 2018, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13#ifndef DSI_IO_V2_H
14#define DSI_IO_V2_H
15
16#include "mdss_panel.h"
17
18void msm_dsi_ahb_ctrl(int enable);
19
20int msm_dsi_io_init(struct platform_device *dev,
21 struct dss_module_power *mp);
22
23void msm_dsi_io_deinit(struct platform_device *dev,
24 struct dss_module_power *mp);
25
26int msm_dsi_clk_init(struct platform_device *dev);
27
28void msm_dsi_clk_deinit(void);
29
30int msm_dsi_prepare_clocks(void);
31
32int msm_dsi_unprepare_clocks(void);
33
34int msm_dsi_clk_set_rate(unsigned long esc_rate,
35 unsigned long dsi_rate,
36 unsigned long byte_rate,
37 unsigned long pixel_rate);
38
39int msm_dsi_clk_enable(void);
40
41int msm_dsi_clk_disable(void);
42
43int msm_dsi_phy_init(unsigned char *ctrl_base,
44 struct mdss_panel_data *pdata);
45
46void msm_dsi_phy_sw_reset(unsigned char *ctrl_base);
47
48void msm_dsi_phy_off(unsigned char *ctrl_base);
49#endif /* DSI_IO_V2_H */