mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-11 09:11:36 +00:00
arm: mvebu: turris_mox: Always handle reset button
Handle reset button even if we can't configure modules. This happens if we fail retrieving reset GPIO with which we can reset the modules. (Note that this GPIO is different from reset button GPIO.) Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
d3159c6b18
commit
f3c71e75b0
1 changed files with 2 additions and 1 deletions
|
@ -617,7 +617,7 @@ int last_stage_init(void)
|
|||
|
||||
/* configure modules */
|
||||
if (get_reset_gpio(&reset_gpio) < 0)
|
||||
return 0;
|
||||
goto handle_reset_btn;
|
||||
|
||||
if (peridot > 0) {
|
||||
if (configure_peridots(&reset_gpio) < 0) {
|
||||
|
@ -654,6 +654,7 @@ int last_stage_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
handle_reset_btn:
|
||||
handle_reset_button();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue