fusee: update display code for mariko

This commit is contained in:
hexkyz
2020-11-30 19:05:39 +00:00
committed by Michael Scire
parent b9428dd2f3
commit 83fa9983bf
15 changed files with 3347 additions and 1818 deletions

View File

@@ -98,7 +98,11 @@ static ssize_t decode_utf8(uint32_t *out, const uint8_t *in) {
static void console_init_display(void) {
/* Initialize the display. */
display_init();
if (fuse_get_soc_type() == 1) {
display_init_mariko();
} else {
display_init_erista();
}
/* Set the framebuffer. */
display_init_framebuffer(g_framebuffer);
@@ -198,7 +202,11 @@ int console_end(void) {
display_backlight(false);
/* Terminate the display. */
display_end();
if (fuse_get_soc_type() == 1) {
display_end_mariko();
} else {
display_end_erista();
}
/* Display is terminated. */
g_display_initialized = false;