summaryrefslogtreecommitdiff
path: root/arch/arm/mach-nexell/include/mach/display_dev.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-07-29 09:26:11 -0400
committerTom Rini <trini@konsulko.com>2020-07-29 09:26:11 -0400
commit423e08cb77015beab6a81595765ec1faa34bedde (patch)
tree268fb246e025b8a5fc4eddc3c207ef428f16eb68 /arch/arm/mach-nexell/include/mach/display_dev.h
parent3b191c56c841596771b4120f09fb556adf958b5c (diff)
parent3fad1ca28d4c87346d18b89438bf2084fb2c3896 (diff)
Merge branch '2020-07-28-misc-soc-improvements'
- Assorted MediaTek improvements - s5p4418 support - QEMU ARM platform improvements - Qualcomm IPQ40xx support
Diffstat (limited to 'arch/arm/mach-nexell/include/mach/display_dev.h')
-rw-r--r--arch/arm/mach-nexell/include/mach/display_dev.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/mach-nexell/include/mach/display_dev.h b/arch/arm/mach-nexell/include/mach/display_dev.h
new file mode 100644
index 0000000000..77eb614768
--- /dev/null
+++ b/arch/arm/mach-nexell/include/mach/display_dev.h
@@ -0,0 +1,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