mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-18 08:43:25 +08:00
font: split font data from video_font.h
While video_font.h is useful even without referencing the font data, it is not possible to be included multiple times because it defines font data array right in the header. This patch splits the font data array into video_font_data.h and so now video_font.h can be included multiple times. This at least solves the code duplication in board/mcc200/lcd.c. Signed-off-by: Che-Liang Chiou <clchiou@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
c270730f58
commit
d3983ee853
@ -125,6 +125,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
/************************************************************************/
|
||||
|
||||
#include <video_font.h> /* Get font data, width and height */
|
||||
#include <video_font_data.h>
|
||||
|
||||
#ifdef CONFIG_VIDEO_LOGO
|
||||
#include <video_logo.h> /* Get logo data, width and height */
|
||||
|
@ -55,6 +55,9 @@
|
||||
#define PSOC_RETRIES 10 /* each of PSOC_WAIT_TIME */
|
||||
#define PSOC_WAIT_TIME 10 /* usec */
|
||||
|
||||
#include <video_font.h>
|
||||
#define FONT_WIDTH VIDEO_FONT_WIDTH
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/*
|
||||
@ -185,7 +188,6 @@ void lcd_enable (void)
|
||||
}
|
||||
#ifdef CONFIG_PROGRESSBAR
|
||||
|
||||
#define FONT_WIDTH 8 /* the same as VIDEO_FONT_WIDTH in video_font.h */
|
||||
void show_progress (int size, int tot)
|
||||
{
|
||||
int cnt;
|
||||
|
@ -57,6 +57,7 @@
|
||||
/* ** FONT DATA */
|
||||
/************************************************************************/
|
||||
#include <video_font.h> /* Get font data, width and height */
|
||||
#include <video_font_data.h>
|
||||
|
||||
/************************************************************************/
|
||||
/* ** LOGO DATA */
|
||||
|
@ -203,6 +203,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <stdio_dev.h>
|
||||
#include <video_font.h>
|
||||
#include <video_font_data.h>
|
||||
|
||||
#if defined(CONFIG_CMD_DATE)
|
||||
#include <rtc.h>
|
||||
|
@ -41,6 +41,7 @@
|
||||
|
||||
/* include the font data */
|
||||
#include <video_font.h>
|
||||
#include <video_font_data.h>
|
||||
|
||||
#if VIDEO_FONT_WIDTH != 8 || VIDEO_FONT_HEIGHT != 16
|
||||
#error Expecting VIDEO_FONT_WIDTH == 8 && VIDEO_FONT_HEIGHT == 16
|
||||
|
4614
include/video_font.h
4614
include/video_font.h
File diff suppressed because it is too large
Load Diff
4639
include/video_font_data.h
Normal file
4639
include/video_font_data.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user