Stefan Bosch | 48397f1 | 2020-07-10 19:07:25 +0200 | [diff] [blame] | 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 | |
Simon Glass | 03fbd25 | 2022-01-23 07:04:08 -0700 | [diff] [blame^] | 11 | #if !defined(CONFIG_DM_VIDEO) && defined(CONFIG_LCD) |
Stefan Bosch | 48397f1 | 2020-07-10 19:07:25 +0200 | [diff] [blame] | 12 | #include <lcd.h> |
| 13 | #endif |
| 14 | |
| 15 | struct nx_display_dev { |
Simon Glass | 03fbd25 | 2022-01-23 07:04:08 -0700 | [diff] [blame^] | 16 | #if !defined(CONFIG_DM_VIDEO) && defined(CONFIG_LCD) |
Stefan Bosch | 48397f1 | 2020-07-10 19:07:25 +0200 | [diff] [blame] | 17 | vidinfo_t *panel_info; |
| 18 | #endif |
| 19 | unsigned long base; |
| 20 | int module; |
| 21 | struct dp_sync_info sync; |
| 22 | struct dp_ctrl_info ctrl; |
| 23 | struct dp_plane_top top; |
| 24 | struct dp_plane_info planes[DP_PLANS_NUM]; |
| 25 | int dev_type; |
| 26 | void *device; |
| 27 | struct dp_plane_info *fb_plane; |
| 28 | unsigned int depth; /* byte per pixel */ |
| 29 | unsigned int fb_addr; |
| 30 | unsigned int fb_size; |
| 31 | }; |
| 32 | |
| 33 | #endif |