ffa45518d99d1f0fb65a0391e168b44428169df3
[platform/kernel/u-boot.git] / arch / arm / mach-nexell / include / mach / display_dev.h
1 /* SPDX-License-Identifier: GPL-2.0+
2  *
3  * Copyright (C) 2016  Nexell Co., Ltd.
4  *
5  * Author: junghyun, kim <jhkim@nexell.co.kr>
6  */
7
8 #ifndef _NX__DISPLAY_DEV_H_
9 #define _NX__DISPLAY_DEV_H_
10
11 #if defined CONFIG_VIDEO || defined CONFIG_DM_VIDEO
12 #elif defined CONFIG_LCD
13 #include <lcd.h>
14 #endif
15
16 struct nx_display_dev {
17 #if defined CONFIG_DM_VIDEO
18         /* GraphicDevice graphic_device;   -- not defined anymore */
19 #elif defined CONFIG_LCD
20         vidinfo_t *panel_info;
21 #endif
22         unsigned long base;
23         int module;
24         struct dp_sync_info sync;
25         struct dp_ctrl_info ctrl;
26         struct dp_plane_top top;
27         struct dp_plane_info planes[DP_PLANS_NUM];
28         int dev_type;
29         void *device;
30         struct dp_plane_info *fb_plane;
31         unsigned int depth;     /* byte per pixel */
32         unsigned int fb_addr;
33         unsigned int fb_size;
34 };
35
36 #endif