From 9826358533633fa221db41de538ded8adb556a64 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 28 Dec 2020 15:41:21 -0800 Subject: [PATCH] ams: update five -> aula, per CalWriterManu --- exosphere/mariko_fatal/source/fatal_display.cpp | 10 +++++----- exosphere/program/source/secmon_setup.cpp | 4 ++-- exosphere/program/source/smc/secmon_smc_info.cpp | 10 +++++----- .../libexosphere/include/exosphere/fuse.hpp | 12 ++++++------ libraries/libexosphere/source/fuse/fuse_api.cpp | 4 ++-- .../include/stratosphere/spl/spl_types.hpp | 12 ++++++------ .../nintendo_nx/impl/gpio_initial_config.cpp | 16 ++++++++-------- ...fig_five.inc => gpio_initial_config_aula.inc} | 4 ++-- ...inc => gpio_initial_wake_pin_config_aula.inc} | 4 ++-- .../nintendo_nx/pinmux_board_driver_api.cpp | 10 +++++----- ...ve.inc => pinmux_initial_pad_config_aula.inc} | 4 ++-- ...wctl_charger_parameters.board.nintendo_nx.cpp | 4 ++-- ...wctl_charger_parameters.board.nintendo_nx.inc | 6 +++--- libraries/libstratosphere/source/spl/spl_api.cpp | 2 +- .../source/updater/updater_api.cpp | 2 +- stratosphere/boot/source/boot_display.cpp | 10 +++++----- 16 files changed, 57 insertions(+), 57 deletions(-) rename libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/{gpio_initial_config_five.inc => gpio_initial_config_aula.inc} (96%) rename libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/{gpio_initial_wake_pin_config_five.inc => gpio_initial_wake_pin_config_aula.inc} (97%) rename libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/{pinmux_initial_pad_config_five.inc => pinmux_initial_pad_config_aula.inc} (98%) diff --git a/exosphere/mariko_fatal/source/fatal_display.cpp b/exosphere/mariko_fatal/source/fatal_display.cpp index da6575b1a..ad437e4f9 100644 --- a/exosphere/mariko_fatal/source/fatal_display.cpp +++ b/exosphere/mariko_fatal/source/fatal_display.cpp @@ -111,7 +111,7 @@ namespace ams::secmon::fatal { } } - void EnableBacklightForVendor2050ForHardwareTypeFive(int brightness) { + void EnableBacklightForVendor2050ForAula(int brightness) { /* Enable FRAME_END_INT */ reg::Write(g_disp1_regs + sizeof(u32) * DC_CMD_INT_ENABLE, 2); @@ -270,7 +270,7 @@ namespace ams::secmon::fatal { reg::ClearBits(g_apb_misc_regs + PINMUX_AUX_LCD_BL_EN, reg::EncodeMask(PINMUX_REG_BITS_MASK(AUX_TRISTATE))); reg::ClearBits(g_apb_misc_regs + PINMUX_AUX_LCD_RST, reg::EncodeMask(PINMUX_REG_BITS_MASK(AUX_TRISTATE))); - if (fuse::GetHardwareType() == fuse::HardwareType_Five) { + if (fuse::GetHardwareType() == fuse::HardwareType_Aula) { /* Configure LCD backlight. */ reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4); reg::SetBits(g_gpio_regs + GPIO_PORT6_OE_1, 0x4); @@ -384,7 +384,7 @@ namespace ams::secmon::fatal { reg::ClearBits(g_apb_misc_regs + PINMUX_AUX_LCD_BL_EN, reg::EncodeMask(PINMUX_REG_BITS_MASK(AUX_TRISTATE))); reg::ClearBits(g_apb_misc_regs + PINMUX_AUX_LCD_RST, reg::EncodeMask(PINMUX_REG_BITS_MASK(AUX_TRISTATE))); - if (hw_type == fuse::HardwareType_Five) { + if (hw_type == fuse::HardwareType_Aula) { /* Configure LCD backlight. */ reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4); reg::SetBits(g_gpio_regs + GPIO_PORT6_OE_1, 0x4); @@ -429,7 +429,7 @@ namespace ams::secmon::fatal { reg::SetBits(g_gpio_regs + GPIO_PORT6_OUT_1, 0x4); util::WaitMicroSeconds(60'000ul); - if (hw_type == fuse::HardwareType_Five) { + if (hw_type == fuse::HardwareType_Aula) { reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x40103); } else { reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x50204); @@ -593,7 +593,7 @@ namespace ams::secmon::fatal { /* Enable backlight. */ constexpr auto DisplayBrightness = 100; if (GetLcdVendor() == 0x2050) { - EnableBacklightForVendor2050ForHardwareTypeFive(DisplayBrightness); + EnableBacklightForVendor2050ForAula(DisplayBrightness); } else { EnableBacklightForGeneric(DisplayBrightness); } diff --git a/exosphere/program/source/secmon_setup.cpp b/exosphere/program/source/secmon_setup.cpp index 5eabdbdd6..875c2964e 100644 --- a/exosphere/program/source/secmon_setup.cpp +++ b/exosphere/program/source/secmon_setup.cpp @@ -409,8 +409,8 @@ namespace ams::secmon { reg0 |= reg::Encode(SLAVE_SECURITY_REG_BITS_ENUM(0, CEC, ENABLE)); } - /* Icosa, Iowa, and Five all set I2C4 to be secure. */ - if (hw_type == fuse::HardwareType_Icosa && hw_type == fuse::HardwareType_Iowa && hw_type == fuse::HardwareType_Five) { + /* Icosa, Iowa, and Aula all set I2C4 to be secure. */ + if (hw_type == fuse::HardwareType_Icosa && hw_type == fuse::HardwareType_Iowa && hw_type == fuse::HardwareType_Aula) { reg1 |= reg::Encode(SLAVE_SECURITY_REG_BITS_ENUM(1, I2C4, ENABLE)); } diff --git a/exosphere/program/source/smc/secmon_smc_info.cpp b/exosphere/program/source/smc/secmon_smc_info.cpp index e7b52edcc..468b134fb 100644 --- a/exosphere/program/source/smc/secmon_smc_info.cpp +++ b/exosphere/program/source/smc/secmon_smc_info.cpp @@ -47,7 +47,7 @@ namespace ams::secmon::smc { [fuse::DramId_IcosaSamsung4GB] = pkg1::MemorySize_4GB, [fuse::DramId_IcosaHynix4GB] = pkg1::MemorySize_4GB, [fuse::DramId_IcosaMicron4GB] = pkg1::MemorySize_4GB, - [fuse::DramId_FiveHynix1y4GB] = pkg1::MemorySize_4GB, + [fuse::DramId_AulaHynix1y4GB] = pkg1::MemorySize_4GB, [fuse::DramId_IcosaSamsung6GB] = pkg1::MemorySize_6GB, [fuse::DramId_CopperHynix4GB] = pkg1::MemorySize_4GB, [fuse::DramId_CopperMicron4GB] = pkg1::MemorySize_4GB, @@ -66,13 +66,13 @@ namespace ams::secmon::smc { [fuse::DramId_HoagSamsung1y4GBX] = pkg1::MemorySize_4GB, [fuse::DramId_IowaSamsung1y4GBY] = pkg1::MemorySize_4GB, [fuse::DramId_IowaSamsung1y8GBY] = pkg1::MemorySize_8GB, - [fuse::DramId_FiveSamsung1y4GB] = pkg1::MemorySize_4GB, + [fuse::DramId_AulaSamsung1y4GB] = pkg1::MemorySize_4GB, [fuse::DramId_HoagSamsung1y8GBX] = pkg1::MemorySize_8GB, - [fuse::DramId_FiveSamsung1y4GBX] = pkg1::MemorySize_4GB, + [fuse::DramId_AulaSamsung1y4GBX] = pkg1::MemorySize_4GB, [fuse::DramId_IowaMicron1y4GB] = pkg1::MemorySize_4GB, [fuse::DramId_HoagMicron1y4GB] = pkg1::MemorySize_4GB, - [fuse::DramId_FiveMicron1y4GB] = pkg1::MemorySize_4GB, - [fuse::DramId_FiveSamsung1y8GBX] = pkg1::MemorySize_8GB, + [fuse::DramId_AulaMicron1y4GB] = pkg1::MemorySize_4GB, + [fuse::DramId_AulaSamsung1y8GBX] = pkg1::MemorySize_8GB, }; constexpr const pkg1::MemoryMode MemoryModes[] = { diff --git a/libraries/libexosphere/include/exosphere/fuse.hpp b/libraries/libexosphere/include/exosphere/fuse.hpp index c7756109d..cf8b54e9d 100644 --- a/libraries/libexosphere/include/exosphere/fuse.hpp +++ b/libraries/libexosphere/include/exosphere/fuse.hpp @@ -26,7 +26,7 @@ namespace ams::fuse { HardwareType_Hoag = 2, HardwareType_Iowa = 3, HardwareType_Calcio = 4, - HardwareType_Five = 5, + HardwareType_Aula = 5, HardwareType_Undefined = 0xF, }; @@ -51,7 +51,7 @@ namespace ams::fuse { DramId_IcosaSamsung4GB = 0, DramId_IcosaHynix4GB = 1, DramId_IcosaMicron4GB = 2, - DramId_FiveHynix1y4GB = 3, + DramId_AulaHynix1y4GB = 3, DramId_IcosaSamsung6GB = 4, DramId_CopperHynix4GB = 5, DramId_CopperMicron4GB = 6, @@ -70,13 +70,13 @@ namespace ams::fuse { DramId_HoagSamsung1y4GBX = 19, DramId_IowaSamsung1y4GBY = 20, DramId_IowaSamsung1y8GBY = 21, - DramId_FiveSamsung1y4GB = 22, + DramId_AulaSamsung1y4GB = 22, DramId_HoagSamsung1y8GBX = 23, - DramId_FiveSamsung1y4GBX = 24, + DramId_AulaSamsung1y4GBX = 24, DramId_IowaMicron1y4GB = 25, DramId_HoagMicron1y4GB = 26, - DramId_FiveMicron1y4GB = 27, - DramId_FiveSamsung1y8GBX = 28, + DramId_AulaMicron1y4GB = 27, + DramId_AulaSamsung1y8GBX = 28, DramId_Count, }; diff --git a/libraries/libexosphere/source/fuse/fuse_api.cpp b/libraries/libexosphere/source/fuse/fuse_api.cpp index 7e0b4935b..40047a9bb 100644 --- a/libraries/libexosphere/source/fuse/fuse_api.cpp +++ b/libraries/libexosphere/source/fuse/fuse_api.cpp @@ -316,7 +316,7 @@ namespace ams::fuse { case 0x02: return (true /* TODO: GetSocType() == SocType_Mariko */) ? HardwareType_Calcio : HardwareType_Copper; case 0x04: return HardwareType_Iowa; case 0x08: return HardwareType_Hoag; - case 0x10: return HardwareType_Five; + case 0x10: return HardwareType_Aula; default: return HardwareType_Undefined; } } @@ -371,7 +371,7 @@ namespace ams::fuse { case HardwareType_Iowa: case HardwareType_Hoag: case HardwareType_Calcio: - case HardwareType_Five: + case HardwareType_Aula: return SocType_Mariko; default: return SocType_Undefined; diff --git a/libraries/libstratosphere/include/stratosphere/spl/spl_types.hpp b/libraries/libstratosphere/include/stratosphere/spl/spl_types.hpp index 1225cd6e7..3e1f2d74e 100644 --- a/libraries/libstratosphere/include/stratosphere/spl/spl_types.hpp +++ b/libraries/libstratosphere/include/stratosphere/spl/spl_types.hpp @@ -106,12 +106,12 @@ namespace ams::spl { } enum class HardwareType { - Icosa = 0, - Copper = 1, - Hoag = 2, - Iowa = 3, - Calcio = 4, - _Five_ = 5, + Icosa = 0, + Copper = 1, + Hoag = 2, + Iowa = 3, + Calcio = 4, + Aula = 5, }; enum SocType { diff --git a/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config.cpp b/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config.cpp index d229ea01e..b6b102248 100644 --- a/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config.cpp +++ b/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config.cpp @@ -36,14 +36,14 @@ namespace ams::gpio::driver::board::nintendo_nx::impl { #include "gpio_initial_wake_pin_config_hoag.inc" #include "gpio_initial_wake_pin_config_iowa.inc" #include "gpio_initial_wake_pin_config_calcio.inc" - #include "gpio_initial_wake_pin_config_five.inc" + #include "gpio_initial_wake_pin_config_aula.inc" #include "gpio_initial_config_icosa.inc" /* #include "gpio_initial_config_copper.inc" */ #include "gpio_initial_config_hoag.inc" #include "gpio_initial_config_iowa.inc" #include "gpio_initial_config_calcio.inc" - #include "gpio_initial_config_five.inc" + #include "gpio_initial_config_aula.inc" } @@ -70,9 +70,9 @@ namespace ams::gpio::driver::board::nintendo_nx::impl { configs = InitialGpioConfigsCalcio; num_configs = NumInitialGpioConfigsCalcio; break; - case spl::HardwareType::_Five_: - configs = InitialGpioConfigsFive; - num_configs = NumInitialGpioConfigsFive; + case spl::HardwareType::Aula: + configs = InitialGpioConfigsAula; + num_configs = NumInitialGpioConfigsAula; break; case spl::HardwareType::Copper: AMS_UNREACHABLE_DEFAULT_CASE(); @@ -151,9 +151,9 @@ namespace ams::gpio::driver::board::nintendo_nx::impl { configs = InitialWakePinConfigsCalcio; num_configs = NumInitialWakePinConfigsCalcio; break; - case spl::HardwareType::_Five_: - configs = InitialWakePinConfigsFive; - num_configs = NumInitialWakePinConfigsFive; + case spl::HardwareType::Aula: + configs = InitialWakePinConfigsAula; + num_configs = NumInitialWakePinConfigsAula; break; case spl::HardwareType::Copper: AMS_UNREACHABLE_DEFAULT_CASE(); diff --git a/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config_five.inc b/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config_aula.inc similarity index 96% rename from libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config_five.inc rename to libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config_aula.inc index bc86cb937..e1c90ee52 100644 --- a/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config_five.inc +++ b/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_config_aula.inc @@ -16,7 +16,7 @@ /* NOTE: This file is auto-generated by gpio_pad_gen.py, do not edit manually. */ -constexpr inline const GpioInitialConfig InitialGpioConfigsFive[] = { +constexpr inline const GpioInitialConfig InitialGpioConfigsAula[] = { { DeviceCode_GameCardReset, Direction_Output, GpioValue_Low }, { DeviceCode_CodecAlert, Direction_Input, GpioValue_Low }, { DeviceCode_Debug0, Direction_Output, GpioValue_Low }, @@ -67,4 +67,4 @@ constexpr inline const GpioInitialConfig InitialGpioConfigsFive[] = { { DeviceCode_ExtconChgS, Direction_Output, GpioValue_Low }, }; -constexpr inline size_t NumInitialGpioConfigsFive = util::size(InitialGpioConfigsFive); +constexpr inline size_t NumInitialGpioConfigsAula = util::size(InitialGpioConfigsAula); diff --git a/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_wake_pin_config_five.inc b/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_wake_pin_config_aula.inc similarity index 97% rename from libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_wake_pin_config_five.inc rename to libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_wake_pin_config_aula.inc index 809cbf591..d955382fb 100644 --- a/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_wake_pin_config_five.inc +++ b/libraries/libstratosphere/source/gpio/driver/board/nintendo_nx/impl/gpio_initial_wake_pin_config_aula.inc @@ -16,7 +16,7 @@ /* NOTE: This file is auto-generated by wake_pin_gen.py, do not edit manually. */ -constexpr inline const WakePinConfig InitialWakePinConfigsFive[] = { +constexpr inline const WakePinConfig InitialWakePinConfigsAula[] = { { ams::wec::WakeEvent_PexWakeN, false, ams::wec::WakeEventLevel_Auto }, { ams::wec::WakeEvent_GpioPortA6, false, ams::wec::WakeEventLevel_Auto }, { ams::wec::WakeEvent_QspiCsN, false, ams::wec::WakeEventLevel_Auto }, @@ -77,4 +77,4 @@ constexpr inline const WakePinConfig InitialWakePinConfigsFive[] = { { ams::wec::WakeEvent_MotionInt, false, ams::wec::WakeEventLevel_Auto }, }; -constexpr inline size_t NumInitialWakePinConfigsFive = util::size(InitialWakePinConfigsFive); +constexpr inline size_t NumInitialWakePinConfigsAula = util::size(InitialWakePinConfigsAula); diff --git a/libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_board_driver_api.cpp b/libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_board_driver_api.cpp index fabedbbd4..fc35ce961 100644 --- a/libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_board_driver_api.cpp +++ b/libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_board_driver_api.cpp @@ -28,7 +28,7 @@ namespace ams::pinmux::driver::board::nintendo_nx { #include "pinmux_initial_pad_config_hoag.inc" #include "pinmux_initial_pad_config_iowa.inc" #include "pinmux_initial_pad_config_calcio.inc" - #include "pinmux_initial_pad_config_five.inc" + #include "pinmux_initial_pad_config_aula.inc" #include "pinmux_initial_drive_pad_config.inc" #include "pinmux_initial_drive_pad_config_hoag.inc" @@ -73,9 +73,9 @@ namespace ams::pinmux::driver::board::nintendo_nx { num_configs = NumPinmuxPadConfigsCalcio; is_mariko = true; break; - case spl::HardwareType::_Five_: - configs = PinmuxPadConfigsFive; - num_configs = NumPinmuxPadConfigsFive; + case spl::HardwareType::Aula: + configs = PinmuxPadConfigsAula; + num_configs = NumPinmuxPadConfigsAula; is_mariko = true; break; AMS_UNREACHABLE_DEFAULT_CASE(); @@ -121,7 +121,7 @@ namespace ams::pinmux::driver::board::nintendo_nx { configs = PinmuxDrivePadConfigs; num_configs = NumPinmuxDrivePadConfigs; break; - case spl::HardwareType::_Five_: + case spl::HardwareType::Aula: configs = PinmuxDrivePadConfigs; num_configs = NumPinmuxDrivePadConfigs; break; diff --git a/libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_initial_pad_config_five.inc b/libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_initial_pad_config_aula.inc similarity index 98% rename from libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_initial_pad_config_five.inc rename to libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_initial_pad_config_aula.inc index 027913665..14bcc7674 100644 --- a/libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_initial_pad_config_five.inc +++ b/libraries/libstratosphere/source/pinmux/driver/board/nintendo_nx/pinmux_initial_pad_config_aula.inc @@ -16,7 +16,7 @@ /* NOTE: This file is auto-generated by pinmux_initial_config.py, do not edit manually. */ -constexpr inline const PinmuxPadConfig PinmuxPadConfigsFive[] = { +constexpr inline const PinmuxPadConfig PinmuxPadConfigsAula[] = { { PinmuxPadIndex_AudMclk, 0x00000000, 0x0000007F }, { PinmuxPadIndex_Dap1Din, 0x00000028, 0x0000007F }, { PinmuxPadIndex_Dap1Dout, 0x00000000, 0x0000007F }, @@ -193,4 +193,4 @@ constexpr inline const PinmuxPadConfig PinmuxPadConfigsFive[] = { { PinmuxPadIndex_HdmiCec, 0x00000005, 0x00000007 }, }; -constexpr inline const size_t NumPinmuxPadConfigsFive = util::size(PinmuxPadConfigsFive); +constexpr inline const size_t NumPinmuxPadConfigsAula = util::size(PinmuxPadConfigsAula); diff --git a/libraries/libstratosphere/source/powctl/driver/impl/powctl_charger_parameters.board.nintendo_nx.cpp b/libraries/libstratosphere/source/powctl/driver/impl/powctl_charger_parameters.board.nintendo_nx.cpp index aa49183be..6c38cba2f 100644 --- a/libraries/libstratosphere/source/powctl/driver/impl/powctl_charger_parameters.board.nintendo_nx.cpp +++ b/libraries/libstratosphere/source/powctl/driver/impl/powctl_charger_parameters.board.nintendo_nx.cpp @@ -63,8 +63,8 @@ namespace ams::powctl::driver::impl { } else if (battery_version == 1) { return ChargeParametersForBatteryVersion1; } else { - if (spl::GetHardwareType() == spl::HardwareType::_Five_) { - return ChargeParametersForBatteryVersion0ForFive; + if (spl::GetHardwareType() == spl::HardwareType::Aula) { + return ChargeParametersForBatteryVersion0ForAula; } else { return ChargeParametersForBatteryVersion0; } diff --git a/libraries/libstratosphere/source/powctl/driver/impl/powctl_charger_parameters.board.nintendo_nx.inc b/libraries/libstratosphere/source/powctl/driver/impl/powctl_charger_parameters.board.nintendo_nx.inc index 70f86ac09..a88f5f4da 100644 --- a/libraries/libstratosphere/source/powctl/driver/impl/powctl_charger_parameters.board.nintendo_nx.inc +++ b/libraries/libstratosphere/source/powctl/driver/impl/powctl_charger_parameters.board.nintendo_nx.inc @@ -51,7 +51,7 @@ constexpr inline const ChargeParametersRule ChargeParametersRulesForBatteryVersi { BatteryTemperatureLevel::TooHigh, 4080, Max, Min, Max, Min, Max, AcceptablePowerStates, util::size(AcceptablePowerStates), false, false, 4320, 1664, 0, 0 }, }; -constexpr inline const ChargeParametersRule ChargeParametersRulesForBatteryVersion0ForFive[] = { +constexpr inline const ChargeParametersRule ChargeParametersRulesForBatteryVersion0ForAula[] = { { BatteryTemperatureLevel::TooLow, Min, Max, Min, Max, Min, Max, AcceptablePowerStates, util::size(AcceptablePowerStates), false, false, 4208, 768, 0, 0 }, { BatteryTemperatureLevel::Low, Min, Max, Min, Max, Min, Max, AcceptablePowerStates, util::size(AcceptablePowerStates), false, true, 4208, 768, 0, 0 }, { BatteryTemperatureLevel::Medium, Min, Max, Min, 4001, 2049, Max, AcceptablePowerStatesForNotAwakeCharge, util::size(AcceptablePowerStatesForNotAwakeCharge), true, true, 4000, 3072, 40, 112 }, @@ -74,6 +74,6 @@ constexpr inline const ChargeParameters ChargeParametersForBatteryVersion2 = { 1, 19, 48, 59, 1664, 4320, UnknownXTableForBatteryVersion2, util::size(UnknownXTableForBatteryVersion2), 95.0, 100.4, ChargeParametersRulesForBatteryVersion2, util::size(ChargeParametersRulesForBatteryVersion2) }; -constexpr inline const ChargeParameters ChargeParametersForBatteryVersion0ForFive = { - 4, 17, 51, 60, 512, 4208, nullptr, 0, 95.0, 99.0, ChargeParametersRulesForBatteryVersion0ForFive, util::size(ChargeParametersRulesForBatteryVersion0ForFive) +constexpr inline const ChargeParameters ChargeParametersForBatteryVersion0ForAula = { + 4, 17, 51, 60, 512, 4208, nullptr, 0, 95.0, 99.0, ChargeParametersRulesForBatteryVersion0ForAula, util::size(ChargeParametersRulesForBatteryVersion0ForAula) }; diff --git a/libraries/libstratosphere/source/spl/spl_api.cpp b/libraries/libstratosphere/source/spl/spl_api.cpp index ed5de7854..721ff7df7 100644 --- a/libraries/libstratosphere/source/spl/spl_api.cpp +++ b/libraries/libstratosphere/source/spl/spl_api.cpp @@ -254,7 +254,7 @@ namespace ams::spl { return SocType_Erista; case HardwareType::Hoag: case HardwareType::Iowa: - case HardwareType::_Five_: + case HardwareType::Aula: return SocType_Mariko; AMS_UNREACHABLE_DEFAULT_CASE(); } diff --git a/libraries/libstratosphere/source/updater/updater_api.cpp b/libraries/libstratosphere/source/updater/updater_api.cpp index 124cee5d1..00071b8e4 100644 --- a/libraries/libstratosphere/source/updater/updater_api.cpp +++ b/libraries/libstratosphere/source/updater/updater_api.cpp @@ -464,7 +464,7 @@ namespace ams::updater { case spl::HardwareType::Hoag: case spl::HardwareType::Iowa: case spl::HardwareType::Calcio: - case spl::HardwareType::_Five_: + case spl::HardwareType::Aula: return BootImageUpdateType::Mariko; AMS_UNREACHABLE_DEFAULT_CASE(); } diff --git a/stratosphere/boot/source/boot_display.cpp b/stratosphere/boot/source/boot_display.cpp index 950916226..4a7fb87c9 100644 --- a/stratosphere/boot/source/boot_display.cpp +++ b/stratosphere/boot/source/boot_display.cpp @@ -203,7 +203,7 @@ namespace ams::boot { } } - void EnableBacklightForVendor2050ForHardwareTypeFive(int brightness) { + void EnableBacklightForVendor2050ForAula(int brightness) { /* Enable FRAME_END_INT */ reg::Write(g_disp1_regs + sizeof(u32) * DC_CMD_INT_ENABLE, 2); @@ -305,7 +305,7 @@ namespace ams::boot { reg::ClearBits(g_apb_misc_regs + PINMUX_AUX_LCD_BL_EN, reg::EncodeMask(PINMUX_REG_BITS_MASK(AUX_TRISTATE))); reg::ClearBits(g_apb_misc_regs + PINMUX_AUX_LCD_RST, reg::EncodeMask(PINMUX_REG_BITS_MASK(AUX_TRISTATE))); - if (hw_type == spl::HardwareType::_Five_) { + if (hw_type == spl::HardwareType::Aula) { /* Configure LCD backlight. */ reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4); reg::SetBits(g_gpio_regs + GPIO_PORT6_OE_1, 0x4); @@ -358,7 +358,7 @@ namespace ams::boot { reg::SetBits(g_gpio_regs + GPIO_PORT6_OUT_1, 0x4); os::SleepThread(TimeSpan::FromMilliSeconds(60)); - if (hw_type == spl::HardwareType::_Five_) { + if (hw_type == spl::HardwareType::Aula) { reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x40103); } else { reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x50204); @@ -512,7 +512,7 @@ namespace ams::boot { /* Enable backlight. */ if (g_lcd_vendor == 0x2050) { - EnableBacklightForVendor2050ForHardwareTypeFive(g_display_brightness); + EnableBacklightForVendor2050ForAula(g_display_brightness); } else { EnableBacklightForGeneric(g_display_brightness); } @@ -525,7 +525,7 @@ namespace ams::boot { /* Disable backlight. */ if (g_lcd_vendor == 0x2050) { - EnableBacklightForVendor2050ForHardwareTypeFive(0); + EnableBacklightForVendor2050ForAula(0); } else { pwm::driver::SetEnabled(g_lcd_backlight_session, false); pwm::driver::CloseSession(g_lcd_backlight_session);