diff options
author | Patryk Duda <pdk@semihalf.com> | 2022-10-04 17:51:26 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-11 19:30:53 +0000 |
commit | 883caf605af66cf149e4580071962388ff922ecb (patch) | |
tree | d744b9a4a439bc8c77aab474f873bca5e5f2db2e /zephyr/shim/src/flash.c | |
parent | b5a80a5c03a1a75ed48baaf582a1567501d742f4 (diff) | |
download | chrome-ec-883caf605af66cf149e4580071962388ff922ecb.tar.gz |
flash: Introduce functions for filling flash regions info
EC_CMD_FLASH_INFO requires flash_bank_array to be defined if flash
banks have different size. When using Zephyr the array is not
available. In this case we should use the Zephyr flash API.
Moving code that depends on flash_bank_array will make easier to
to enable support for variable bank sizes in CrosEC with Zephyr.
The change also makes existing code easier to read and understand.
BUG=b:239712345
BRANCH=none
TEST=make buildall -j
Signed-off-by: Patryk Duda <pdk@semihalf.com>
Change-Id: I4da19c3c302a9b64cfa4c851b3bdac10b7c438d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3932162
Reviewed-by: Bobby Casey <bobbycasey@google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Patryk Duda <patrykd@google.com>
Tested-by: Patryk Duda <patrykd@google.com>
Diffstat (limited to 'zephyr/shim/src/flash.c')
0 files changed, 0 insertions, 0 deletions