xref: /OK3568_Linux_fs/u-boot/include/video_rockchip.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6 
7 #ifndef VIDEO_ROCKCHIP_H
8 #define VIDEO_ROCKCHIP_H
9 
10 #ifdef CONFIG_DRM_ROCKCHIP_VIDEO_FRAMEBUFFER
11  #define DRM_ROCKCHIP_FB_WIDTH		1920
12  #define DRM_ROCKCHIP_FB_HEIGHT		1080
13  #define DRM_ROCKCHIP_FB_BPP		VIDEO_BPP32
14 #else
15  #define DRM_ROCKCHIP_FB_WIDTH		0
16  #define DRM_ROCKCHIP_FB_HEIGHT		0
17  #define DRM_ROCKCHIP_FB_BPP		VIDEO_BPP32
18 #endif
19 
20 #define MEMORY_POOL_SIZE	CONFIG_DRM_MEM_RESERVED_SIZE_MBYTES * 1024 * 1024
21 #define DRM_ROCKCHIP_FB_SIZE \
22 	VNBYTES(DRM_ROCKCHIP_FB_BPP) * DRM_ROCKCHIP_FB_WIDTH * DRM_ROCKCHIP_FB_HEIGHT
23 
24 int rockchip_show_bmp(const char *bmp);
25 int rockchip_show_logo(void);
26 void rockchip_display_fixup(void *blob);
27 
28 #endif
29