summaryrefslogtreecommitdiffstats
path: root/util/cbfstool/fit.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2012-12-14 17:16:21 -0600
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-03-27 01:25:12 +0100
commit6b0d0d6e14f8e385e1457df5699136473144ed60 (patch)
tree25a21e39c1729b996059b56ff83818ceb1d24595 /util/cbfstool/fit.h
parentdc7bc8e589c4b9f45e57327c2f989ef8f2a0e7c4 (diff)
downloadcoreboot-6b0d0d6e14f8e385e1457df5699136473144ed60.tar.gz
coreboot-6b0d0d6e14f8e385e1457df5699136473144ed60.tar.bz2
coreboot-6b0d0d6e14f8e385e1457df5699136473144ed60.zip
cbfstool: Add update-fit command
Add support for filling in the Firmware Interface Table. For now it only supports adding microcode entries. It takes 2 options: 1. Name of file in cbfs where the mircocode is located 2. The number of empty entries in the table. Verified with go firmware tools. Also commented out updating microcode in the bootblock. When romstage runs, the CPUs indicate their microcode is already loaded. Change-Id: Iaccaa9c226ee24868a5f4c0ba79729015d15bbef Signed-off-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/2712 Reviewed-by: Aaron Durbin <adurbin@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'util/cbfstool/fit.h')
-rw-r--r--util/cbfstool/fit.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/util/cbfstool/fit.h b/util/cbfstool/fit.h
new file mode 100644
index 000000000000..63e22f4a2bbe
--- /dev/null
+++ b/util/cbfstool/fit.h
@@ -0,0 +1,25 @@
+/*
+ * Firmware Interface Table support.
+ *
+ * Copyright (C) 2012 Google Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
+ */
+
+#ifndef __CBFSTOOL_FIT_H
+#define __CBFSTOOL_FIT_H
+
+int fit_update_table(struct cbfs_image *image,
+ int empty_entries, const char *microcode_blob_name);
+#endif