mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 09:05:12 +07:00
9569002a39
Hw older versions support non-alpha color formats derived from native alpha color formats only on the primary layer. For instance, RG16 native format without alpha works fine on 2nd layer but XR24 (derived color format from AR24) does not work on 2nd layer. Signed-off-by: Philippe Cornu <philippe.cornu@st.com> Reviewed-by: Yannick Fertré <yannick.fertre@st.com> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20180201104243.20726-3-philippe.cornu@st.com
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* 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>
|
|
*/
|
|
|
|
#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 */
|
|
bool non_alpha_only_l1; /* non-native no-alpha formats on layer 1 */
|
|
};
|
|
|
|
struct ltdc_device {
|
|
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
|