summaryrefslogtreecommitdiff
path: root/board/socrates/socrates.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/socrates/socrates.c')
-rw-r--r--board/socrates/socrates.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c
index 9c4dd186fca..02e6afb0999 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>
@@ -217,24 +218,23 @@ int ft_board_setup(void *blob, struct bd_info *bd)
}
#endif /* CONFIG_OF_BOARD_SETUP */
-#if defined(CONFIG_OF_SEPARATE)
-void *board_fdt_blob_setup(int *err)
+int get_serial_clock(void)
{
- void *fw_dtb;
-
- *err = 0;
- fw_dtb = (void *)(CONFIG_TEXT_BASE - CONFIG_ENV_SECT_SIZE);
- if (fdt_magic(fw_dtb) != FDT_MAGIC) {
- printf("DTB is not passed via %x\n", (u32)fw_dtb);
- *err = -ENXIO;
- return NULL;
- }
-
- return fw_dtb;
+ return 333333330;
}
-#endif
-int get_serial_clock(void)
+enum env_location env_get_location(enum env_operation op, int prio)
{
- return 333333330;
+ 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;
}