@@ -138,17 +138,21 @@ enum {
138138};
139139
140140enum {
141- SWITCHTEC_GEN4_BL2_0_RUNNING = 0x01 ,
142- SWITCHTEC_GEN4_BL2_1_RUNNING = 0x02 ,
143- SWITCHTEC_GEN4_MAP0_RUNNING = 0x03 ,
144- SWITCHTEC_GEN4_MAP1_RUNNING = 0x04 ,
145- SWITCHTEC_GEN4_CFG0_RUNNING = 0x05 ,
146- SWITCHTEC_GEN4_CFG1_RUNNING = 0x06 ,
147- SWITCHTEC_GEN4_IMG0_RUNNING = 0x07 ,
148- SWITCHTEC_GEN4_IMG1_RUNNING = 0x08 ,
141+ SWITCHTEC_GEN4_MAP0_RUNNING = 0x00 ,
142+ SWITCHTEC_GEN4_MAP1_RUNNING = 0x01 ,
143+ SWITCHTEC_GEN4_KEY0_RUNNING = 0x02 ,
144+ SWITCHTEC_GEN4_KEY1_RUNNING = 0x03 ,
145+ SWITCHTEC_GEN4_BL2_0_RUNNING = 0x04 ,
146+ SWITCHTEC_GEN4_BL2_1_RUNNING = 0x05 ,
147+ SWITCHTEC_GEN4_CFG0_RUNNING = 0x06 ,
148+ SWITCHTEC_GEN4_CFG1_RUNNING = 0x07 ,
149+ SWITCHTEC_GEN4_IMG0_RUNNING = 0x08 ,
150+ SWITCHTEC_GEN4_IMG1_RUNNING = 0x09 ,
149151};
150152
151153enum {
154+ SWITCHTEC_GEN4_KEY0_ACTIVE = 0 ,
155+ SWITCHTEC_GEN4_KEY1_ACTIVE = 1 ,
152156 SWITCHTEC_GEN4_BL2_0_ACTIVE = 0 ,
153157 SWITCHTEC_GEN4_BL2_1_ACTIVE = 1 ,
154158 SWITCHTEC_GEN4_CFG0_ACTIVE = 0 ,
@@ -187,32 +191,32 @@ struct sys_info_regs_gen4 {
187191 u8 mrpc_inband_ver ;
188192 u32 reserved3 [7 ];
189193 u32 fw_update_tmo ;
190- u32 table_version_cfg ;
191- u32 table_version_img ;
194+ u32 xml_version_cfg ;
195+ u32 xml_version_img ;
192196 u32 partition_id ;
193197 u16 bl2_running ;
194198 u16 cfg_running ;
195199 u16 img_running ;
196- u16 reserved4 ;
197- u32 reserved5 [43 ];
200+ u16 key_running ;
201+ u32 reserved4 [43 ];
198202 u32 vendor_seeprom_twi ;
199203 u32 vendor_table_revision ;
200204 u32 vendor_specific_info [2 ];
201205 u16 p2p_vendor_id ;
202206 u16 p2p_device_id ;
203207 u8 p2p_revision_id ;
204- u8 reserved6 [3 ];
208+ u8 reserved5 [3 ];
205209 u32 p2p_class_id ;
206210 u16 subsystem_vendor_id ;
207211 u16 subsystem_id ;
208212 u32 p2p_serial_number [2 ];
209213 u8 mac_addr [6 ];
210- u8 reserved7 [2 ];
211- u32 reserved8 [3 ];
214+ u8 reserved6 [2 ];
215+ u32 reserved7 [3 ];
212216 char vendor_id [8 ];
213217 char product_id [24 ];
214218 char product_revision [2 ];
215- u16 reserved9 ;
219+ u16 reserved8 ;
216220} __packed ;
217221
218222struct sys_info_regs {
@@ -261,16 +265,17 @@ struct flash_info_regs_gen4 {
261265 unsigned char bl2 ;
262266 unsigned char cfg ;
263267 unsigned char img ;
264- unsigned char reserved ;
268+ unsigned char key ;
265269 } active_flag ;
266270
267271 u32 reserved [3 ];
268272
269- struct partition_info bl1 ;
270- struct partition_info bl2_0 ;
271- struct partition_info bl2_1 ;
272273 struct partition_info map0 ;
273274 struct partition_info map1 ;
275+ struct partition_info key0 ;
276+ struct partition_info key1 ;
277+ struct partition_info bl2_0 ;
278+ struct partition_info bl2_1 ;
274279 struct partition_info cfg0 ;
275280 struct partition_info cfg1 ;
276281 struct partition_info img0 ;
0 commit comments