#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regulator/consumer.h>
#include <video/mipi_display.h>
#include <drm/drm_crtc.h>
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_panel.h>
#define MCS_CMD_ACS_PROT …
#define MCS_CMD_ACS_PROT_OFF …
#define MCS_PWR_CTRL_FUNC …
#define MCS_PWR_CTRL_PARAM1_DEFAULT …
#define MCS_PWR_CTRL_PARAM1_VGH_210_DIV …
#define MCS_PWR_CTRL_PARAM1_VGH_240_DIV …
#define MCS_PWR_CTRL_PARAM1_VGH_280_DIV …
#define MCS_PWR_CTRL_PARAM1_VGH_330_DIV …
#define MCS_PWR_CTRL_PARAM1_VGH_410_DIV …
#define MCS_PWR_CTRL_PARAM2_DEFAULT …
#define MCS_PWR_CTRL_PARAM2_VGL_210_DIV …
#define MCS_PWR_CTRL_PARAM2_VGL_240_DIV …
#define MCS_PWR_CTRL_PARAM2_VGL_280_DIV …
#define MCS_PWR_CTRL_PARAM2_VGL_330_DIV …
#define MCS_PWR_CTRL_PARAM2_VGL_410_DIV …
struct jdi_panel { … };
static inline struct jdi_panel *to_panel_jdi(struct drm_panel *panel)
{ … }
static void jdi_wait_frames(struct jdi_panel *jdi, unsigned int frames)
{ … }
static int jdi_panel_disable(struct drm_panel *panel)
{ … }
static int jdi_panel_unprepare(struct drm_panel *panel)
{ … }
static int jdi_setup_symmetrical_split(struct mipi_dsi_device *left,
struct mipi_dsi_device *right,
const struct drm_display_mode *mode)
{ … }
static int jdi_write_dcdc_registers(struct jdi_panel *jdi)
{ … }
static int jdi_panel_prepare(struct drm_panel *panel)
{ … }
static int jdi_panel_enable(struct drm_panel *panel)
{ … }
static const struct drm_display_mode default_mode = …;
static int jdi_panel_get_modes(struct drm_panel *panel,
struct drm_connector *connector)
{ … }
static const struct drm_panel_funcs jdi_panel_funcs = …;
static const struct of_device_id jdi_of_match[] = …;
MODULE_DEVICE_TABLE(of, jdi_of_match);
static int jdi_panel_add(struct jdi_panel *jdi)
{ … }
static void jdi_panel_del(struct jdi_panel *jdi)
{ … }
static int jdi_panel_dsi_probe(struct mipi_dsi_device *dsi)
{ … }
static void jdi_panel_dsi_remove(struct mipi_dsi_device *dsi)
{ … }
static void jdi_panel_dsi_shutdown(struct mipi_dsi_device *dsi)
{ … }
static struct mipi_dsi_driver jdi_panel_dsi_driver = …;
module_mipi_dsi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;