@@ -41,9 +41,7 @@
#define FB_ACCEL_PLATFORM_TYPE_ASIC 0x20000000 //ASIC
/* vcc name */
-#define REGULATOR_PDP_NAME "regulator_dsssubsys"
-#define REGULATOR_MMBUF "regulator_mmbuf"
-#define REGULATOR_MEDIA_NAME "regulator_media_subsys"
+#define REGULATOR_PDP_NAME "ldo3"
/*******************************************************************************
**
@@ -967,13 +967,13 @@ int dpe_regulator_enable(struct dss_hw_ctx *ctx)
{
int ret = 0;
- DRM_INFO("+. \n");
+ DRM_INFO("enabling DPE regulator\n");
if (NULL == ctx) {
DRM_ERROR("NULL ptr.\n");
return -EINVAL;
}
- //ret = regulator_enable(ctx->dpe_regulator);
+ ret = regulator_enable(ctx->dpe_regulator);
if (ret) {
DRM_ERROR(" dpe regulator_enable failed, error=%d!\n", ret);
return -EINVAL;
@@ -998,7 +998,7 @@ int dpe_regulator_disable(struct dss_hw_ctx *ctx)
dpe_set_common_clk_rate_on_pll0(ctx);
#endif
- //ret = regulator_disable(ctx->dpe_regulator);
+ ret = regulator_disable(ctx->dpe_regulator);
if (ret != 0) {
DRM_ERROR("dpe regulator_disable failed, error=%d!\n", ret);
return -EINVAL;
@@ -873,20 +873,12 @@ static int dss_dts_parse(struct platform_device *pdev, struct dss_hw_ctx *ctx)
DRM_INFO("dss irq = %d. \n", ctx->irq);
-#ifndef DSS_POWER_UP_ON_UEFI
#if defined (CONFIG_DRM_HISI_KIRIN970)
ctx->dpe_regulator = devm_regulator_get(dev, REGULATOR_PDP_NAME);
if (!ctx->dpe_regulator) {
DRM_ERROR("failed to get dpe_regulator resource! ret=%d.\n", ret);
return -ENXIO;
}
-
- ctx->mediacrg_regulator = devm_regulator_get(dev, REGULATOR_MEDIA_NAME);
- if (!ctx->mediacrg_regulator) {
- DRM_ERROR("failed to get mediacrg_regulator resource! ret=%d.\n", ret);
- return -ENXIO;
- }
-#endif
#endif
ctx->dss_mmbuf_clk = devm_clk_get(dev, "clk_dss_axi_mm");
@@ -38,9 +38,7 @@
#define DEV_NAME_LCD_BKL "lcd_backlight0"
/* vcc name */
-#define REGULATOR_PDP_NAME "regulator_dsssubsys"
-#define REGULATOR_MMBUF "regulator_mmbuf"
-#define REGULATOR_MEDIA_NAME "regulator_media_subsys"
+#define REGULATOR_PDP_NAME "ldo3"
/* irq name */
This is needed for the DRM to work. Ok, right now, this is enabled on default fastboot logic, but, as soon as we enable the proper SPMI driver, such code is needed. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> --- drivers/staging/hikey9xx/gpu/kirin970_dpe_reg.h | 4 +--- drivers/staging/hikey9xx/gpu/kirin9xx_drm_dpe_utils.c | 6 +++--- drivers/staging/hikey9xx/gpu/kirin9xx_drm_dss.c | 8 -------- drivers/staging/hikey9xx/gpu/kirin9xx_fb_panel.h | 4 +--- 4 files changed, 5 insertions(+), 17 deletions(-)