Skip to content

Commit

Permalink
Merge branch 'CR_3345_evb_515_DRM_mipi_for_uboot_keith.zhao' into 'jh…
Browse files Browse the repository at this point in the history
…7110-5.15.y-devel'

CR_3345:riscv:driver:drm:

See merge request sdk/linux!689
  • Loading branch information
andyhu-stf committed Feb 11, 2023
2 parents cdc94e4 + f9de4d1 commit cbf92da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions drivers/gpu/drm/verisilicon/vs_dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,6 @@ static void dc_deinit(struct device *dev)
dev_err(dev, "assert vout resets error.\n");
}


///////////////////////////////////////////////////////////
static int dc_init(struct device *dev)
{
struct vs_dc *dc = dev_get_drvdata(dev);
Expand Down Expand Up @@ -746,6 +744,7 @@ static void vs_dc_enable(struct device *dev, struct drm_crtc *crtc)
struct dc_hw_display display;
int ret;


if (dc->init_finished == false) {
ret = dc_vout_clk_enable(dev, dc);
if (ret)
Expand Down Expand Up @@ -841,6 +840,7 @@ static void vs_dc_enable(struct device *dev, struct drm_crtc *crtc)
//regmap_update_bits(dc->dss_regmap, 0x8, BIT(3), 1 << 3);

dc_hw_setup_display(&dc->hw, &display);

}

static void vs_dc_disable(struct device *dev, struct drm_crtc *crtc)
Expand Down Expand Up @@ -1385,10 +1385,13 @@ static irqreturn_t dc_isr(int irq, void *data)
struct vs_dc_info *dc_info = dc->hw.info;
u32 i, ret;

if(!dc_info)
return IRQ_HANDLED;

ret = dc_hw_get_interrupt(&dc->hw);

for (i = 0; i < dc_info->panel_num; i++)
vs_crtc_handle_vblank(&dc->crtc[i]->base, dc_hw_check_underflow(&dc->hw));
vs_crtc_handle_vblank(&dc->crtc[i]->base, dc_hw_check_underflow(&dc->hw));

return IRQ_HANDLED;
}
Expand Down Expand Up @@ -1635,7 +1638,6 @@ static int dc_probe(struct platform_device *pdev)
if (IS_ERR(dc->hw.mmu_base))
return PTR_ERR(dc->hw.mmu_base);
#endif

irq = platform_get_irq(pdev, 0);
ret = devm_request_irq(dev, irq, dc_isr, 0, dev_name(dev), dc);
if (ret < 0) {
Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/verisilicon/vs_dc.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ struct vs_dc {
struct regmap *dss_regmap;

bool init_finished;

};

extern struct platform_driver dc_platform_driver;
Expand Down

0 comments on commit cbf92da

Please sign in to comment.