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 #include <video_fb.h>
13 #elif defined CONFIG_LCD
14 #include <lcd.h>
15 #endif
16 
17 struct nx_display_dev {
18 #if defined CONFIG_VIDEO || defined CONFIG_DM_VIDEO
19 	GraphicDevice graphic_device;
20 #elif defined CONFIG_LCD
21 	vidinfo_t *panel_info;
22 #endif
23 	unsigned long base;
24 	int module;
25 	struct dp_sync_info sync;
26 	struct dp_ctrl_info ctrl;
27 	struct dp_plane_top top;
28 	struct dp_plane_info planes[DP_PLANS_NUM];
29 	int dev_type;
30 	void *device;
31 	struct dp_plane_info *fb_plane;
32 	unsigned int depth;	/* byte per pixel */
33 	unsigned int fb_addr;
34 	unsigned int fb_size;
35 };
36 
37 #endif
38