summaryrefslogtreecommitdiff
path: root/include/chromeos
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2011-08-02 23:31:44 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:22 -0700
commitef090d2b8fdb901fd4a44e45492532916716b5bd (patch)
tree050e4c5c7ebc26188b9d87b5dfa0011c73078431 /include/chromeos
parent792f7f6ae53a75ad559e0c5c7092b3078467ef98 (diff)
Make the FMAP configuration decoding function board specific.
This change makes the FMAP configuration decoding function board specific so that it can, for instance, use CBFS to store the FMAP on x86. The ARM implementation uses fdt_decode_twostop_fmap in its implementation and should behave the same. The new more generic interace is called decode_twostop_fmap. BUG=chrome-os-partner:5248 TEST=Built, installed and booted on Kaen, built and installed on Alex, ran vboot_twostop and saw new "unimplemented" message. Signed-off-by: Gabe Black <gabeblack@google.com> Change-Id: I07f6f8f7c8a62c5998ec4919d4609a7ac84783da Reviewed-on: http://gerrit.chromium.org/gerrit/5233 Reviewed-by: Stefan Reinauer <reinauer@google.com> Tested-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'include/chromeos')
-rw-r--r--include/chromeos/fmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/chromeos/fmap.h b/include/chromeos/fmap.h
index 37efc4b128..a2a88a16b5 100644
--- a/include/chromeos/fmap.h
+++ b/include/chromeos/fmap.h
@@ -11,6 +11,8 @@
#ifndef CHROMEOS_FMAP_H_
#define CHROMEOS_FMAP_H_
+#include <compiler.h>
+
/* Structures to hold Chrome OS specific configuration from the FMAP. */
struct fmap_entry {
@@ -42,4 +44,6 @@ struct twostop_fmap {
void dump_fmap(struct twostop_fmap *config);
+int decode_twostop_fmap(struct twostop_fmap *fmap);
+
#endif /* CHROMEOS_FMAP_H_ */