hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
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
/*
 * (C) Copyright 2017 Rockchip Electronics Co., Ltd
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */
 
#ifndef VIDEO_ROCKCHIP_H
#define VIDEO_ROCKCHIP_H
 
#ifdef CONFIG_DRM_ROCKCHIP_VIDEO_FRAMEBUFFER
 #define DRM_ROCKCHIP_FB_WIDTH        1920
 #define DRM_ROCKCHIP_FB_HEIGHT        1080
 #define DRM_ROCKCHIP_FB_BPP        VIDEO_BPP32
#else
 #define DRM_ROCKCHIP_FB_WIDTH        0
 #define DRM_ROCKCHIP_FB_HEIGHT        0
 #define DRM_ROCKCHIP_FB_BPP        VIDEO_BPP32
#endif
 
#define MEMORY_POOL_SIZE    CONFIG_DRM_MEM_RESERVED_SIZE_MBYTES * 1024 * 1024
#define DRM_ROCKCHIP_FB_SIZE \
   VNBYTES(DRM_ROCKCHIP_FB_BPP) * DRM_ROCKCHIP_FB_WIDTH * DRM_ROCKCHIP_FB_HEIGHT
 
int rockchip_show_bmp(const char *bmp);
int rockchip_show_logo(void);
void rockchip_display_fixup(void *blob);
 
#endif