You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
747 B
29 lines
747 B
/*
|
|
* (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
|