WIP (temporary): main_loop entry band; disable WDT autostart for bring-up

This commit is contained in:
vhaudiquet
2026-08-30 16:42:07 +02:00
parent 5e3516ce64
commit b5de7c4a97
2 changed files with 23 additions and 1 deletions
+22 -1
View File
@@ -5,7 +5,8 @@
*/ */
/* #define DEBUG */ /* #define DEBUG */
#include <asm/io.h>
#include <asm/system.h>
#include <autoboot.h> #include <autoboot.h>
#include <button.h> #include <button.h>
#include <bootstage.h> #include <bootstage.h>
@@ -44,6 +45,26 @@ void main_loop(void)
{ {
const char *s; const char *s;
/* TEMPORARY bring-up diagnostics (krane Round 26) — do not upstream:
* light-gray band = main_loop entered; U-Boot init fully done. */
{
u32 base = readl((void __iomem *)0x14008f40);
if (base >= 0x40000000) {
u32 *p = (u32 *)(uintptr_t)(base + 900ULL * 4800);
int i;
if (dcache_status())
mmu_map_region(base, 0x8ca000, false);
for (i = 0; i < 40 * 1200; i++)
p[i] = 0x00c0c0c0;
if (dcache_status())
flush_dcache_range((uintptr_t)p,
(uintptr_t)(p + 40 * 1200));
}
}
/* end TEMPORARY diagnostics */
bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop"); bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
if (IS_ENABLED(CONFIG_VERSION_VARIABLE)) if (IS_ENABLED(CONFIG_VERSION_VARIABLE))
+1
View File
@@ -74,6 +74,7 @@ CONFIG_DM_SERIAL=y
CONFIG_DEBUG_UART_ANNOUNCE=y CONFIG_DEBUG_UART_ANNOUNCE=y
CONFIG_MTK_SERIAL=y CONFIG_MTK_SERIAL=y
CONFIG_WDT=y CONFIG_WDT=y
# CONFIG_WATCHDOG_AUTOSTART is not set
CONFIG_WDT_MTK=y CONFIG_WDT_MTK=y
# CONFIG_RANDOM_UUID is not set # CONFIG_RANDOM_UUID is not set
# CONFIG_REGEX is not set # CONFIG_REGEX is not set