Simon Glass | 4cc40f6 | 2023-09-14 10:55:43 -0600 | [diff] [blame] | 1 | menuconfig FWU_MULTI_BANK_UPDATE |
Sughosh Ganu | 8679405 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 2 | bool "Enable FWU Multi Bank Update Feature" |
| 3 | depends on EFI_CAPSULE_ON_DISK |
| 4 | select PARTITION_TYPE_GUID |
Heinrich Schuchardt | 227d3b3 | 2023-05-07 08:39:34 +0200 | [diff] [blame] | 5 | select FWU_MDATA |
Sughosh Ganu | 8679405 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 6 | imply EFI_CAPSULE_ON_DISK_EARLY |
| 7 | select EVENT |
| 8 | help |
| 9 | Feature for updating firmware images on platforms having |
| 10 | multiple banks(copies) of the firmware images. One of the |
| 11 | bank is selected for updating all the firmware components |
| 12 | |
Simon Glass | 4cc40f6 | 2023-09-14 10:55:43 -0600 | [diff] [blame] | 13 | if FWU_MULTI_BANK_UPDATE |
| 14 | |
Sughosh Ganu | 8679405 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 15 | config FWU_NUM_BANKS |
| 16 | int "Number of Banks defined by the platform" |
Sughosh Ganu | 8679405 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 17 | help |
| 18 | Define the number of banks of firmware images on a platform |
| 19 | |
| 20 | config FWU_NUM_IMAGES_PER_BANK |
| 21 | int "Number of firmware images per bank" |
Sughosh Ganu | 8679405 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 22 | help |
| 23 | Define the number of firmware images per bank. This value |
| 24 | should be the same for all the banks. |
| 25 | |
| 26 | config FWU_TRIAL_STATE_CNT |
| 27 | int "Number of times system boots in Trial State" |
Sughosh Ganu | 8679405 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 28 | default 3 |
| 29 | help |
| 30 | With FWU Multi Bank Update feature enabled, number of times |
| 31 | the platform is allowed to boot in Trial State after an |
| 32 | update. |
Simon Glass | 4cc40f6 | 2023-09-14 10:55:43 -0600 | [diff] [blame] | 33 | |
| 34 | endif |