summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/cbfstool/ifwitool.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/util/cbfstool/ifwitool.c b/util/cbfstool/ifwitool.c
index e783cd5f83..a65c988d8a 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. */