linux/drivers/gpu/drm/tiny/ili9163.c

// SPDX-License-Identifier: GPL-2.0+

#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/property.h>
#include <linux/spi/spi.h>

#include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_fbdev_dma.h>
#include <drm/drm_gem_atomic_helper.h>
#include <drm/drm_gem_dma_helper.h>
#include <drm/drm_mipi_dbi.h>
#include <drm/drm_modeset_helper.h>

#include <video/mipi_display.h>

#define ILI9163_FRMCTR1

#define ILI9163_PWCTRL1
#define ILI9163_PWCTRL2
#define ILI9163_VMCTRL1
#define ILI9163_VMCTRL2
#define ILI9163_PWCTRLA
#define ILI9163_PWCTRLB

#define ILI9163_EN3GAM

#define ILI9163_MADCTL_BGR
#define ILI9163_MADCTL_MV
#define ILI9163_MADCTL_MX
#define ILI9163_MADCTL_MY

static void yx240qv29_enable(struct drm_simple_display_pipe *pipe,
			     struct drm_crtc_state *crtc_state,
			     struct drm_plane_state *plane_state)
{}

static const struct drm_simple_display_pipe_funcs ili9163_pipe_funcs =;

static const struct drm_display_mode yx240qv29_mode =;

DEFINE_DRM_GEM_DMA_FOPS(ili9163_fops);

static struct drm_driver ili9163_driver =;

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

static const struct spi_device_id ili9163_id[] =;
MODULE_DEVICE_TABLE(spi, ili9163_id);

static int ili9163_probe(struct spi_device *spi)
{}

static void ili9163_remove(struct spi_device *spi)
{}

static void ili9163_shutdown(struct spi_device *spi)
{}

static struct spi_driver ili9163_spi_driver =;
module_spi_driver();

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