blob: 661523c4146ca686a3071b347c26931adaa80c6d (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2023-09-23 GuEe-GUI first version
*/
#ifndef __FB_VOPL_H__
#define __FB_VOPL_H__
#include "rockchip-display.h"
enum voplfb_hw_format
{
VOPLFB_FMT_ARGB8888 = 0,
VOPLFB_FMT_RGB888,
VOPLFB_FMT_RGB565,
};
struct voplfb
{
struct rt_graphic_device parent;
void *regs;
rt_uint32_t display_w;
rt_uint32_t display_h;
struct display_timing output_tim;
rt_bool_t output_tim_valid;
rt_bool_t clk_enabled;
struct rt_clk_array *clks;
int irq;
rt_atomic_t vsync;
struct rt_semaphore vsync_sem;
struct rt_graphic_plane *primary;
rt_bool_t powered;
};
rt_uint32_t voplfb_mode_to_hw(rt_uint32_t mode);
rt_uint32_t voplfb_hw_to_bpp(rt_uint32_t hw_fmt);
#endif /* __FB_VOPL_H__ */
|