smaller tweaks #59

Merged
muellerr merged 1 commits from smaller-tweaks into main 2026-03-31 18:21:04 +02:00
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -196,7 +196,7 @@ impl PllConfig {
/// This function configures the ARM PLL based on the provided [PllConfig].
pub fn configure_arm_pll(boot_mode: BootMode, pll_config: PllConfig) {
if ARM_PLL_INIT.swap(true, core::sync::atomic::Ordering::SeqCst) {
if ARM_PLL_INIT.swap(true, core::sync::atomic::Ordering::Relaxed) {
return;
}
// Safety: This will only run at most once because of the atomic boolean check.
@@ -205,7 +205,7 @@ pub fn configure_arm_pll(boot_mode: BootMode, pll_config: PllConfig) {
/// This function configures the IO PLL based on the provided [PllConfig].
pub fn configure_io_pll(boot_mode: BootMode, pll_config: PllConfig) {
if IO_PLL_INIT.swap(true, core::sync::atomic::Ordering::SeqCst) {
if IO_PLL_INIT.swap(true, core::sync::atomic::Ordering::Relaxed) {
return;
}
// Safety: This will only run at most once because of the atomic boolean check.
@@ -214,7 +214,7 @@ pub fn configure_io_pll(boot_mode: BootMode, pll_config: PllConfig) {
/// This function configures the DDR PLL based on the provided [PllConfig].
pub fn configure_ddr_pll(boot_mode: BootMode, pll_config: PllConfig) {
if DDR_PLL_INIT.swap(true, core::sync::atomic::Ordering::SeqCst) {
if DDR_PLL_INIT.swap(true, core::sync::atomic::Ordering::Relaxed) {
return;
}
// Safety: This will only run at most once because of the atomic boolean check.
+1 -1
View File
@@ -681,7 +681,7 @@ pub fn reset() {
.build(),
);
// Keep it in reset for some cycles.
for _ in 0..3 {
for _ in 0..10 {
aarch32_cpu::asm::nop();
}
regs.reset_ctrl().write_lqspi(ResetControlQspiSmc::DEFAULT);