dsi.h (b62aa70a98c5401ada63657eee7c88da70bdbb27) | dsi.h (f079f6d999cbf857f899732de680f2b62f245b8c) |
---|---|
1/* 2 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 and 6 * only version 2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 21 unchanged lines hidden (view full) --- 30struct msm_dsi_phy_shared_timings; 31struct msm_dsi_phy_clk_request; 32 33enum msm_dsi_phy_type { 34 MSM_DSI_PHY_28NM_HPM, 35 MSM_DSI_PHY_28NM_LP, 36 MSM_DSI_PHY_20NM, 37 MSM_DSI_PHY_28NM_8960, | 1/* 2 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 and 6 * only version 2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 21 unchanged lines hidden (view full) --- 30struct msm_dsi_phy_shared_timings; 31struct msm_dsi_phy_clk_request; 32 33enum msm_dsi_phy_type { 34 MSM_DSI_PHY_28NM_HPM, 35 MSM_DSI_PHY_28NM_LP, 36 MSM_DSI_PHY_20NM, 37 MSM_DSI_PHY_28NM_8960, |
38 MSM_DSI_PHY_14NM, |
|
38 MSM_DSI_PHY_MAX 39}; 40 41enum msm_dsi_phy_usecase { 42 MSM_DSI_PHY_STANDALONE, 43 MSM_DSI_PHY_MASTER, 44 MSM_DSI_PHY_SLAVE, 45}; --- 66 unchanged lines hidden (view full) --- 112#ifdef CONFIG_DRM_MSM_DSI_PLL 113struct msm_dsi_pll *msm_dsi_pll_init(struct platform_device *pdev, 114 enum msm_dsi_phy_type type, int dsi_id); 115void msm_dsi_pll_destroy(struct msm_dsi_pll *pll); 116int msm_dsi_pll_get_clk_provider(struct msm_dsi_pll *pll, 117 struct clk **byte_clk_provider, struct clk **pixel_clk_provider); 118void msm_dsi_pll_save_state(struct msm_dsi_pll *pll); 119int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll); | 39 MSM_DSI_PHY_MAX 40}; 41 42enum msm_dsi_phy_usecase { 43 MSM_DSI_PHY_STANDALONE, 44 MSM_DSI_PHY_MASTER, 45 MSM_DSI_PHY_SLAVE, 46}; --- 66 unchanged lines hidden (view full) --- 113#ifdef CONFIG_DRM_MSM_DSI_PLL 114struct msm_dsi_pll *msm_dsi_pll_init(struct platform_device *pdev, 115 enum msm_dsi_phy_type type, int dsi_id); 116void msm_dsi_pll_destroy(struct msm_dsi_pll *pll); 117int msm_dsi_pll_get_clk_provider(struct msm_dsi_pll *pll, 118 struct clk **byte_clk_provider, struct clk **pixel_clk_provider); 119void msm_dsi_pll_save_state(struct msm_dsi_pll *pll); 120int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll); |
121int msm_dsi_pll_set_usecase(struct msm_dsi_pll *pll, 122 enum msm_dsi_phy_usecase uc); |
|
120#else 121static inline struct msm_dsi_pll *msm_dsi_pll_init(struct platform_device *pdev, 122 enum msm_dsi_phy_type type, int id) { 123 return ERR_PTR(-ENODEV); 124} 125static inline void msm_dsi_pll_destroy(struct msm_dsi_pll *pll) 126{ 127} --- 4 unchanged lines hidden (view full) --- 132} 133static inline void msm_dsi_pll_save_state(struct msm_dsi_pll *pll) 134{ 135} 136static inline int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll) 137{ 138 return 0; 139} | 123#else 124static inline struct msm_dsi_pll *msm_dsi_pll_init(struct platform_device *pdev, 125 enum msm_dsi_phy_type type, int id) { 126 return ERR_PTR(-ENODEV); 127} 128static inline void msm_dsi_pll_destroy(struct msm_dsi_pll *pll) 129{ 130} --- 4 unchanged lines hidden (view full) --- 135} 136static inline void msm_dsi_pll_save_state(struct msm_dsi_pll *pll) 137{ 138} 139static inline int msm_dsi_pll_restore_state(struct msm_dsi_pll *pll) 140{ 141 return 0; 142} |
143static inline int msm_dsi_pll_set_usecase(struct msm_dsi_pll *pll, 144 enum msm_dsi_phy_usecase uc) 145{ 146 return -ENODEV; 147} |
|
140#endif 141 142/* dsi host */ 143int msm_dsi_host_xfer_prepare(struct mipi_dsi_host *host, 144 const struct mipi_dsi_msg *msg); 145void msm_dsi_host_xfer_restore(struct mipi_dsi_host *host, 146 const struct mipi_dsi_msg *msg); 147int msm_dsi_host_cmd_tx(struct mipi_dsi_host *host, --- 53 unchanged lines hidden --- | 148#endif 149 150/* dsi host */ 151int msm_dsi_host_xfer_prepare(struct mipi_dsi_host *host, 152 const struct mipi_dsi_msg *msg); 153void msm_dsi_host_xfer_restore(struct mipi_dsi_host *host, 154 const struct mipi_dsi_msg *msg); 155int msm_dsi_host_cmd_tx(struct mipi_dsi_host *host, --- 53 unchanged lines hidden --- |