video console: add 12x22 Sun font from linux

Modern mobile phones typically have high pixel density.
Bootmenu is hardly readable on those with 8x16 font.

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Dzmitry Sankouski 2023-02-27 20:37:07 +03:00 committed by Anatolij Gustschin
parent e7ee1fd567
commit e24db8645f
3 changed files with 6171 additions and 0 deletions

View File

@ -31,6 +31,13 @@ config VIDEO_FONT_8X16
Provides character bitmap data in header file.
When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
config VIDEO_FONT_SUN12X22
bool "12 x 22 font size"
help
Font for video console driver, 12 x 22 pixels
Provides character bitmap data in header file.
When selecting multiple fonts, you may want to enable CMD_SELECT_FONT too.
config VIDEO_LOGO
bool "Show the U-Boot logo on the display"
default y if !SPLASH_SCREEN

View File

@ -15,6 +15,9 @@
#if defined(CONFIG_VIDEO_FONT_8X16)
#include <video_font_8x16.h>
#endif
#if defined(CONFIG_VIDEO_FONT_SUN12X22)
#include <video_font_sun12x22.h>
#endif
static struct video_fontdata __maybe_unused fonts[] = {
#if defined(CONFIG_VIDEO_FONT_8X16)
@ -22,6 +25,9 @@ static struct video_fontdata __maybe_unused fonts[] = {
#endif
#if defined(CONFIG_VIDEO_FONT_4X6)
FONT_ENTRY(4, 6, 4x6),
#endif
#if defined(CONFIG_VIDEO_FONT_SUN12X22)
FONT_ENTRY(12, 22, 12x22),
#endif
{/* list terminator */}
};

File diff suppressed because it is too large Load Diff