mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 04:56:47 +07:00
08de7afa3a
With a call to drm_of_panel_bridge_remove() we could remove the bridge without store it in ldtc internal driver structure. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by: Philippe Cornu <philippe.cornu@st.com> Tested-by: Philippe Cornu <philippe.cornu@st.com> Link: https://patchwork.freedesktop.org/patch/msgid/1506936888-23844-4-git-send-email-benjamin.gaignard@linaro.org
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/*
|
|
* Copyright (C) STMicroelectronics SA 2017
|
|
*
|
|
* Authors: Philippe Cornu <philippe.cornu@st.com>
|
|
* Yannick Fertre <yannick.fertre@st.com>
|
|
* Fabien Dessenne <fabien.dessenne@st.com>
|
|
* Mickael Reulier <mickael.reulier@st.com>
|
|
*
|
|
* License terms: GNU General Public License (GPL), version 2
|
|
*/
|
|
|
|
#ifndef _LTDC_H_
|
|
#define _LTDC_H_
|
|
|
|
struct ltdc_caps {
|
|
u32 hw_version; /* hardware version */
|
|
u32 nb_layers; /* number of supported layers */
|
|
u32 reg_ofs; /* register offset for applicable regs */
|
|
u32 bus_width; /* bus width (32 or 64 bits) */
|
|
const u32 *pix_fmt_hw; /* supported pixel formats */
|
|
};
|
|
|
|
struct ltdc_device {
|
|
struct drm_fbdev_cma *fbdev;
|
|
void __iomem *regs;
|
|
struct clk *pixel_clk; /* lcd pixel clock */
|
|
struct mutex err_lock; /* protecting error_status */
|
|
struct ltdc_caps caps;
|
|
u32 error_status;
|
|
u32 irq_status;
|
|
};
|
|
|
|
int ltdc_crtc_enable_vblank(struct drm_device *dev, unsigned int pipe);
|
|
void ltdc_crtc_disable_vblank(struct drm_device *dev, unsigned int pipe);
|
|
int ltdc_load(struct drm_device *ddev);
|
|
void ltdc_unload(struct drm_device *ddev);
|
|
|
|
#endif
|