summaryrefslogtreecommitdiff
path: root/arch/arm/mach-nexell/include/mach/display_dev.h
blob: 77eb614768c72b5f15352dd8c7478e1fe2aa9c4c (plain)
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
29
30
31
32
33
34
35
36
37
/* SPDX-License-Identifier: GPL-2.0+
 *
 * Copyright (C) 2016  Nexell Co., Ltd.
 *
 * Author: junghyun, kim <jhkim@nexell.co.kr>
 */

#ifndef _NX__DISPLAY_DEV_H_
#define _NX__DISPLAY_DEV_H_

#if defined CONFIG_VIDEO || defined CONFIG_DM_VIDEO
#include <video_fb.h>
#elif defined CONFIG_LCD
#include <lcd.h>
#endif

struct nx_display_dev {
#if defined CONFIG_VIDEO || defined CONFIG_DM_VIDEO
	GraphicDevice graphic_device;
#elif defined CONFIG_LCD
	vidinfo_t *panel_info;
#endif
	unsigned long base;
	int module;
	struct dp_sync_info sync;
	struct dp_ctrl_info ctrl;
	struct dp_plane_top top;
	struct dp_plane_info planes[DP_PLANS_NUM];
	int dev_type;
	void *device;
	struct dp_plane_info *fb_plane;
	unsigned int depth;	/* byte per pixel */
	unsigned int fb_addr;
	unsigned int fb_size;
};

#endif