hos::Version: rename enum members
This commit is contained in:
@@ -88,7 +88,7 @@ namespace ams::boot {
|
||||
g_boot_reason = MakeBootReason(power_intr, rtc_intr & ~rtc_intr_m, nv_erc, ac_ok);
|
||||
|
||||
/* Set boot reason for SPL. */
|
||||
if (hos::GetVersion() >= hos::Version_300) {
|
||||
if (hos::GetVersion() >= hos::Version_3_0_0) {
|
||||
BootReasonValue boot_reason_value;
|
||||
boot_reason_value.power_intr = power_intr;
|
||||
boot_reason_value.rtc_intr = rtc_intr & ~rtc_intr_m;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace ams::boot {
|
||||
|
||||
void SetInitialClockConfiguration() {
|
||||
/* Write mask to APBDEV_PMC_PWR_DET, then clear APBDEV_PMC_PWR_DET_VAL. */
|
||||
const u32 mask = hos::GetVersion() >= hos::Version_600 ? InitialClockOutMask6x : InitialClockOutMask1x;
|
||||
const u32 mask = hos::GetVersion() >= hos::Version_6_0_0 ? InitialClockOutMask6x : InitialClockOutMask1x;
|
||||
WritePmcRegister(PmcClkOutCntrl, mask, mask);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,11 +45,11 @@ namespace ams::gpio {
|
||||
const auto hos_ver = hos::GetVersion();
|
||||
|
||||
/* Choose GPIO map. */
|
||||
if (hos_ver >= hos::Version_200) {
|
||||
if (hos_ver >= hos::Version_2_0_0) {
|
||||
switch (hw_type) {
|
||||
case spl::HardwareType::Icosa:
|
||||
{
|
||||
if (hos_ver >= hos::Version_400) {
|
||||
if (hos_ver >= hos::Version_4_0_0) {
|
||||
configs = InitialConfigsIcosa4x;
|
||||
num_configs = NumInitialConfigsIcosa4x;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user