Home
last modified time | relevance | path

Searched refs:mdp4_kms (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_kms.c20 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_hw_init() local
21 struct drm_device *dev = mdp4_kms->dev; in mdp4_hw_init()
28 mdp4_enable(mdp4_kms); in mdp4_hw_init()
29 version = mdp4_read(mdp4_kms, REG_MDP4_VERSION); in mdp4_hw_init()
30 mdp4_disable(mdp4_kms); in mdp4_hw_init()
44 mdp4_kms->rev = minor; in mdp4_hw_init()
46 if (mdp4_kms->rev > 1) { in mdp4_hw_init()
47 mdp4_write(mdp4_kms, REG_MDP4_CS_CONTROLLER0, 0x0707ffff); in mdp4_hw_init()
48 mdp4_write(mdp4_kms, REG_MDP4_CS_CONTROLLER1, 0x03073f3f); in mdp4_hw_init()
51 mdp4_write(mdp4_kms, REG_MDP4_PORTMAP_MODE, 0x3); in mdp4_hw_init()
[all …]
Dmdp4_irq.c23 struct mdp4_kms *mdp4_kms = container_of(irq, struct mdp4_kms, error_handler); in mdp4_irq_error_handler() local
30 struct drm_printer p = drm_info_printer(mdp4_kms->dev->dev); in mdp4_irq_error_handler()
31 drm_state_dump(mdp4_kms->dev, &p); in mdp4_irq_error_handler()
37 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_irq_preinstall() local
38 mdp4_enable(mdp4_kms); in mdp4_irq_preinstall()
39 mdp4_write(mdp4_kms, REG_MDP4_INTR_CLEAR, 0xffffffff); in mdp4_irq_preinstall()
40 mdp4_write(mdp4_kms, REG_MDP4_INTR_ENABLE, 0x00000000); in mdp4_irq_preinstall()
41 mdp4_disable(mdp4_kms); in mdp4_irq_preinstall()
47 struct mdp4_kms *mdp4_kms = to_mdp4_kms(mdp_kms); in mdp4_irq_postinstall() local
48 struct mdp_irq *error_handler = &mdp4_kms->error_handler; in mdp4_irq_postinstall()
[all …]
Dmdp4_crtc.c61 static struct mdp4_kms *get_kms(struct drm_crtc *crtc) in get_kms()
78 struct mdp4_kms *mdp4_kms = get_kms(crtc); in crtc_flush() local
93 mdp4_write(mdp4_kms, REG_MDP4_OVERLAY_FLUSH, flush); in crtc_flush()
118 struct mdp4_kms *mdp4_kms = get_kms(&mdp4_crtc->base); in unref_cursor_worker() local
119 struct msm_kms *kms = &mdp4_kms->base.base; in unref_cursor_worker()
152 static void setup_mixer(struct mdp4_kms *mdp4_kms) in setup_mixer() argument
154 struct drm_mode_config *config = &mdp4_kms->dev->mode_config; in setup_mixer()
173 mdp4_write(mdp4_kms, REG_MDP4_LAYERMIXER_IN_CFG, mixer_cfg); in setup_mixer()
179 struct mdp4_kms *mdp4_kms = get_kms(crtc); in blend_setup() local
184 mdp4_write(mdp4_kms, REG_MDP4_OVLP_TRANSP_LOW0(ovlp), 0); in blend_setup()
[all …]
Dmdp4_dsi_encoder.c21 static struct mdp4_kms *get_kms(struct drm_encoder *encoder) in get_kms()
43 struct mdp4_kms *mdp4_kms = get_kms(encoder); in mdp4_dsi_encoder_mode_set() local
69 mdp4_write(mdp4_kms, REG_MDP4_DSI_HSYNC_CTRL, in mdp4_dsi_encoder_mode_set()
72 mdp4_write(mdp4_kms, REG_MDP4_DSI_VSYNC_PERIOD, vsync_period); in mdp4_dsi_encoder_mode_set()
73 mdp4_write(mdp4_kms, REG_MDP4_DSI_VSYNC_LEN, vsync_len); in mdp4_dsi_encoder_mode_set()
74 mdp4_write(mdp4_kms, REG_MDP4_DSI_DISPLAY_HCTRL, in mdp4_dsi_encoder_mode_set()
77 mdp4_write(mdp4_kms, REG_MDP4_DSI_DISPLAY_VSTART, display_v_start); in mdp4_dsi_encoder_mode_set()
78 mdp4_write(mdp4_kms, REG_MDP4_DSI_DISPLAY_VEND, display_v_end); in mdp4_dsi_encoder_mode_set()
80 mdp4_write(mdp4_kms, REG_MDP4_DSI_CTRL_POLARITY, ctrl_pol); in mdp4_dsi_encoder_mode_set()
81 mdp4_write(mdp4_kms, REG_MDP4_DSI_UNDERFLOW_CLR, in mdp4_dsi_encoder_mode_set()
[all …]
Dmdp4_lcdc_encoder.c27 static struct mdp4_kms *get_kms(struct drm_encoder *encoder) in get_kms()
103 struct mdp4_kms *mdp4_kms = get_kms(encoder); in setup_phy() local
121 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_MUX_CTL_3_TO_0(0), in setup_phy()
126 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_MUX_CTL_6_TO_4(0), in setup_phy()
130 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_MUX_CTL_3_TO_0(1), in setup_phy()
135 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_MUX_CTL_6_TO_4(1), in setup_phy()
139 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_MUX_CTL_3_TO_0(2), in setup_phy()
144 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_MUX_CTL_6_TO_4(2), in setup_phy()
148 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_MUX_CTL_3_TO_0(3), in setup_phy()
153 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_MUX_CTL_6_TO_4(3), in setup_phy()
[all …]
Dmdp4_plane.c53 static struct mdp4_kms *get_kms(struct drm_plane *plane) in get_kms()
96 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_cleanup_fb() local
97 struct msm_kms *kms = &mdp4_kms->base.base; in mdp4_plane_cleanup_fb()
141 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_set_scanout() local
142 struct msm_kms *kms = &mdp4_kms->base.base; in mdp4_plane_set_scanout()
145 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRC_STRIDE_A(pipe), in mdp4_plane_set_scanout()
149 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRC_STRIDE_B(pipe), in mdp4_plane_set_scanout()
153 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRCP0_BASE(pipe), in mdp4_plane_set_scanout()
155 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRCP1_BASE(pipe), in mdp4_plane_set_scanout()
157 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRCP2_BASE(pipe), in mdp4_plane_set_scanout()
[all …]
Dmdp4_dtv_encoder.c22 static struct mdp4_kms *get_kms(struct drm_encoder *encoder) in get_kms()
89 struct mdp4_kms *mdp4_kms = get_kms(encoder); in mdp4_dtv_encoder_mode_set() local
119 mdp4_write(mdp4_kms, REG_MDP4_DTV_HSYNC_CTRL, in mdp4_dtv_encoder_mode_set()
122 mdp4_write(mdp4_kms, REG_MDP4_DTV_VSYNC_PERIOD, vsync_period); in mdp4_dtv_encoder_mode_set()
123 mdp4_write(mdp4_kms, REG_MDP4_DTV_VSYNC_LEN, vsync_len); in mdp4_dtv_encoder_mode_set()
124 mdp4_write(mdp4_kms, REG_MDP4_DTV_DISPLAY_HCTRL, in mdp4_dtv_encoder_mode_set()
127 mdp4_write(mdp4_kms, REG_MDP4_DTV_DISPLAY_VSTART, display_v_start); in mdp4_dtv_encoder_mode_set()
128 mdp4_write(mdp4_kms, REG_MDP4_DTV_DISPLAY_VEND, display_v_end); in mdp4_dtv_encoder_mode_set()
129 mdp4_write(mdp4_kms, REG_MDP4_DTV_BORDER_CLR, 0); in mdp4_dtv_encoder_mode_set()
130 mdp4_write(mdp4_kms, REG_MDP4_DTV_UNDERFLOW_CLR, in mdp4_dtv_encoder_mode_set()
[all …]
Dmdp4_lvds_pll.c19 static struct mdp4_kms *get_kms(struct mdp4_lvds_pll *lvds_pll) in get_kms()
60 struct mdp4_kms *mdp4_kms = get_kms(lvds_pll); in mpd4_lvds_pll_enable() local
69 mdp4_write(mdp4_kms, REG_MDP4_LCDC_LVDS_PHY_RESET, 0x33); in mpd4_lvds_pll_enable()
72 mdp4_write(mdp4_kms, pll_rate->conf[i].reg, pll_rate->conf[i].val); in mpd4_lvds_pll_enable()
74 mdp4_write(mdp4_kms, REG_MDP4_LVDS_PHY_PLL_CTRL_0, 0x01); in mpd4_lvds_pll_enable()
77 while (!mdp4_read(mdp4_kms, REG_MDP4_LVDS_PHY_PLL_LOCKED)) in mpd4_lvds_pll_enable()
86 struct mdp4_kms *mdp4_kms = get_kms(lvds_pll); in mpd4_lvds_pll_disable() local
90 mdp4_write(mdp4_kms, REG_MDP4_LVDS_PHY_CFG0, 0x0); in mpd4_lvds_pll_disable()
91 mdp4_write(mdp4_kms, REG_MDP4_LVDS_PHY_PLL_CTRL_0, 0x0); in mpd4_lvds_pll_disable()
Dmdp4_kms.h19 struct mdp4_kms { struct
43 #define to_mdp4_kms(x) container_of(x, struct mdp4_kms, base) argument
51 static inline void mdp4_write(struct mdp4_kms *mdp4_kms, u32 reg, u32 data) in mdp4_write() argument
53 msm_writel(data, mdp4_kms->mmio + reg); in mdp4_write()
56 static inline u32 mdp4_read(struct mdp4_kms *mdp4_kms, u32 reg) in mdp4_read() argument
58 return msm_readl(mdp4_kms->mmio + reg); in mdp4_read()
155 int mdp4_disable(struct mdp4_kms *mdp4_kms);
156 int mdp4_enable(struct mdp4_kms *mdp4_kms);
/Linux-v5.4/drivers/gpu/drm/msm/
DMakefile40 disp/mdp4/mdp4_kms.o \