diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-04-02 21:49:25 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-05-10 17:39:16 +0300 |
commit | 74c6317df04bbfbb82ffed9dbb530e4075c7abed (patch) | |
tree | 790829cd4658ec83e9b29c3dda8cbb6efc6e7b52 /drivers/mfd/intel-m10-bmc-spi.c | |
parent | 4fd7e2ffe32dfd5e68cec6463a9b462de4e56611 (diff) | |
download | linux-74c6317df04bbfbb82ffed9dbb530e4075c7abed.tar.xz |
mfd: intel-m10-bmc: Change staging size to a variable
The secure update driver does a sanity-check of the image size in
comparison to the size of the staging area in FLASH. Instead of
hard-wiring M10BMC_STAGING_SIZE, move the staging size to the
m10bmc_csr_map structure to make the size assignment more flexible.
Co-developed-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20240402184925.1065932-1-peter.colberg@intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/intel-m10-bmc-spi.c')
-rw-r--r-- | drivers/mfd/intel-m10-bmc-spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/intel-m10-bmc-spi.c b/drivers/mfd/intel-m10-bmc-spi.c index cbeb7de9e041..d64d28199df6 100644 --- a/drivers/mfd/intel-m10-bmc-spi.c +++ b/drivers/mfd/intel-m10-bmc-spi.c @@ -109,6 +109,7 @@ static const struct m10bmc_csr_map m10bmc_n3000_csr_map = { .pr_reh_addr = M10BMC_N3000_PR_REH_ADDR, .pr_magic = M10BMC_N3000_PR_PROG_MAGIC, .rsu_update_counter = M10BMC_N3000_STAGING_FLASH_COUNT, + .staging_size = M10BMC_STAGING_SIZE, }; static struct mfd_cell m10bmc_d5005_subdevs[] = { |