[RFC PATCH 2/5] mtd: cfi: introduce CFI_FLASH_BANKS

Simon Glass sjg at chromium.org
Tue Dec 28 09:32:56 CET 2021


On Tue, 14 Dec 2021 at 09:57, Patrick Delaunay
<patrick.delaunay at foss.st.com> wrote:
>
> Replace CONFIG_SYS_MAX_FLASH_BANKS by CFI_FLASH_BANKS to prepare
> Kconfig migration and avoid to redefine CONFIG_SYS_MAX_FLASH_BANKS
> in cfi_flash.h.
>
> After this patch CONFIG_SYS_MAX_FLASH_BANKS should be never used in
> the cfi code: use CFI_MAX_FLASH_BANKS for struct size or CFI_FLASH_BANKS
> for number of CFI banks which can be dynamic.
>
> This patch modify all the files which include mtd/cfi_flash.h.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
>
>  cmd/bootm.c             |  2 +-
>  cmd/flash.c             | 34 +++++++++++++++++-----------------
>  common/flash.c          |  2 +-
>  common/update.c         |  4 ++--
>  drivers/mtd/cfi_flash.c |  4 ++--
>  drivers/mtd/cfi_mtd.c   |  4 ++--
>  include/mtd/cfi_flash.h |  9 ++++++---
>  7 files changed, 31 insertions(+), 28 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list