#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/gpio/consumer.h>
#include <linux/regulator/consumer.h>
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_modes.h>
#include <drm/drm_panel.h>
#include <video/mipi_display.h>
#define ILI9805_EXTCMD_CMD_SET_ENABLE_REG …
#define ILI9805_SETEXTC_PARAMETER1 …
#define ILI9805_SETEXTC_PARAMETER2 …
#define ILI9805_SETEXTC_PARAMETER3 …
#define ILI9805_INSTR(_delay, ...) …
struct ili9805_instr { … };
struct ili9805_desc { … };
struct ili9805 { … };
static const struct ili9805_instr gpm1780a0_init[] = …;
static const struct ili9805_instr tm041xdhg01_init[] = …;
static inline struct ili9805 *panel_to_ili9805(struct drm_panel *panel)
{ … }
static int ili9805_power_on(struct ili9805 *ctx)
{ … }
static int ili9805_power_off(struct ili9805 *ctx)
{ … }
static int ili9805_activate(struct ili9805 *ctx)
{ … }
static int ili9805_prepare(struct drm_panel *panel)
{ … }
static int ili9805_deactivate(struct ili9805 *ctx)
{ … }
static int ili9805_unprepare(struct drm_panel *panel)
{ … }
static const struct drm_display_mode gpm1780a0_timing = …;
static const struct drm_display_mode tm041xdhg01_timing = …;
static int ili9805_get_modes(struct drm_panel *panel,
struct drm_connector *connector)
{ … }
static const struct drm_panel_funcs ili9805_funcs = …;
static int ili9805_dsi_probe(struct mipi_dsi_device *dsi)
{ … }
static void ili9805_dsi_remove(struct mipi_dsi_device *dsi)
{ … }
static const struct ili9805_desc gpm1780a0_desc = …;
static const struct ili9805_desc tm041xdhg01_desc = …;
static const struct of_device_id ili9805_of_match[] = …;
MODULE_DEVICE_TABLE(of, ili9805_of_match);
static struct mipi_dsi_driver ili9805_dsi_driver = …;
module_mipi_dsi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;