linux/drivers/gpu/drm/mxsfb/lcdif_drv.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2022 Marek Vasut <[email protected]>
 *
 * This code is based on drivers/gpu/drm/mxsfb/mxsfb*
 */

#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_graph.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>

#include <drm/drm_atomic_helper.h>
#include <drm/drm_bridge.h>
#include <drm/drm_drv.h>
#include <drm/drm_encoder.h>
#include <drm/drm_fbdev_dma.h>
#include <drm/drm_gem_dma_helper.h>
#include <drm/drm_gem_framebuffer_helper.h>
#include <drm/drm_mode_config.h>
#include <drm/drm_module.h>
#include <drm/drm_of.h>
#include <drm/drm_probe_helper.h>
#include <drm/drm_vblank.h>

#include "lcdif_drv.h"
#include "lcdif_regs.h"

static const struct drm_mode_config_funcs lcdif_mode_config_funcs =;

static const struct drm_mode_config_helper_funcs lcdif_mode_config_helpers =;

static const struct drm_encoder_funcs lcdif_encoder_funcs =;

static int lcdif_attach_bridge(struct lcdif_drm_private *lcdif)
{}

static irqreturn_t lcdif_irq_handler(int irq, void *data)
{}

static int lcdif_load(struct drm_device *drm)
{}

static void lcdif_unload(struct drm_device *drm)
{}

DEFINE_DRM_GEM_DMA_FOPS(fops);

static const struct drm_driver lcdif_driver =;

static const struct of_device_id lcdif_dt_ids[] =;
MODULE_DEVICE_TABLE(of, lcdif_dt_ids);

static int lcdif_probe(struct platform_device *pdev)
{}

static void lcdif_remove(struct platform_device *pdev)
{}

static void lcdif_shutdown(struct platform_device *pdev)
{}

static int __maybe_unused lcdif_rpm_suspend(struct device *dev)
{}

static int __maybe_unused lcdif_rpm_resume(struct device *dev)
{}

static int __maybe_unused lcdif_suspend(struct device *dev)
{}

static int __maybe_unused lcdif_resume(struct device *dev)
{}

static const struct dev_pm_ops lcdif_pm_ops =;

static struct platform_driver lcdif_platform_driver =;

drm_module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();