Commit e2a352b
committed
[nrf noup] boot: zephyr: nrf_cleanup: clean all enabled UARTE instances
The UARTE cleanup list was hardcoded and missed EasyDMA-capable instances
on some SoCs, so a UARTE left active by the previous image could keep
writing RAM via EasyDMA after chain-load and fault the next image.
Derive the list from devicetree (DT_FOREACH_STATUS_OKAY) so every enabled
UARTE is quiesced, and stop the TX direction alongside RX before disabling.
Signed-off-by: cqfmh <258567898+cqfmh@users.noreply.github.com>1 parent 252d7bb commit e2a352b
1 file changed
Lines changed: 8 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 90 | + | |
104 | 91 | | |
| 92 | + | |
105 | 93 | | |
106 | 94 | | |
107 | 95 | | |
| |||
134 | 122 | | |
135 | 123 | | |
136 | 124 | | |
| 125 | + | |
137 | 126 | | |
138 | 127 | | |
139 | 128 | | |
140 | 129 | | |
| 130 | + | |
| 131 | + | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
| |||
0 commit comments