diff options
author | Simon Arlott <simon@fire.lp0.eu> | 2015-12-13 17:48:44 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-01-23 21:49:03 -0500 |
commit | 696569f759cdebc7da67666fc4f962eaee13562b (patch) | |
tree | 680a9b30658a6f8c06fc00d9e6a7527ff9e8638f | |
parent | 1f29cb19cb7c3bea870d7da02ec23823af9d636e (diff) |
MIPS: bcm963xx: Update bcm_tag field image_sequence
The "dual_image" and "inactive_flag" fields should be merged into a single
"image_sequence" field.
Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Jonas Gorski <jogo@openwrt.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: MIPS Mailing List <linux-mips@linux-mips.org>
Cc: MTD Maling List <linux-mtd@lists.infradead.org>
Patchwork: https://patchwork.linux-mips.org/patch/11834/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | include/linux/bcm963xx_tag.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/bcm963xx_tag.h b/include/linux/bcm963xx_tag.h index 08e0133820ed..161c7b37a77b 100644 --- a/include/linux/bcm963xx_tag.h +++ b/include/linux/bcm963xx_tag.h | |||
@@ -12,8 +12,7 @@ | |||
12 | #define CHIPID_LEN 6 /* Chip Id Length */ | 12 | #define CHIPID_LEN 6 /* Chip Id Length */ |
13 | #define IMAGE_LEN 10 /* Length of Length Field */ | 13 | #define IMAGE_LEN 10 /* Length of Length Field */ |
14 | #define ADDRESS_LEN 12 /* Length of Address field */ | 14 | #define ADDRESS_LEN 12 /* Length of Address field */ |
15 | #define DUALFLAG_LEN 2 /* Dual Image flag Length */ | 15 | #define IMAGE_SEQUENCE_LEN 4 /* Image sequence Length */ |
16 | #define INACTIVEFLAG_LEN 2 /* Inactie Flag Length */ | ||
17 | #define RSASIG_LEN 20 /* Length of RSA Signature in tag */ | 16 | #define RSASIG_LEN 20 /* Length of RSA Signature in tag */ |
18 | #define TAGINFO1_LEN 30 /* Length of vendor information field1 in tag */ | 17 | #define TAGINFO1_LEN 30 /* Length of vendor information field1 in tag */ |
19 | #define FLASHLAYOUTVER_LEN 4 /* Length of Flash Layout Version String tag */ | 18 | #define FLASHLAYOUTVER_LEN 4 /* Length of Flash Layout Version String tag */ |
@@ -72,10 +71,10 @@ struct bcm_tag { | |||
72 | char kernel_address[ADDRESS_LEN]; | 71 | char kernel_address[ADDRESS_LEN]; |
73 | /* 128-137: Size of kernel */ | 72 | /* 128-137: Size of kernel */ |
74 | char kernel_length[IMAGE_LEN]; | 73 | char kernel_length[IMAGE_LEN]; |
75 | /* 138-139: Unused at the moment */ | 74 | /* 138-141: Image sequence number |
76 | char dual_image[DUALFLAG_LEN]; | 75 | * (to be incremented when flashed with a new image) |
77 | /* 140-141: Unused at the moment */ | 76 | */ |
78 | char inactive_flag[INACTIVEFLAG_LEN]; | 77 | char image_sequence[IMAGE_SEQUENCE_LEN]; |
79 | /* 142-161: RSA Signature (not used; some vendors may use this) */ | 78 | /* 142-161: RSA Signature (not used; some vendors may use this) */ |
80 | char rsa_signature[RSASIG_LEN]; | 79 | char rsa_signature[RSASIG_LEN]; |
81 | /* 162-191: Compilation and related information (not used in OpenWrt) */ | 80 | /* 162-191: Compilation and related information (not used in OpenWrt) */ |