fusee: Complete re-write of the hardware initialization code:
- Updated code to match hekate's; - Improved nxboot (now boots firmwares 2.x successfully); - Temporarily disabled built-in boot system module support; - Fixed multiple bugs.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <malloc.h>
|
||||
#include <sys/iosupport.h>
|
||||
#include "console.h"
|
||||
#include "hwinit.h"
|
||||
#include "di.h"
|
||||
#include "display/video_fb.h"
|
||||
|
||||
static void *g_framebuffer = NULL;
|
||||
@@ -98,7 +98,7 @@ static void console_init_display(void) {
|
||||
/* Turn on the backlight after initializing the lfb */
|
||||
/* to avoid flickering. */
|
||||
if (!g_display_initialized) {
|
||||
display_enable_backlight(true);
|
||||
display_backlight(true);
|
||||
}
|
||||
|
||||
g_display_initialized = true;
|
||||
@@ -144,7 +144,6 @@ static int console_create(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int console_init(bool display_initialized) {
|
||||
g_display_initialized = display_initialized;
|
||||
|
||||
@@ -193,7 +192,7 @@ int console_resume(void) {
|
||||
int console_end(void) {
|
||||
/* Deinitialize the framebuffer and display */
|
||||
if (g_display_initialized) {
|
||||
display_enable_backlight(false);
|
||||
display_backlight(false);
|
||||
display_end();
|
||||
}
|
||||
free(g_framebuffer);
|
||||
|
||||
Reference in New Issue
Block a user