ams: update five -> aula, per CalWriterManu

This commit is contained in:
Michael Scire 2020-12-28 15:41:21 -08:00
parent 113ab8439d
commit 9826358533
16 changed files with 57 additions and 57 deletions

View file

@ -111,7 +111,7 @@ namespace ams::secmon::fatal {
} }
} }
void EnableBacklightForVendor2050ForHardwareTypeFive(int brightness) { void EnableBacklightForVendor2050ForAula(int brightness) {
/* Enable FRAME_END_INT */ /* Enable FRAME_END_INT */
reg::Write(g_disp1_regs + sizeof(u32) * DC_CMD_INT_ENABLE, 2); 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_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))); 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. */ /* Configure LCD backlight. */
reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4); reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4);
reg::SetBits(g_gpio_regs + GPIO_PORT6_OE_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_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))); 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. */ /* Configure LCD backlight. */
reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4); reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4);
reg::SetBits(g_gpio_regs + GPIO_PORT6_OE_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); reg::SetBits(g_gpio_regs + GPIO_PORT6_OUT_1, 0x4);
util::WaitMicroSeconds(60'000ul); 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); reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x40103);
} else { } else {
reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x50204); reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x50204);
@ -593,7 +593,7 @@ namespace ams::secmon::fatal {
/* Enable backlight. */ /* Enable backlight. */
constexpr auto DisplayBrightness = 100; constexpr auto DisplayBrightness = 100;
if (GetLcdVendor() == 0x2050) { if (GetLcdVendor() == 0x2050) {
EnableBacklightForVendor2050ForHardwareTypeFive(DisplayBrightness); EnableBacklightForVendor2050ForAula(DisplayBrightness);
} else { } else {
EnableBacklightForGeneric(DisplayBrightness); EnableBacklightForGeneric(DisplayBrightness);
} }

View file

@ -409,8 +409,8 @@ namespace ams::secmon {
reg0 |= reg::Encode(SLAVE_SECURITY_REG_BITS_ENUM(0, CEC, ENABLE)); reg0 |= reg::Encode(SLAVE_SECURITY_REG_BITS_ENUM(0, CEC, ENABLE));
} }
/* Icosa, Iowa, and Five all set I2C4 to be secure. */ /* 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_Five) { 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)); reg1 |= reg::Encode(SLAVE_SECURITY_REG_BITS_ENUM(1, I2C4, ENABLE));
} }

View file

@ -47,7 +47,7 @@ namespace ams::secmon::smc {
[fuse::DramId_IcosaSamsung4GB] = pkg1::MemorySize_4GB, [fuse::DramId_IcosaSamsung4GB] = pkg1::MemorySize_4GB,
[fuse::DramId_IcosaHynix4GB] = pkg1::MemorySize_4GB, [fuse::DramId_IcosaHynix4GB] = pkg1::MemorySize_4GB,
[fuse::DramId_IcosaMicron4GB] = 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_IcosaSamsung6GB] = pkg1::MemorySize_6GB,
[fuse::DramId_CopperHynix4GB] = pkg1::MemorySize_4GB, [fuse::DramId_CopperHynix4GB] = pkg1::MemorySize_4GB,
[fuse::DramId_CopperMicron4GB] = 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_HoagSamsung1y4GBX] = pkg1::MemorySize_4GB,
[fuse::DramId_IowaSamsung1y4GBY] = pkg1::MemorySize_4GB, [fuse::DramId_IowaSamsung1y4GBY] = pkg1::MemorySize_4GB,
[fuse::DramId_IowaSamsung1y8GBY] = pkg1::MemorySize_8GB, [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_HoagSamsung1y8GBX] = pkg1::MemorySize_8GB,
[fuse::DramId_FiveSamsung1y4GBX] = pkg1::MemorySize_4GB, [fuse::DramId_AulaSamsung1y4GBX] = pkg1::MemorySize_4GB,
[fuse::DramId_IowaMicron1y4GB] = pkg1::MemorySize_4GB, [fuse::DramId_IowaMicron1y4GB] = pkg1::MemorySize_4GB,
[fuse::DramId_HoagMicron1y4GB] = pkg1::MemorySize_4GB, [fuse::DramId_HoagMicron1y4GB] = pkg1::MemorySize_4GB,
[fuse::DramId_FiveMicron1y4GB] = pkg1::MemorySize_4GB, [fuse::DramId_AulaMicron1y4GB] = pkg1::MemorySize_4GB,
[fuse::DramId_FiveSamsung1y8GBX] = pkg1::MemorySize_8GB, [fuse::DramId_AulaSamsung1y8GBX] = pkg1::MemorySize_8GB,
}; };
constexpr const pkg1::MemoryMode MemoryModes[] = { constexpr const pkg1::MemoryMode MemoryModes[] = {

View file

@ -26,7 +26,7 @@ namespace ams::fuse {
HardwareType_Hoag = 2, HardwareType_Hoag = 2,
HardwareType_Iowa = 3, HardwareType_Iowa = 3,
HardwareType_Calcio = 4, HardwareType_Calcio = 4,
HardwareType_Five = 5, HardwareType_Aula = 5,
HardwareType_Undefined = 0xF, HardwareType_Undefined = 0xF,
}; };
@ -51,7 +51,7 @@ namespace ams::fuse {
DramId_IcosaSamsung4GB = 0, DramId_IcosaSamsung4GB = 0,
DramId_IcosaHynix4GB = 1, DramId_IcosaHynix4GB = 1,
DramId_IcosaMicron4GB = 2, DramId_IcosaMicron4GB = 2,
DramId_FiveHynix1y4GB = 3, DramId_AulaHynix1y4GB = 3,
DramId_IcosaSamsung6GB = 4, DramId_IcosaSamsung6GB = 4,
DramId_CopperHynix4GB = 5, DramId_CopperHynix4GB = 5,
DramId_CopperMicron4GB = 6, DramId_CopperMicron4GB = 6,
@ -70,13 +70,13 @@ namespace ams::fuse {
DramId_HoagSamsung1y4GBX = 19, DramId_HoagSamsung1y4GBX = 19,
DramId_IowaSamsung1y4GBY = 20, DramId_IowaSamsung1y4GBY = 20,
DramId_IowaSamsung1y8GBY = 21, DramId_IowaSamsung1y8GBY = 21,
DramId_FiveSamsung1y4GB = 22, DramId_AulaSamsung1y4GB = 22,
DramId_HoagSamsung1y8GBX = 23, DramId_HoagSamsung1y8GBX = 23,
DramId_FiveSamsung1y4GBX = 24, DramId_AulaSamsung1y4GBX = 24,
DramId_IowaMicron1y4GB = 25, DramId_IowaMicron1y4GB = 25,
DramId_HoagMicron1y4GB = 26, DramId_HoagMicron1y4GB = 26,
DramId_FiveMicron1y4GB = 27, DramId_AulaMicron1y4GB = 27,
DramId_FiveSamsung1y8GBX = 28, DramId_AulaSamsung1y8GBX = 28,
DramId_Count, DramId_Count,
}; };

View file

@ -316,7 +316,7 @@ namespace ams::fuse {
case 0x02: return (true /* TODO: GetSocType() == SocType_Mariko */) ? HardwareType_Calcio : HardwareType_Copper; case 0x02: return (true /* TODO: GetSocType() == SocType_Mariko */) ? HardwareType_Calcio : HardwareType_Copper;
case 0x04: return HardwareType_Iowa; case 0x04: return HardwareType_Iowa;
case 0x08: return HardwareType_Hoag; case 0x08: return HardwareType_Hoag;
case 0x10: return HardwareType_Five; case 0x10: return HardwareType_Aula;
default: return HardwareType_Undefined; default: return HardwareType_Undefined;
} }
} }
@ -371,7 +371,7 @@ namespace ams::fuse {
case HardwareType_Iowa: case HardwareType_Iowa:
case HardwareType_Hoag: case HardwareType_Hoag:
case HardwareType_Calcio: case HardwareType_Calcio:
case HardwareType_Five: case HardwareType_Aula:
return SocType_Mariko; return SocType_Mariko;
default: default:
return SocType_Undefined; return SocType_Undefined;

View file

@ -106,12 +106,12 @@ namespace ams::spl {
} }
enum class HardwareType { enum class HardwareType {
Icosa = 0, Icosa = 0,
Copper = 1, Copper = 1,
Hoag = 2, Hoag = 2,
Iowa = 3, Iowa = 3,
Calcio = 4, Calcio = 4,
_Five_ = 5, Aula = 5,
}; };
enum SocType { enum SocType {

View file

@ -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_hoag.inc"
#include "gpio_initial_wake_pin_config_iowa.inc" #include "gpio_initial_wake_pin_config_iowa.inc"
#include "gpio_initial_wake_pin_config_calcio.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_icosa.inc"
/* #include "gpio_initial_config_copper.inc" */ /* #include "gpio_initial_config_copper.inc" */
#include "gpio_initial_config_hoag.inc" #include "gpio_initial_config_hoag.inc"
#include "gpio_initial_config_iowa.inc" #include "gpio_initial_config_iowa.inc"
#include "gpio_initial_config_calcio.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; configs = InitialGpioConfigsCalcio;
num_configs = NumInitialGpioConfigsCalcio; num_configs = NumInitialGpioConfigsCalcio;
break; break;
case spl::HardwareType::_Five_: case spl::HardwareType::Aula:
configs = InitialGpioConfigsFive; configs = InitialGpioConfigsAula;
num_configs = NumInitialGpioConfigsFive; num_configs = NumInitialGpioConfigsAula;
break; break;
case spl::HardwareType::Copper: case spl::HardwareType::Copper:
AMS_UNREACHABLE_DEFAULT_CASE(); AMS_UNREACHABLE_DEFAULT_CASE();
@ -151,9 +151,9 @@ namespace ams::gpio::driver::board::nintendo_nx::impl {
configs = InitialWakePinConfigsCalcio; configs = InitialWakePinConfigsCalcio;
num_configs = NumInitialWakePinConfigsCalcio; num_configs = NumInitialWakePinConfigsCalcio;
break; break;
case spl::HardwareType::_Five_: case spl::HardwareType::Aula:
configs = InitialWakePinConfigsFive; configs = InitialWakePinConfigsAula;
num_configs = NumInitialWakePinConfigsFive; num_configs = NumInitialWakePinConfigsAula;
break; break;
case spl::HardwareType::Copper: case spl::HardwareType::Copper:
AMS_UNREACHABLE_DEFAULT_CASE(); AMS_UNREACHABLE_DEFAULT_CASE();

View file

@ -16,7 +16,7 @@
/* NOTE: This file is auto-generated by gpio_pad_gen.py, do not edit manually. */ /* 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_GameCardReset, Direction_Output, GpioValue_Low },
{ DeviceCode_CodecAlert, Direction_Input, GpioValue_Low }, { DeviceCode_CodecAlert, Direction_Input, GpioValue_Low },
{ DeviceCode_Debug0, Direction_Output, GpioValue_Low }, { DeviceCode_Debug0, Direction_Output, GpioValue_Low },
@ -67,4 +67,4 @@ constexpr inline const GpioInitialConfig InitialGpioConfigsFive[] = {
{ DeviceCode_ExtconChgS, Direction_Output, GpioValue_Low }, { DeviceCode_ExtconChgS, Direction_Output, GpioValue_Low },
}; };
constexpr inline size_t NumInitialGpioConfigsFive = util::size(InitialGpioConfigsFive); constexpr inline size_t NumInitialGpioConfigsAula = util::size(InitialGpioConfigsAula);

View file

@ -16,7 +16,7 @@
/* NOTE: This file is auto-generated by wake_pin_gen.py, do not edit manually. */ /* 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_PexWakeN, false, ams::wec::WakeEventLevel_Auto },
{ ams::wec::WakeEvent_GpioPortA6, false, ams::wec::WakeEventLevel_Auto }, { ams::wec::WakeEvent_GpioPortA6, false, ams::wec::WakeEventLevel_Auto },
{ ams::wec::WakeEvent_QspiCsN, 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 }, { 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);

View file

@ -28,7 +28,7 @@ namespace ams::pinmux::driver::board::nintendo_nx {
#include "pinmux_initial_pad_config_hoag.inc" #include "pinmux_initial_pad_config_hoag.inc"
#include "pinmux_initial_pad_config_iowa.inc" #include "pinmux_initial_pad_config_iowa.inc"
#include "pinmux_initial_pad_config_calcio.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.inc"
#include "pinmux_initial_drive_pad_config_hoag.inc" #include "pinmux_initial_drive_pad_config_hoag.inc"
@ -73,9 +73,9 @@ namespace ams::pinmux::driver::board::nintendo_nx {
num_configs = NumPinmuxPadConfigsCalcio; num_configs = NumPinmuxPadConfigsCalcio;
is_mariko = true; is_mariko = true;
break; break;
case spl::HardwareType::_Five_: case spl::HardwareType::Aula:
configs = PinmuxPadConfigsFive; configs = PinmuxPadConfigsAula;
num_configs = NumPinmuxPadConfigsFive; num_configs = NumPinmuxPadConfigsAula;
is_mariko = true; is_mariko = true;
break; break;
AMS_UNREACHABLE_DEFAULT_CASE(); AMS_UNREACHABLE_DEFAULT_CASE();
@ -121,7 +121,7 @@ namespace ams::pinmux::driver::board::nintendo_nx {
configs = PinmuxDrivePadConfigs; configs = PinmuxDrivePadConfigs;
num_configs = NumPinmuxDrivePadConfigs; num_configs = NumPinmuxDrivePadConfigs;
break; break;
case spl::HardwareType::_Five_: case spl::HardwareType::Aula:
configs = PinmuxDrivePadConfigs; configs = PinmuxDrivePadConfigs;
num_configs = NumPinmuxDrivePadConfigs; num_configs = NumPinmuxDrivePadConfigs;
break; break;

View file

@ -16,7 +16,7 @@
/* NOTE: This file is auto-generated by pinmux_initial_config.py, do not edit manually. */ /* 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_AudMclk, 0x00000000, 0x0000007F },
{ PinmuxPadIndex_Dap1Din, 0x00000028, 0x0000007F }, { PinmuxPadIndex_Dap1Din, 0x00000028, 0x0000007F },
{ PinmuxPadIndex_Dap1Dout, 0x00000000, 0x0000007F }, { PinmuxPadIndex_Dap1Dout, 0x00000000, 0x0000007F },
@ -193,4 +193,4 @@ constexpr inline const PinmuxPadConfig PinmuxPadConfigsFive[] = {
{ PinmuxPadIndex_HdmiCec, 0x00000005, 0x00000007 }, { PinmuxPadIndex_HdmiCec, 0x00000005, 0x00000007 },
}; };
constexpr inline const size_t NumPinmuxPadConfigsFive = util::size(PinmuxPadConfigsFive); constexpr inline const size_t NumPinmuxPadConfigsAula = util::size(PinmuxPadConfigsAula);

View file

@ -63,8 +63,8 @@ namespace ams::powctl::driver::impl {
} else if (battery_version == 1) { } else if (battery_version == 1) {
return ChargeParametersForBatteryVersion1; return ChargeParametersForBatteryVersion1;
} else { } else {
if (spl::GetHardwareType() == spl::HardwareType::_Five_) { if (spl::GetHardwareType() == spl::HardwareType::Aula) {
return ChargeParametersForBatteryVersion0ForFive; return ChargeParametersForBatteryVersion0ForAula;
} else { } else {
return ChargeParametersForBatteryVersion0; return ChargeParametersForBatteryVersion0;
} }

View file

@ -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 }, { 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::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::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 }, { 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) 1, 19, 48, 59, 1664, 4320, UnknownXTableForBatteryVersion2, util::size(UnknownXTableForBatteryVersion2), 95.0, 100.4, ChargeParametersRulesForBatteryVersion2, util::size(ChargeParametersRulesForBatteryVersion2)
}; };
constexpr inline const ChargeParameters ChargeParametersForBatteryVersion0ForFive = { constexpr inline const ChargeParameters ChargeParametersForBatteryVersion0ForAula = {
4, 17, 51, 60, 512, 4208, nullptr, 0, 95.0, 99.0, ChargeParametersRulesForBatteryVersion0ForFive, util::size(ChargeParametersRulesForBatteryVersion0ForFive) 4, 17, 51, 60, 512, 4208, nullptr, 0, 95.0, 99.0, ChargeParametersRulesForBatteryVersion0ForAula, util::size(ChargeParametersRulesForBatteryVersion0ForAula)
}; };

View file

@ -254,7 +254,7 @@ namespace ams::spl {
return SocType_Erista; return SocType_Erista;
case HardwareType::Hoag: case HardwareType::Hoag:
case HardwareType::Iowa: case HardwareType::Iowa:
case HardwareType::_Five_: case HardwareType::Aula:
return SocType_Mariko; return SocType_Mariko;
AMS_UNREACHABLE_DEFAULT_CASE(); AMS_UNREACHABLE_DEFAULT_CASE();
} }

View file

@ -464,7 +464,7 @@ namespace ams::updater {
case spl::HardwareType::Hoag: case spl::HardwareType::Hoag:
case spl::HardwareType::Iowa: case spl::HardwareType::Iowa:
case spl::HardwareType::Calcio: case spl::HardwareType::Calcio:
case spl::HardwareType::_Five_: case spl::HardwareType::Aula:
return BootImageUpdateType::Mariko; return BootImageUpdateType::Mariko;
AMS_UNREACHABLE_DEFAULT_CASE(); AMS_UNREACHABLE_DEFAULT_CASE();
} }

View file

@ -203,7 +203,7 @@ namespace ams::boot {
} }
} }
void EnableBacklightForVendor2050ForHardwareTypeFive(int brightness) { void EnableBacklightForVendor2050ForAula(int brightness) {
/* Enable FRAME_END_INT */ /* Enable FRAME_END_INT */
reg::Write(g_disp1_regs + sizeof(u32) * DC_CMD_INT_ENABLE, 2); 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_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))); 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. */ /* Configure LCD backlight. */
reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4); reg::SetBits(g_gpio_regs + GPIO_PORT6_CNF_1, 0x4);
reg::SetBits(g_gpio_regs + GPIO_PORT6_OE_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); reg::SetBits(g_gpio_regs + GPIO_PORT6_OUT_1, 0x4);
os::SleepThread(TimeSpan::FromMilliSeconds(60)); 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); reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x40103);
} else { } else {
reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x50204); reg::Write(g_dsi_regs + sizeof(u32) * DSI_BTA_TIMING, 0x50204);
@ -512,7 +512,7 @@ namespace ams::boot {
/* Enable backlight. */ /* Enable backlight. */
if (g_lcd_vendor == 0x2050) { if (g_lcd_vendor == 0x2050) {
EnableBacklightForVendor2050ForHardwareTypeFive(g_display_brightness); EnableBacklightForVendor2050ForAula(g_display_brightness);
} else { } else {
EnableBacklightForGeneric(g_display_brightness); EnableBacklightForGeneric(g_display_brightness);
} }
@ -525,7 +525,7 @@ namespace ams::boot {
/* Disable backlight. */ /* Disable backlight. */
if (g_lcd_vendor == 0x2050) { if (g_lcd_vendor == 0x2050) {
EnableBacklightForVendor2050ForHardwareTypeFive(0); EnableBacklightForVendor2050ForAula(0);
} else { } else {
pwm::driver::SetEnabled(g_lcd_backlight_session, false); pwm::driver::SetEnabled(g_lcd_backlight_session, false);
pwm::driver::CloseSession(g_lcd_backlight_session); pwm::driver::CloseSession(g_lcd_backlight_session);