Skip to content
Snippets Groups Projects
Commit 188c9a6e authored by davip00's avatar davip00
Browse files

Work around qemu not (yet) emulating the boot ROM's functions

parent f197453a
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,9 @@ static inline void soc_init(void) { ...@@ -110,7 +110,9 @@ static inline void soc_init(void) {
REG(C3_SYSTEM)[2] |= BIT(0) | BIT(2); REG(C3_SYSTEM)[2] |= BIT(0) | BIT(2);
REG(C3_SYSTEM)[22] = BIT(19) | (40U << 12) | BIT(10); REG(C3_SYSTEM)[22] = BIT(19) | (40U << 12) | BIT(10);
// REG(C3_RTCCNTL)[47] = 0; // RTC_APB_FREQ_REG -> freq >> 12 // REG(C3_RTCCNTL)[47] = 0; // RTC_APB_FREQ_REG -> freq >> 12
#ifndef EMULATOR_HACKS
((void (*)(int)) 0x40000588)(160); // ets_update_cpu_frequency(160) ((void (*)(int)) 0x40000588)(160); // ets_update_cpu_frequency(160)
#endif
#if 0 #if 0
// Configure system clock timer, TRM 8.3.1, 8.9 // Configure system clock timer, TRM 8.3.1, 8.9
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment