Sachin Bhayare | eeb8889 | 2018-01-02 16:36:01 +0530 | [diff] [blame] | 1 | /* 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 | |
| 18 | void msm_dsi_ahb_ctrl(int enable); |
| 19 | |
| 20 | int msm_dsi_io_init(struct platform_device *dev, |
Sachin Bhayare | 5076e25 | 2018-01-18 14:56:45 +0530 | [diff] [blame] | 21 | struct mdss_module_power *mp); |
Sachin Bhayare | eeb8889 | 2018-01-02 16:36:01 +0530 | [diff] [blame] | 22 | |
| 23 | void msm_dsi_io_deinit(struct platform_device *dev, |
Sachin Bhayare | 5076e25 | 2018-01-18 14:56:45 +0530 | [diff] [blame] | 24 | struct mdss_module_power *mp); |
Sachin Bhayare | eeb8889 | 2018-01-02 16:36:01 +0530 | [diff] [blame] | 25 | |
| 26 | int msm_dsi_clk_init(struct platform_device *dev); |
| 27 | |
| 28 | void msm_dsi_clk_deinit(void); |
| 29 | |
| 30 | int msm_dsi_prepare_clocks(void); |
| 31 | |
| 32 | int msm_dsi_unprepare_clocks(void); |
| 33 | |
| 34 | int 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 | |
| 39 | int msm_dsi_clk_enable(void); |
| 40 | |
| 41 | int msm_dsi_clk_disable(void); |
| 42 | |
| 43 | int msm_dsi_phy_init(unsigned char *ctrl_base, |
| 44 | struct mdss_panel_data *pdata); |
| 45 | |
| 46 | void msm_dsi_phy_sw_reset(unsigned char *ctrl_base); |
| 47 | |
| 48 | void msm_dsi_phy_off(unsigned char *ctrl_base); |
| 49 | #endif /* DSI_IO_V2_H */ |