fusee/sept: delegate SoC selection to individual components and keep common code SoC-agnostic

This commit is contained in:
hexkyz
2020-12-04 16:29:30 +00:00
committed by Michael Scire
parent db8a367834
commit f40fa150d8
20 changed files with 212 additions and 112 deletions

View File

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