mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
x86: dm: Mark driver model as dead when disabling CAR
When turning off CAR, set the flag to make sure that nothing tries to use driver model in SPL before jumping to U-Bot proper, since its tables are in CAR. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
cd1ee5d96e
commit
6acc072365
1 changed files with 3 additions and 0 deletions
|
@ -230,6 +230,9 @@ void board_init_f_r(void)
|
|||
mtrr_commit(false);
|
||||
init_cache();
|
||||
gd->flags &= ~GD_FLG_SERIAL_READY;
|
||||
|
||||
/* make sure driver model is not accessed from now on */
|
||||
gd->flags |= GD_FLG_DM_DEAD;
|
||||
debug("cache status %d\n", dcache_status());
|
||||
board_init_r(gd, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue