Skip to content

Commit f4ef86e

Browse files
committed
fix
1 parent 0e7cea3 commit f4ef86e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

boot/zephyr/nrf54h20_custom_s2ram.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "bootutil/fault_injection_hardening.h"
1616

1717
#if DT_NODE_EXISTS(DT_NODELABEL(mcuboot_s2ram)) &&\
18-
DT_NODE_HAS_COMPAT(DT_NODELABEL(mcuboot_s2ram), zephyr_memory_region)
18+
DT_NODE_HAS_COMPAT(DT_NODELABEL(mcuboot_s2ram), zephyr_memory_region)
1919
/* Linker section name is given by `zephyr,memory-region` property of
2020
* `zephyr,memory-region` compatible DT node with nodelabel `mcuboot_s2ram`.
2121
*/
@@ -26,20 +26,20 @@ volatile struct mcuboot_resume_s mcuboot_resume;
2626
#endif
2727

2828
#define FIXED_PARTITION_ADDR(node_label) \
29-
(DT_REG_ADDR(DT_NODELABEL(node_label)) + \
30-
COND_CODE_0(DT_FIXED_PARTITION_EXISTS(DT_NODELABEL(node_label)), (0), \
29+
(DT_REG_ADDR(DT_NODELABEL(node_label)) + \
30+
COND_CODE_0(DT_FIXED_PARTITION_EXISTS(DT_NODELABEL(node_label)), (0), \
3131
(DT_REG_ADDR(DT_GPARENT(DT_NODELABEL(node_label))))))
3232

3333

3434
int soc_s2ram_suspend(pm_s2ram_system_off_fn_t system_off)
3535
{
36-
(void)(system_off);
37-
return -1;
36+
(void)(system_off);
37+
return -1;
3838
}
3939

4040
void pm_s2ram_mark_set(void)
4141
{
42-
/* empty */
42+
/* empty */
4343
}
4444

4545
struct arm_vector_table {
@@ -54,7 +54,7 @@ struct arm_vector_table {
5454

5555
bool pm_s2ram_mark_check_and_clear(void)
5656
{
57-
uint32_t reset_reason = nrf_resetinfo_resetreas_local_get(NRF_RESETINFO);
57+
uint32_t reset_reason = nrf_resetinfo_resetreas_local_get(NRF_RESETINFO);
5858

5959
if (reset_reason != NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK) {
6060
/* Normal boot */
@@ -70,12 +70,12 @@ bool pm_s2ram_mark_check_and_clear(void)
7070
goto resume_failed;
7171
}
7272

73-
/* s2ram boot */
73+
/* s2ram boot */
7474
struct arm_vector_table *vt;
7575
vt = (struct arm_vector_table *)
7676
(FIXED_PARTITION_ADDR(slot0_partition) + APP_EXE_START_OFFSET);
7777

78-
/* Jump to application */
78+
/* Jump to application */
7979
__asm__ volatile (
8080
/* vt->reset -> r0 */
8181
" mov r0, %0\n"
@@ -93,5 +93,5 @@ bool pm_s2ram_mark_check_and_clear(void)
9393
resume_failed:
9494
FIH_PANIC;
9595

96-
return true;
96+
return true;
9797
}

0 commit comments

Comments
 (0)