diff options
author | Heiko Schocher <hs@denx.de> | 2023-01-24 20:06:59 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-06 21:04:53 +0300 |
commit | 9e85d186eaa92fb9d460ed4954eb591c3581bc80 (patch) | |
tree | 21e6c8dcec526017a4c005cb4588bfa2caf0f39d /board | |
parent | 5a971a2728eb02d59988d034bde0d3dfa19f442e (diff) | |
download | u-boot-9e85d186eaa92fb9d460ed4954eb591c3581bc80.tar.xz |
powerpc/mpc85xx: socrates: enable protected Environment
enable protected Environment on socrates board.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/socrates/socrates.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c index 1d63c81a9c..02e6afb099 100644 --- a/board/socrates/socrates.c +++ b/board/socrates/socrates.c @@ -13,6 +13,7 @@ #include <common.h> #include <clock_legacy.h> #include <env.h> +#include <env_internal.h> #include <init.h> #include <pci.h> #include <uuid.h> @@ -221,3 +222,19 @@ int get_serial_clock(void) { return 333333330; } + +enum env_location env_get_location(enum env_operation op, int prio) +{ + if (op == ENVOP_SAVE || op == ENVOP_ERASE) + return ENVL_FLASH; + + switch (prio) { + case 0: + return ENVL_NOWHERE; + case 1: + return ENVL_FLASH; + default: + return ENVL_UNKNOWN; + } + return ENVL_UNKNOWN; +} |