summaryrefslogtreecommitdiff
path: root/include/fdt_decode.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-07-01 16:19:16 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:58:43 -0700
commit2a59d78c4ab54ff8201c1300d3a2bfe3f99e8d9c (patch)
treed030af959b9f504bf0bca0a73ce5cfbd2f0a8e0b /include/fdt_decode.h
parente591d634a11bc62653be420b736f5e82f153f6ba (diff)
fdt: Add function to get machine-arch-id from fdt
BUG=chromium-os:11623 TEST=build on Seaboard, Kaen, Aebl, see that machine type is correct Change-Id: Icc9ab0172e459cbd0f5ac05041dac2f4327a2de6 Reviewed-on: http://gerrit.chromium.org/gerrit/3595 Reviewed-by: Stefan Reinauer <reinauer@google.com> Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/fdt_decode.h')
-rw-r--r--include/fdt_decode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fdt_decode.h b/include/fdt_decode.h
index a952a5130f..620d93ee68 100644
--- a/include/fdt_decode.h
+++ b/include/fdt_decode.h
@@ -411,3 +411,12 @@ int fdt_decode_kbc(const void *blob, int node, struct fdt_kbc *config);
* \return model name, or "<not defined>" if unknown
*/
const char *fdt_decode_get_model(const void *blob);
+
+/**
+ * Returns the machine architecture ID of the device. This is used by Linux
+ * to specify the machine that it is running on. We put it in the fdt so that
+ * it can easily be controlled from there.
+ *
+ * \return architecture number or -1 if not found
+ */
+int fdt_decode_get_machine_arch_id(const void *blob);