drivers/gpu/drm/kmb/kmb_dsi.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/kmb/kmb_dsi.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/kmb/kmb_dsi.h
Extension
.h
Size
9501 bytes
Lines
388
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct kmb_dsi {
	struct drm_encoder base;
	struct device *dev;
	struct platform_device *pdev;
	struct mipi_dsi_host *host;
	struct mipi_dsi_device *device;
	struct drm_bridge *adv_bridge;
	void __iomem *mipi_mmio;
	struct clk *clk_mipi;
	struct clk *clk_mipi_ecfg;
	struct clk *clk_mipi_cfg;
	int sys_clk_mhz;
};

/* DPHY Tx test codes */

enum mipi_ctrl_num {
	MIPI_CTRL0 = 0,
	MIPI_CTRL1,
	MIPI_CTRL2,
	MIPI_CTRL3,
	MIPI_CTRL4,
	MIPI_CTRL5,
	MIPI_CTRL6,
	MIPI_CTRL7,
	MIPI_CTRL8,
	MIPI_CTRL9,
	MIPI_CTRL_NA
};

enum mipi_dphy_num {
	MIPI_DPHY0 = 0,
	MIPI_DPHY1,
	MIPI_DPHY2,
	MIPI_DPHY3,
	MIPI_DPHY4,
	MIPI_DPHY5,
	MIPI_DPHY6,
	MIPI_DPHY7,
	MIPI_DPHY8,
	MIPI_DPHY9,
	MIPI_DPHY_NA
};

enum mipi_dir {
	MIPI_RX,
	MIPI_TX
};

enum mipi_ctrl_type {
	MIPI_DSI,
	MIPI_CSI
};

enum mipi_data_if {
	MIPI_IF_DMA,
	MIPI_IF_PARALLEL
};

enum mipi_data_mode {
	MIPI_DATA_MODE0,
	MIPI_DATA_MODE1,
	MIPI_DATA_MODE2,
	MIPI_DATA_MODE3
};

enum mipi_dsi_video_mode {
	DSI_VIDEO_MODE_NO_BURST_PULSE,
	DSI_VIDEO_MODE_NO_BURST_EVENT,
	DSI_VIDEO_MODE_BURST
};

enum mipi_dsi_blanking_mode {
	TRANSITION_TO_LOW_POWER,
	SEND_BLANK_PACKET
};

enum mipi_dsi_eotp {
	DSI_EOTP_DISABLED,
	DSI_EOTP_ENABLES
};

enum mipi_dsi_data_type {
	DSI_SP_DT_RESERVED_00 = 0x00,
	DSI_SP_DT_VSYNC_START = 0x01,
	DSI_SP_DT_COLOR_MODE_OFF = 0x02,
	DSI_SP_DT_GENERIC_SHORT_WR = 0x03,
	DSI_SP_DT_GENERIC_RD = 0x04,
	DSI_SP_DT_DCS_SHORT_WR = 0x05,
	DSI_SP_DT_DCS_RD = 0x06,

Annotation

Implementation Notes