From 1d4460871b46e0ed5c81ff7d8eea50e7fc9a66e5 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Tue, 23 Jan 2018 21:16:59 +0100 Subject: env: Initialise all the environments Since we want to have multiple environments, we will need to initialise all the environments since we don't know at init time what drivers might fail when calling load. Let's init all of them, and only consider for further operations the ones that have not reported any errors at init time. Reviewed-by: Simon Glass Signed-off-by: Maxime Ripard --- include/asm-generic/global_data.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 73e036d6fd4..fd8cd45b050 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -50,6 +50,7 @@ typedef struct global_data { #endif unsigned long env_addr; /* Address of Environment struct */ unsigned long env_valid; /* Environment valid? enum env_valid */ + unsigned long env_has_init; /* Bitmask of boolean of struct env_location offsets */ unsigned long ram_top; /* Top address of RAM used by U-Boot */ unsigned long relocaddr; /* Start address of U-Boot in RAM */ -- cgit v1.3.1