fusee/sept: delegate SoC selection to individual components and keep common code SoC-agnostic
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user