]> Git Repo - linux.git/blob - drivers/gpu/drm/stm/ltdc.h
Merge branch 'asoc-4.17' into asoc-4.18 to get adau17x1 changes so
[linux.git] / drivers / gpu / drm / stm / ltdc.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) STMicroelectronics SA 2017
4  *
5  * Authors: Philippe Cornu <[email protected]>
6  *          Yannick Fertre <[email protected]>
7  *          Fabien Dessenne <[email protected]>
8  *          Mickael Reulier <[email protected]>
9  */
10
11 #ifndef _LTDC_H_
12 #define _LTDC_H_
13
14 struct ltdc_caps {
15         u32 hw_version;         /* hardware version */
16         u32 nb_layers;          /* number of supported layers */
17         u32 reg_ofs;            /* register offset for applicable regs */
18         u32 bus_width;          /* bus width (32 or 64 bits) */
19         const u32 *pix_fmt_hw;  /* supported pixel formats */
20         bool non_alpha_only_l1; /* non-native no-alpha formats on layer 1 */
21 };
22
23 struct ltdc_device {
24         void __iomem *regs;
25         struct clk *pixel_clk;  /* lcd pixel clock */
26         struct mutex err_lock;  /* protecting error_status */
27         struct ltdc_caps caps;
28         u32 error_status;
29         u32 irq_status;
30 };
31
32 int ltdc_crtc_enable_vblank(struct drm_device *dev, unsigned int pipe);
33 void ltdc_crtc_disable_vblank(struct drm_device *dev, unsigned int pipe);
34 int ltdc_load(struct drm_device *ddev);
35 void ltdc_unload(struct drm_device *ddev);
36
37 #endif
This page took 0.034359 seconds and 4 git commands to generate.