Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 1 | /* |
Padmanabhan Komanduru | dbd2fb0 | 2016-12-02 15:18:49 +0530 | [diff] [blame] | 2 | * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 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, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | */ |
| 14 | |
| 15 | #define pr_fmt(fmt) "msm-dsi-catalog:[%s] " fmt, __func__ |
| 16 | #include <linux/errno.h> |
| 17 | |
| 18 | #include "dsi_catalog.h" |
| 19 | |
| 20 | /** |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 21 | * dsi_catalog_cmn_init() - catalog init for dsi controller v1.4 |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 22 | */ |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 23 | static void dsi_catalog_cmn_init(struct dsi_ctrl_hw *ctrl, |
| 24 | enum dsi_ctrl_version version) |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 25 | { |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 26 | /* common functions */ |
| 27 | ctrl->ops.host_setup = dsi_ctrl_hw_cmn_host_setup; |
| 28 | ctrl->ops.video_engine_en = dsi_ctrl_hw_cmn_video_engine_en; |
| 29 | ctrl->ops.video_engine_setup = dsi_ctrl_hw_cmn_video_engine_setup; |
| 30 | ctrl->ops.set_video_timing = dsi_ctrl_hw_cmn_set_video_timing; |
Raviteja Tamatam | 68892de | 2017-06-20 04:47:19 +0530 | [diff] [blame] | 31 | ctrl->ops.set_timing_db = dsi_ctrl_hw_cmn_set_timing_db; |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 32 | ctrl->ops.cmd_engine_setup = dsi_ctrl_hw_cmn_cmd_engine_setup; |
| 33 | ctrl->ops.setup_cmd_stream = dsi_ctrl_hw_cmn_setup_cmd_stream; |
| 34 | ctrl->ops.ctrl_en = dsi_ctrl_hw_cmn_ctrl_en; |
| 35 | ctrl->ops.cmd_engine_en = dsi_ctrl_hw_cmn_cmd_engine_en; |
| 36 | ctrl->ops.phy_sw_reset = dsi_ctrl_hw_cmn_phy_sw_reset; |
| 37 | ctrl->ops.soft_reset = dsi_ctrl_hw_cmn_soft_reset; |
| 38 | ctrl->ops.kickoff_command = dsi_ctrl_hw_cmn_kickoff_command; |
| 39 | ctrl->ops.kickoff_fifo_command = dsi_ctrl_hw_cmn_kickoff_fifo_command; |
| 40 | ctrl->ops.reset_cmd_fifo = dsi_ctrl_hw_cmn_reset_cmd_fifo; |
| 41 | ctrl->ops.trigger_command_dma = dsi_ctrl_hw_cmn_trigger_command_dma; |
| 42 | ctrl->ops.get_interrupt_status = dsi_ctrl_hw_cmn_get_interrupt_status; |
| 43 | ctrl->ops.get_error_status = dsi_ctrl_hw_cmn_get_error_status; |
| 44 | ctrl->ops.clear_error_status = dsi_ctrl_hw_cmn_clear_error_status; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 45 | ctrl->ops.clear_interrupt_status = |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 46 | dsi_ctrl_hw_cmn_clear_interrupt_status; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 47 | ctrl->ops.enable_status_interrupts = |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 48 | dsi_ctrl_hw_cmn_enable_status_interrupts; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 49 | ctrl->ops.enable_error_interrupts = |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 50 | dsi_ctrl_hw_cmn_enable_error_interrupts; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 51 | ctrl->ops.video_test_pattern_setup = |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 52 | dsi_ctrl_hw_cmn_video_test_pattern_setup; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 53 | ctrl->ops.cmd_test_pattern_setup = |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 54 | dsi_ctrl_hw_cmn_cmd_test_pattern_setup; |
| 55 | ctrl->ops.test_pattern_enable = dsi_ctrl_hw_cmn_test_pattern_enable; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 56 | ctrl->ops.trigger_cmd_test_pattern = |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 57 | dsi_ctrl_hw_cmn_trigger_cmd_test_pattern; |
| 58 | ctrl->ops.clear_phy0_ln_err = dsi_ctrl_hw_dln0_phy_err; |
| 59 | ctrl->ops.phy_reset_config = dsi_ctrl_hw_cmn_phy_reset_config; |
Rajkumar Subbiah | 01e6dd64 | 2017-07-05 14:47:47 -0400 | [diff] [blame] | 60 | ctrl->ops.setup_misr = dsi_ctrl_hw_cmn_setup_misr; |
| 61 | ctrl->ops.collect_misr = dsi_ctrl_hw_cmn_collect_misr; |
Dhaval Patel | f9f3ffe | 2017-08-16 16:03:10 -0700 | [diff] [blame] | 62 | ctrl->ops.debug_bus = dsi_ctrl_hw_cmn_debug_bus; |
Sandeep Panda | 7945000 | 2017-05-08 17:14:24 +0530 | [diff] [blame] | 63 | ctrl->ops.get_cmd_read_data = dsi_ctrl_hw_cmn_get_cmd_read_data; |
| 64 | ctrl->ops.clear_rdbk_register = dsi_ctrl_hw_cmn_clear_rdbk_reg; |
Sandeep Panda | 11b20d8 | 2017-06-19 12:57:27 +0530 | [diff] [blame] | 65 | ctrl->ops.ctrl_reset = dsi_ctrl_hw_cmn_ctrl_reset; |
| 66 | ctrl->ops.mask_error_intr = dsi_ctrl_hw_cmn_mask_error_intr; |
| 67 | ctrl->ops.error_intr_ctrl = dsi_ctrl_hw_cmn_error_intr_ctrl; |
| 68 | ctrl->ops.get_error_mask = dsi_ctrl_hw_cmn_get_error_mask; |
| 69 | ctrl->ops.get_hw_version = dsi_ctrl_hw_cmn_get_hw_version; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 70 | |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 71 | switch (version) { |
| 72 | case DSI_CTRL_VERSION_1_4: |
| 73 | ctrl->ops.setup_lane_map = dsi_ctrl_hw_14_setup_lane_map; |
| 74 | ctrl->ops.ulps_ops.ulps_request = dsi_ctrl_hw_14_ulps_request; |
| 75 | ctrl->ops.ulps_ops.ulps_exit = dsi_ctrl_hw_14_ulps_exit; |
| 76 | ctrl->ops.wait_for_lane_idle = |
| 77 | dsi_ctrl_hw_14_wait_for_lane_idle; |
| 78 | ctrl->ops.ulps_ops.get_lanes_in_ulps = |
| 79 | dsi_ctrl_hw_14_get_lanes_in_ulps; |
| 80 | ctrl->ops.clamp_enable = dsi_ctrl_hw_14_clamp_enable; |
| 81 | ctrl->ops.clamp_disable = dsi_ctrl_hw_14_clamp_disable; |
| 82 | ctrl->ops.reg_dump_to_buffer = |
| 83 | dsi_ctrl_hw_14_reg_dump_to_buffer; |
Sandeep Panda | a2a3c8c | 2017-07-09 02:10:44 +0530 | [diff] [blame] | 84 | ctrl->ops.schedule_dma_cmd = NULL; |
Shashank Babu Chinta Venkata | 7d60873 | 2017-05-31 14:10:26 -0700 | [diff] [blame] | 85 | ctrl->ops.get_cont_splash_status = NULL; |
Vara Reddy | dbeab89 | 2017-11-17 16:38:16 -0800 | [diff] [blame] | 86 | ctrl->ops.kickoff_command_non_embedded_mode = NULL; |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 87 | break; |
| 88 | case DSI_CTRL_VERSION_2_0: |
| 89 | ctrl->ops.setup_lane_map = dsi_ctrl_hw_20_setup_lane_map; |
| 90 | ctrl->ops.wait_for_lane_idle = |
| 91 | dsi_ctrl_hw_20_wait_for_lane_idle; |
| 92 | ctrl->ops.reg_dump_to_buffer = |
| 93 | dsi_ctrl_hw_20_reg_dump_to_buffer; |
| 94 | ctrl->ops.ulps_ops.ulps_request = NULL; |
| 95 | ctrl->ops.ulps_ops.ulps_exit = NULL; |
| 96 | ctrl->ops.ulps_ops.get_lanes_in_ulps = NULL; |
| 97 | ctrl->ops.clamp_enable = NULL; |
| 98 | ctrl->ops.clamp_disable = NULL; |
Sandeep Panda | a2a3c8c | 2017-07-09 02:10:44 +0530 | [diff] [blame] | 99 | ctrl->ops.schedule_dma_cmd = NULL; |
Shashank Babu Chinta Venkata | 7d60873 | 2017-05-31 14:10:26 -0700 | [diff] [blame] | 100 | ctrl->ops.get_cont_splash_status = NULL; |
Vara Reddy | dbeab89 | 2017-11-17 16:38:16 -0800 | [diff] [blame] | 101 | ctrl->ops.kickoff_command_non_embedded_mode = NULL; |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 102 | break; |
Shashank Babu Chinta Venkata | afef820 | 2017-04-21 13:49:56 -0700 | [diff] [blame] | 103 | case DSI_CTRL_VERSION_2_2: |
| 104 | ctrl->ops.phy_reset_config = dsi_ctrl_hw_22_phy_reset_config; |
Shashank Babu Chinta Venkata | 7d60873 | 2017-05-31 14:10:26 -0700 | [diff] [blame] | 105 | ctrl->ops.get_cont_splash_status = |
| 106 | dsi_ctrl_hw_22_get_cont_splash_status; |
Shashank Babu Chinta Venkata | afef820 | 2017-04-21 13:49:56 -0700 | [diff] [blame] | 107 | ctrl->ops.setup_lane_map = dsi_ctrl_hw_20_setup_lane_map; |
| 108 | ctrl->ops.wait_for_lane_idle = |
| 109 | dsi_ctrl_hw_20_wait_for_lane_idle; |
| 110 | ctrl->ops.reg_dump_to_buffer = |
| 111 | dsi_ctrl_hw_20_reg_dump_to_buffer; |
| 112 | ctrl->ops.ulps_ops.ulps_request = NULL; |
| 113 | ctrl->ops.ulps_ops.ulps_exit = NULL; |
| 114 | ctrl->ops.ulps_ops.get_lanes_in_ulps = NULL; |
| 115 | ctrl->ops.clamp_enable = NULL; |
| 116 | ctrl->ops.clamp_disable = NULL; |
Sandeep Panda | a2a3c8c | 2017-07-09 02:10:44 +0530 | [diff] [blame] | 117 | ctrl->ops.schedule_dma_cmd = dsi_ctrl_hw_22_schedule_dma_cmd; |
Vara Reddy | dbeab89 | 2017-11-17 16:38:16 -0800 | [diff] [blame] | 118 | ctrl->ops.kickoff_command_non_embedded_mode = |
| 119 | dsi_ctrl_hw_kickoff_non_embedded_mode; |
Shashank Babu Chinta Venkata | afef820 | 2017-04-21 13:49:56 -0700 | [diff] [blame] | 120 | break; |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 121 | default: |
| 122 | break; |
| 123 | } |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 124 | } |
| 125 | |
| 126 | /** |
| 127 | * dsi_catalog_ctrl_setup() - return catalog info for dsi controller |
| 128 | * @ctrl: Pointer to DSI controller hw object. |
| 129 | * @version: DSI controller version. |
| 130 | * @index: DSI controller instance ID. |
Dhaval Patel | abfaa08 | 2017-07-28 12:41:10 -0700 | [diff] [blame] | 131 | * @phy_isolation_enabled: DSI controller works isolated from phy. |
Sravanthi Kollukuduru | d880932 | 2017-10-26 15:24:13 +0530 | [diff] [blame] | 132 | * @null_insertion_enabled: DSI controller inserts null packet. |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 133 | * |
| 134 | * This function setups the catalog information in the dsi_ctrl_hw object. |
| 135 | * |
| 136 | * return: error code for failure and 0 for success. |
| 137 | */ |
| 138 | int dsi_catalog_ctrl_setup(struct dsi_ctrl_hw *ctrl, |
Dhaval Patel | abfaa08 | 2017-07-28 12:41:10 -0700 | [diff] [blame] | 139 | enum dsi_ctrl_version version, u32 index, |
Sravanthi Kollukuduru | d880932 | 2017-10-26 15:24:13 +0530 | [diff] [blame] | 140 | bool phy_isolation_enabled, bool null_insertion_enabled) |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 141 | { |
| 142 | int rc = 0; |
| 143 | |
| 144 | if (version == DSI_CTRL_VERSION_UNKNOWN || |
| 145 | version >= DSI_CTRL_VERSION_MAX) { |
| 146 | pr_err("Unsupported version: %d\n", version); |
| 147 | return -ENOTSUPP; |
| 148 | } |
| 149 | |
| 150 | ctrl->index = index; |
Sravanthi Kollukuduru | d880932 | 2017-10-26 15:24:13 +0530 | [diff] [blame] | 151 | ctrl->null_insertion_enabled = null_insertion_enabled; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 152 | set_bit(DSI_CTRL_VIDEO_TPG, ctrl->feature_map); |
| 153 | set_bit(DSI_CTRL_CMD_TPG, ctrl->feature_map); |
| 154 | set_bit(DSI_CTRL_VARIABLE_REFRESH_RATE, ctrl->feature_map); |
| 155 | set_bit(DSI_CTRL_DYNAMIC_REFRESH, ctrl->feature_map); |
| 156 | set_bit(DSI_CTRL_DESKEW_CALIB, ctrl->feature_map); |
| 157 | set_bit(DSI_CTRL_DPHY, ctrl->feature_map); |
| 158 | |
| 159 | switch (version) { |
| 160 | case DSI_CTRL_VERSION_1_4: |
Dhaval Patel | abfaa08 | 2017-07-28 12:41:10 -0700 | [diff] [blame] | 161 | dsi_catalog_cmn_init(ctrl, version); |
| 162 | break; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 163 | case DSI_CTRL_VERSION_2_0: |
Shashank Babu Chinta Venkata | afef820 | 2017-04-21 13:49:56 -0700 | [diff] [blame] | 164 | case DSI_CTRL_VERSION_2_2: |
Dhaval Patel | abfaa08 | 2017-07-28 12:41:10 -0700 | [diff] [blame] | 165 | ctrl->phy_isolation_enabled = phy_isolation_enabled; |
Padmanabhan Komanduru | 8ee8ee5 | 2016-12-19 12:10:51 +0530 | [diff] [blame] | 166 | dsi_catalog_cmn_init(ctrl, version); |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 167 | break; |
| 168 | default: |
| 169 | return -ENOTSUPP; |
| 170 | } |
| 171 | |
| 172 | return rc; |
| 173 | } |
| 174 | |
| 175 | /** |
Padmanabhan Komanduru | 56611ef | 2016-12-19 12:21:11 +0530 | [diff] [blame] | 176 | * dsi_catalog_phy_2_0_init() - catalog init for DSI PHY 14nm |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 177 | */ |
Padmanabhan Komanduru | 56611ef | 2016-12-19 12:21:11 +0530 | [diff] [blame] | 178 | static void dsi_catalog_phy_2_0_init(struct dsi_phy_hw *phy) |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 179 | { |
Padmanabhan Komanduru | 56611ef | 2016-12-19 12:21:11 +0530 | [diff] [blame] | 180 | phy->ops.regulator_enable = dsi_phy_hw_v2_0_regulator_enable; |
| 181 | phy->ops.regulator_disable = dsi_phy_hw_v2_0_regulator_disable; |
| 182 | phy->ops.enable = dsi_phy_hw_v2_0_enable; |
| 183 | phy->ops.disable = dsi_phy_hw_v2_0_disable; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 184 | phy->ops.calculate_timing_params = |
Padmanabhan Komanduru | 56611ef | 2016-12-19 12:21:11 +0530 | [diff] [blame] | 185 | dsi_phy_hw_calculate_timing_params; |
| 186 | phy->ops.phy_idle_on = dsi_phy_hw_v2_0_idle_on; |
| 187 | phy->ops.phy_idle_off = dsi_phy_hw_v2_0_idle_off; |
| 188 | phy->ops.calculate_timing_params = |
| 189 | dsi_phy_hw_calculate_timing_params; |
Padmanabhan Komanduru | ee89d21 | 2016-12-19 12:51:31 +0530 | [diff] [blame] | 190 | phy->ops.phy_timing_val = dsi_phy_hw_timing_val_v2_0; |
Padmanabhan Komanduru | 56611ef | 2016-12-19 12:21:11 +0530 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | /** |
| 194 | * dsi_catalog_phy_3_0_init() - catalog init for DSI PHY 10nm |
| 195 | */ |
| 196 | static void dsi_catalog_phy_3_0_init(struct dsi_phy_hw *phy) |
| 197 | { |
| 198 | phy->ops.regulator_enable = dsi_phy_hw_v3_0_regulator_enable; |
| 199 | phy->ops.regulator_disable = dsi_phy_hw_v3_0_regulator_disable; |
| 200 | phy->ops.enable = dsi_phy_hw_v3_0_enable; |
| 201 | phy->ops.disable = dsi_phy_hw_v3_0_disable; |
| 202 | phy->ops.calculate_timing_params = |
| 203 | dsi_phy_hw_calculate_timing_params; |
| 204 | phy->ops.ulps_ops.wait_for_lane_idle = |
| 205 | dsi_phy_hw_v3_0_wait_for_lane_idle; |
| 206 | phy->ops.ulps_ops.ulps_request = |
| 207 | dsi_phy_hw_v3_0_ulps_request; |
| 208 | phy->ops.ulps_ops.ulps_exit = |
| 209 | dsi_phy_hw_v3_0_ulps_exit; |
| 210 | phy->ops.ulps_ops.get_lanes_in_ulps = |
| 211 | dsi_phy_hw_v3_0_get_lanes_in_ulps; |
Veera Sundaram Sankaran | bb3680f | 2017-04-21 13:20:46 -0700 | [diff] [blame] | 212 | phy->ops.ulps_ops.is_lanes_in_ulps = |
| 213 | dsi_phy_hw_v3_0_is_lanes_in_ulps; |
Padmanabhan Komanduru | ee89d21 | 2016-12-19 12:51:31 +0530 | [diff] [blame] | 214 | phy->ops.phy_timing_val = dsi_phy_hw_timing_val_v3_0; |
Sandeep Panda | 11b20d8 | 2017-06-19 12:57:27 +0530 | [diff] [blame] | 215 | phy->ops.phy_lane_reset = dsi_phy_hw_v3_0_lane_reset; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | /** |
| 219 | * dsi_catalog_phy_setup() - return catalog info for dsi phy hardware |
| 220 | * @ctrl: Pointer to DSI PHY hw object. |
| 221 | * @version: DSI PHY version. |
| 222 | * @index: DSI PHY instance ID. |
| 223 | * |
| 224 | * This function setups the catalog information in the dsi_phy_hw object. |
| 225 | * |
| 226 | * return: error code for failure and 0 for success. |
| 227 | */ |
| 228 | int dsi_catalog_phy_setup(struct dsi_phy_hw *phy, |
| 229 | enum dsi_phy_version version, |
| 230 | u32 index) |
| 231 | { |
| 232 | int rc = 0; |
| 233 | |
| 234 | if (version == DSI_PHY_VERSION_UNKNOWN || |
| 235 | version >= DSI_PHY_VERSION_MAX) { |
| 236 | pr_err("Unsupported version: %d\n", version); |
| 237 | return -ENOTSUPP; |
| 238 | } |
| 239 | |
| 240 | phy->index = index; |
| 241 | set_bit(DSI_PHY_DPHY, phy->feature_map); |
| 242 | |
Padmanabhan Komanduru | 56611ef | 2016-12-19 12:21:11 +0530 | [diff] [blame] | 243 | dsi_phy_timing_calc_init(phy, version); |
| 244 | |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 245 | switch (version) { |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 246 | case DSI_PHY_VERSION_2_0: |
Padmanabhan Komanduru | 56611ef | 2016-12-19 12:21:11 +0530 | [diff] [blame] | 247 | dsi_catalog_phy_2_0_init(phy); |
| 248 | break; |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 249 | case DSI_PHY_VERSION_3_0: |
Padmanabhan Komanduru | 56611ef | 2016-12-19 12:21:11 +0530 | [diff] [blame] | 250 | dsi_catalog_phy_3_0_init(phy); |
| 251 | break; |
| 252 | case DSI_PHY_VERSION_0_0_HPM: |
| 253 | case DSI_PHY_VERSION_0_0_LPM: |
| 254 | case DSI_PHY_VERSION_1_0: |
Ajay Singh Parmar | 0e18781 | 2016-05-16 17:45:31 -0700 | [diff] [blame] | 255 | default: |
| 256 | return -ENOTSUPP; |
| 257 | } |
| 258 | |
| 259 | return rc; |
| 260 | } |
| 261 | |
| 262 | |