Initialize earlier the SuperIO so we can have UARTs available for debug output.
This commit is contained in:
parent
96e07c24c2
commit
638852e101
|
@ -82,6 +82,7 @@ int main(int argc, char * argv[]) {
|
||||||
short i;
|
short i;
|
||||||
|
|
||||||
mcp_init();
|
mcp_init();
|
||||||
|
buzzer_off();
|
||||||
|
|
||||||
// At this point, we should be able to call into to console to print to the screens
|
// At this point, we should be able to call into to console to print to the screens
|
||||||
/* Play the SID test bong on the Gideon SID implementation */
|
/* Play the SID test bong on the Gideon SID implementation */
|
||||||
|
@ -94,7 +95,7 @@ int main(int argc, char * argv[]) {
|
||||||
INFO("CLI initialized.");
|
INFO("CLI initialized.");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if MODEL == MODEL_FOENIX_A2560U || MODEL == MODEL_FOENIX_A2560U_PLUS
|
#if MODEL == MODEL_FOENIX_A2560U || MODEL == MODEL_FOENIX_A2560U_PLUS || MODEL == MODEL_FOENIX_A2560X
|
||||||
// Make sure the command path is set to the default before we get started
|
// Make sure the command path is set to the default before we get started
|
||||||
cli_command_set("");
|
cli_command_set("");
|
||||||
TRACE("Calling boot_screen()");
|
TRACE("Calling boot_screen()");
|
||||||
|
@ -153,6 +154,12 @@ static void hw_initialize(void) {
|
||||||
|
|
||||||
/* Setup logging early to facilitate troubleshooting. This may require the UART to be
|
/* Setup logging early to facilitate troubleshooting. This may require the UART to be
|
||||||
* functional (e.g. if debugging to the serial port) so it may call uart_init. */
|
* functional (e.g. if debugging to the serial port) so it may call uart_init. */
|
||||||
|
|
||||||
|
#if HAS_SUPERIO
|
||||||
|
/* Initialize the SuperIO chip. We do this early so to have the UARTs available for debug output */
|
||||||
|
superio_init();
|
||||||
|
INFO("SuperIO initialized");
|
||||||
|
#endif
|
||||||
log_init();
|
log_init();
|
||||||
|
|
||||||
/* Fill out the system information */
|
/* Fill out the system information */
|
||||||
|
@ -191,13 +198,6 @@ static void hw_initialize(void) {
|
||||||
rtc_init();
|
rtc_init();
|
||||||
INFO("Real time clock initialized");
|
INFO("Real time clock initialized");
|
||||||
|
|
||||||
|
|
||||||
#if HAS_SUPERIO
|
|
||||||
/* Initialize the SuperIO chip */
|
|
||||||
init_superio();
|
|
||||||
INFO("SuperIO initialized");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Mute the PSG */
|
/* Mute the PSG */
|
||||||
psg_mute_all();
|
psg_mute_all();
|
||||||
INFO("PSGs muted");
|
INFO("PSGs muted");
|
||||||
|
|
Loading…
Reference in a new issue