Skip to content

Commit

Permalink
ccgx: enable watchdog in u-boot
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
mansr authored and mpvader committed Feb 7, 2019
1 parent b2b1478 commit d9c63d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meta-venus/recipes-images/venus-swu/ccgx/sw-description
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ software =
{
name = "nandboot";
value = "mii write 0 0 8000; nand read ${loadaddr} ${kernel} && bootm ${loadaddr}";
},
{
name = "preboot";
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";
}
);
};
Expand Down Expand Up @@ -118,6 +122,10 @@ software =
{
name = "nandboot";
value = "mii write 0 0 8000; nand read ${loadaddr} ${kernel} && bootm ${loadaddr}";
},
{
name = "preboot";
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";
}
);
};
Expand Down

0 comments on commit d9c63d9

Please sign in to comment.