ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
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
/*
 * drivers/video/sunxi/bootGUI/boot_gui.c
 *
 * Copyright (c) 2007-2019 Allwinnertech Co., Ltd.
 * Author: zhengxiaobin <zhengxiaobin@allwinnertech.com>
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#include <common.h>
#include <boot_gui.h>
#include "fb_con.h"
#include "boot_gui_config.h"
 
int save_disp_cmd(void)
{
   int i;
   for (i = FB_ID_0; i < FRAMEBUFFER_NUM; ++i) {
       fb_save_para(i);
   }
   return 0;
}
 
int save_disp_cmdline(void)
{
   int i;
   for (i = FB_ID_0; i < FRAMEBUFFER_NUM; ++i) {
       fb_update_cmdline(i);
   }
   return 0;
}
 
int boot_gui_init(void)
{
   int ret = 0;
 
   tick_printf("%s:start\n", __func__);
   ret = disp_devices_open();
   ret += fb_init();
   tick_printf("%s:finish\n", __func__);
   return ret;
}