Commit 0e88df7
committed
wdt: Disarm secondary watchdog on t814x
M4 and A18 Pro and reset with iboot from macOS 26.x after 120 seconds.
This is caused by secondary watchdogs living at offset 0x8000. The ADT
contains for all devices since M1 4 byte sized reg entries at those
offsets. This seems to be secondary watchdogs with a different MMIO
layout. Setting the offset 0x8008 to 0x0 from its initial value of 0x7b
seems to disable the watchdog.
This watchdog doesn't seem to have a programmable count register and
uses the raw count at 0x2000. The alarm value might reside at 0x8018.
The value there is close to 120 seconds with a clock 2.4 MHz.
Discovered-by: @MiyakoYakota
Signed-off-by: Janne Grunau <[email protected]>1 parent bcee7f2 commit 0e88df7
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
| |||
0 commit comments