mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
board_f: Drop the timer after relocation
Once U-Boot relocates itself the existing driver-model timer (if any) is no-longer valid until the device is reinitialised. Any use of the device may cause a crash. To handle this, set the timer to NULL after relocation. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
eb45787b39
commit
5ee94b4f40
1 changed files with 3 additions and 0 deletions
|
@ -952,6 +952,9 @@ void board_init_f_r(void)
|
|||
* UART if available.
|
||||
*/
|
||||
gd->flags &= ~GD_FLG_SERIAL_READY;
|
||||
#ifdef CONFIG_TIMER
|
||||
gd->timer = NULL;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* U-Boot has been copied into SDRAM, the BSS has been cleared etc.
|
||||
|
|
Loading…
Reference in a new issue