[coreboot-gerrit] New patch to review for coreboot: ifwitool: Correct pack order and header order

Furquan Shaikh (furquan@google.com) gerrit at coreboot.org
Fri Jun 10 20:13:21 CEST 2016


Furquan Shaikh (furquan at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15144

-gerrit

commit 6f87eef255a88dd7c7f45e1b349e29ea112fba94
Author: Furquan Shaikh <furquan at google.com>
Date:   Fri Jun 10 11:05:16 2016 -0700

    ifwitool: Correct pack order and header order
    
    Update pack and header order and mark the entries as mandatory and
    recommended w.r.t. ordering (mandatory = essential for booting,
    recommended = okay to change, but this config is tested and known to work).
    
    Change-Id: Ia089bdaa0703de830bb9553130caf91a3665d2c4
    Signed-off-by: Furquan Shaikh <furquan at google.com>
---
 util/cbfstool/ifwitool.c | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/util/cbfstool/ifwitool.c b/util/cbfstool/ifwitool.c
index e783cd5..a65c988 100644
--- a/util/cbfstool/ifwitool.c
+++ b/util/cbfstool/ifwitool.c
@@ -242,47 +242,51 @@ enum bpdt_entry_type {
  * thus sub-partitions would have increasing offsets as we loop over pack_order.
  */
 const enum bpdt_entry_type bpdt_header_order[MAX_SUBPARTS] = {
+	/* Order of the following entries is mandatory. */
 	CSE_IDLM_TYPE,
 	IFP_OVERRIDE_TYPE,
 	S_BPDT_TYPE,
 	CSE_RBE_TYPE,
 	UFS_PHY_TYPE,
 	UFS_GPP_TYPE,
-	CSE_BUP_TYPE,
+	/* Order of the following entries is recommended. */
 	UEP_TYPE,
 	NVM_CONFIG_TYPE,
+	UFS_RATE_B_TYPE,
+	IBB_TYPE,
 	SMIP_TYPE,
 	PMC_TYPE,
+	CSE_BUP_TYPE,
 	UCODE_TYPE,
-	IBB_TYPE,
 	DEBUG_TOKENS_TYPE,
-	UFS_RATE_B_TYPE,
-	ISH_TYPE,
+	IUNIT_TYPE,
 	CSE_MAIN_TYPE,
+	ISH_TYPE,
 	OBB_TYPE,
-	IUNIT_TYPE,
 };
 
 const enum bpdt_entry_type bpdt_pack_order[MAX_SUBPARTS] = {
-	CSE_IDLM_TYPE,
-	UFS_PHY_TYPE,
+	/* Order of the following entries is mandatory. */
 	UFS_GPP_TYPE,
+	UFS_PHY_TYPE,
 	IFP_OVERRIDE_TYPE,
 	UEP_TYPE,
-	IBB_TYPE,
 	NVM_CONFIG_TYPE,
+	UFS_RATE_B_TYPE,
+	/* Order of the following entries is recommended. */
+	IBB_TYPE,
 	SMIP_TYPE,
 	CSE_RBE_TYPE,
 	PMC_TYPE,
 	CSE_BUP_TYPE,
 	UCODE_TYPE,
+	CSE_IDLM_TYPE,
 	DEBUG_TOKENS_TYPE,
-	UFS_RATE_B_TYPE,
 	S_BPDT_TYPE,
-	ISH_TYPE,
+	IUNIT_TYPE,
 	CSE_MAIN_TYPE,
+	ISH_TYPE,
 	OBB_TYPE,
-	IUNIT_TYPE,
 };
 
 /* Utility functions. */



More information about the coreboot-gerrit mailing list