Skip to content

Commit d9c63d9

Browse files
mansrmpvader
authored andcommitted
ccgx: enable watchdog in u-boot
Set the watchdog timeout to 60 seconds and start the timer from the preboot sequence. The watchdog registers require a delay after writing. Interleaving the writes with other operations provides this without an explicit sleep, which would unnecessarily delay the bootup. closes victronenergy/venus#74 (cherry picked from commit a04fe6a)
1 parent b2b1478 commit d9c63d9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

meta-venus/recipes-images/venus-swu/ccgx/sw-description

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ software =
8989
{
9090
name = "nandboot";
9191
value = "mii write 0 0 8000; nand read ${loadaddr} ${kernel} && bootm ${loadaddr}";
92+
},
93+
{
94+
name = "preboot";
95+
value = "mw.l 48314028 ffe20000; nand read 8fe00000 splash 7f800; mw.l 48314048 bbbb; if gpio input 26; then setenv bootdelay -1; else setenv bootdelay -2; fi; mw.l 48314048 4444";
9296
}
9397
);
9498
};
@@ -118,6 +122,10 @@ software =
118122
{
119123
name = "nandboot";
120124
value = "mii write 0 0 8000; nand read ${loadaddr} ${kernel} && bootm ${loadaddr}";
125+
},
126+
{
127+
name = "preboot";
128+
value = "mw.l 48314028 ffe20000; nand read 8fe00000 splash 7f800; mw.l 48314048 bbbb; if gpio input 26; then setenv bootdelay -1; else setenv bootdelay -2; fi; mw.l 48314048 4444";
121129
}
122130
);
123131
};

0 commit comments

Comments
 (0)