summaryrefslogtreecommitdiff
path: root/drivers/ddr
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2024-03-22 16:27:17 +0530
committerTom Rini <trini@konsulko.com>2024-05-24 13:40:03 -0600
commite67c0b76d8e80856cd88256ef1d6ac5da904f503 (patch)
tree3d00aa9a3b344437c67c812a3fa610e660767e7f /drivers/ddr
parentf42a61f57f69c9fac1e21cbfde3f40ebdadc518b (diff)
drivers: fwu: mtd: allocate buffer for image info dynamically
The FWU metadata access driver for MTD partitioned devices currently uses a statically allocated array for storing the updatable image information. This array depends on the number of banks and images per bank. With migration of the FWU metadata to version 2, these parameters are now obtained at runtime from the metadata. Make changes to the FWU metadata access driver for MTD devices to allocate memory for the image information dynamically in the driver's probe function, after having obtained the number of banks and images per bank by reading the metadata. Move the image information as part of the driver's private structure, instead of using a global variable. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Tested-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/ddr')
0 files changed, 0 insertions, 0 deletions