Exemplo n.º 1
0
static int dpe_vsync_ctrl(struct platform_device *pdev, int enable)
{
	int ret = 0;
	struct k3_fb_data_type *k3fd = NULL;

	BUG_ON(pdev == NULL);
	k3fd = platform_get_drvdata(pdev);
	BUG_ON(k3fd == NULL);

	K3_FB_DEBUG("fb%d, +.\n", k3fd->index);

	if (enable) {
		ret = panel_next_vsync_ctrl(pdev, enable);
		if (k3fd->panel_info.vsync_ctrl_type & VSYNC_CTRL_ISR_OFF) {
			dpe_interrupt_unmask(k3fd);
			dpe_irq_enable(k3fd);
		}
	} else {
		ret = panel_next_vsync_ctrl(pdev, enable);
		if (k3fd->panel_info.vsync_ctrl_type & VSYNC_CTRL_ISR_OFF) {
			dpe_interrupt_mask(k3fd);
			dpe_irq_disable_nosync(k3fd);
		}
	}

	K3_FB_DEBUG("fb%d, -.\n", k3fd->index);

	return ret;
}
static int mipi_dsi_vsync_ctrl(struct platform_device *pdev, int enable)
{
	int ret = 0;
	struct hisi_fb_data_type *hisifd = NULL;

	BUG_ON(pdev == NULL);
	hisifd = platform_get_drvdata(pdev);
	BUG_ON(hisifd == NULL);

	HISI_FB_DEBUG("fb%d, +.\n", hisifd->index);

	if (enable) {
		ret = panel_next_vsync_ctrl(pdev, enable);
	} else {
		ret = panel_next_vsync_ctrl(pdev, enable);
	}

	HISI_FB_DEBUG("fb%d, -.\n", hisifd->index);

	return ret;
}
Exemplo n.º 3
0
static int rgb2mipi_vsync_ctrl(struct platform_device *pdev, int enable)
{
	int ret = 0;
	struct k3_fb_data_type *k3fd = NULL;

	BUG_ON(pdev == NULL);
	k3fd = platform_get_drvdata(pdev);
	BUG_ON(k3fd == NULL);

	K3_FB_DEBUG("fb%d, +.\n", k3fd->index);

	ret = panel_next_vsync_ctrl(pdev, enable);

	K3_FB_DEBUG("fb%d, -.\n", k3fd->index);

	return ret;
}