mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-21 18:35:13 -04:00
boot: fix some silly mistakes
This commit is contained in:
parent
db47a0c041
commit
b5e91ff9a4
4 changed files with 17 additions and 9 deletions
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include "boot_functions.hpp"
|
||||
#include "boot_reboot_manager.hpp"
|
||||
#include "i2c_driver/i2c_api.hpp"
|
||||
|
||||
extern "C" {
|
||||
extern u32 __start__;
|
||||
|
@ -120,18 +121,25 @@ int main(int argc, char **argv)
|
|||
/* Talk to PMIC/RTC, set boot reason with SPL. */
|
||||
Boot::DetectBootReason();
|
||||
|
||||
/* Display splash screen for two seconds. */
|
||||
Boot::ShowSplashScreen();
|
||||
const HardwareType hw_type = Boot::GetHardwareType();
|
||||
if (hw_type != HardwareType_Copper) {
|
||||
/* Display splash screen for two seconds. */
|
||||
Boot::ShowSplashScreen();
|
||||
|
||||
/* Check that the battery has enough to boot. */
|
||||
Boot::CheckBatteryCharge();
|
||||
/* Check that the battery has enough to boot. */
|
||||
Boot::CheckBatteryCharge();
|
||||
}
|
||||
|
||||
/* Configure pinmux + drive pads. */
|
||||
Boot::ConfigurePinmux();
|
||||
|
||||
/* TODO: SetInitialWakePinConfiguration(); */
|
||||
|
||||
Boot::SetInitialClockConfiguration();
|
||||
if (hw_type != HardwareType_Copper) {
|
||||
Boot::SetInitialClockConfiguration();
|
||||
}
|
||||
|
||||
Boot::SetFanEnabled();
|
||||
|
||||
/* TODO: CheckAndRepairBootImages(); */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue