Blame view

include/video/imx-lcdif.h 1.56 KB
98de5d7e8   Fancy Fang   MLK-18535-3 gpu: ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  /*
   * Copyright 2018 NXP
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation; either version 2 of the License, or
   * (at your option) any later version.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   */
  
  #ifndef __IMX_LCDIF_H__
  #define __IMX_LCDIF_H__
  
  struct lcdif_soc;
  struct videomode;
  
  struct lcdif_client_platformdata {
  	struct device_node *of_node;
  };
  
  int  lcdif_vblank_irq_get(struct lcdif_soc *lcdif);
  void lcdif_vblank_irq_enable(struct lcdif_soc *lcdif);
  void lcdif_vblank_irq_disable(struct lcdif_soc *lcdif);
  void lcdif_vblank_irq_clear(struct lcdif_soc *lcdif);
a311565f4   Fancy Fang   MLK-18560 drm/imx...
29
30
  int  lcdif_get_bus_fmt_from_pix_fmt(struct lcdif_soc *lcdif,
  				    uint32_t format);
98de5d7e8   Fancy Fang   MLK-18535-3 gpu: ...
31
  int  lcdif_set_pix_fmt(struct lcdif_soc *lcdif, u32 format);
df0072569   Fancy Fang   MLK-19158-2 drm/i...
32
  void lcdif_set_bus_fmt(struct lcdif_soc *lcdif, u32 bus_format);
98de5d7e8   Fancy Fang   MLK-18535-3 gpu: ...
33
34
  void lcdif_set_fb_addr(struct lcdif_soc *lcdif, int id, u32 addr);
  void lcdif_set_mode(struct lcdif_soc *lcdif, struct videomode *vmode);
e5c67c1ce   Fancy Fang   MLK-19152-1 gpu: ...
35
36
  void lcdif_set_fb_hcrop(struct lcdif_soc *lcdif, u32 src_w,
  			u32 fb_w, bool crop);
98de5d7e8   Fancy Fang   MLK-18535-3 gpu: ...
37
38
39
  void lcdif_enable_controller(struct lcdif_soc *lcdif);
  void lcdif_disable_controller(struct lcdif_soc *lcdif);
  void lcdif_dump_registers(struct lcdif_soc *lcdif);
d9be4b3d3   Fancy Fang   LF-2653 drm/imx: ...
40
41
  long lcdif_pix_clk_round_rate(struct lcdif_soc *lcdif,
  			      unsigned long rate);
98de5d7e8   Fancy Fang   MLK-18535-3 gpu: ...
42
43
  
  #endif