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