forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/msm/dsi/pll/dsi_pll.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2012-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,
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.
124 */
135
146 #include "dsi_pll.h"
....@@ -169,13 +161,17 @@
169161 case MSM_DSI_PHY_10NM:
170162 pll = msm_dsi_pll_10nm_init(pdev, id);
171163 break;
164
+ case MSM_DSI_PHY_7NM:
165
+ case MSM_DSI_PHY_7NM_V4_1:
166
+ pll = msm_dsi_pll_7nm_init(pdev, type, id);
167
+ break;
172168 default:
173169 pll = ERR_PTR(-ENXIO);
174170 break;
175171 }
176172
177173 if (IS_ERR(pll)) {
178
- dev_err(dev, "%s: failed to init DSI PLL\n", __func__);
174
+ DRM_DEV_ERROR(dev, "%s: failed to init DSI PLL\n", __func__);
179175 return pll;
180176 }
181177