[RFC PATCH 0/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig
Patrick Delaunay
patrick.delaunay at foss.st.com
Tue Dec 14 17:56:59 CET 2021
Proposal after Marek comment in [1], move CONFIG_SYS_MAX_FLASH_BANKS
and CONFIG_SYS_MAX_FLASH_BANKS_DETECT in Kconfig.
Only RFC because I am not sure if I choose the correct solution
when I introduced the CFI_FLASH_BANKS to simplify the
support of all the options in include/mtd/cfi_flash.h
no compilation issue before rebase =
https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/10084
but not tested
[1] [v3,1/2] mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported
http: //patchwork.ozlabs.org/project/uboot/patch/20210916155040.v3.1.I81b4f1edfe925b001299e3b7ba0cf602d9268d59 at changeid/#2754501
Patrick Delaunay (5):
cmd: Fix up warnings in flash.c
mtd: cfi: introduce CFI_FLASH_BANKS
mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean
configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig
Convert CONFIG_AT91_EFLASH to Kconfig
README | 3 -
arch/arm/mach-at91/Kconfig | 8 +
cmd/bootm.c | 2 +-
cmd/flash.c | 247 +++++++++----------
common/flash.c | 2 +-
common/update.c | 4 +-
configs/3c120_defconfig | 1 +
configs/M5253DEMO_defconfig | 1 +
configs/MPC8548CDS_36BIT_defconfig | 1 +
configs/MPC8548CDS_defconfig | 1 +
configs/MPC8548CDS_legacy_defconfig | 1 +
configs/P3041DS_NAND_defconfig | 1 +
configs/P3041DS_SDCARD_defconfig | 1 +
configs/P3041DS_SPIFLASH_defconfig | 1 +
configs/P3041DS_defconfig | 1 +
configs/P4080DS_SDCARD_defconfig | 1 +
configs/P4080DS_SPIFLASH_defconfig | 1 +
configs/P4080DS_defconfig | 1 +
configs/P5040DS_NAND_defconfig | 1 +
configs/P5040DS_SDCARD_defconfig | 1 +
configs/P5040DS_SPIFLASH_defconfig | 1 +
configs/P5040DS_defconfig | 1 +
configs/T1042D4RDB_NAND_defconfig | 1 +
configs/T1042D4RDB_SDCARD_defconfig | 1 +
configs/T1042D4RDB_SPIFLASH_defconfig | 1 +
configs/T1042D4RDB_defconfig | 1 +
configs/T2080QDS_NAND_defconfig | 1 +
configs/T2080QDS_SDCARD_defconfig | 1 +
configs/T2080QDS_SECURE_BOOT_defconfig | 1 +
configs/T2080QDS_SPIFLASH_defconfig | 1 +
configs/T2080QDS_defconfig | 1 +
configs/T4240RDB_SDCARD_defconfig | 1 +
configs/T4240RDB_defconfig | 1 +
configs/boston32r2_defconfig | 1 +
configs/boston32r2el_defconfig | 1 +
configs/boston32r6_defconfig | 1 +
configs/boston32r6el_defconfig | 1 +
configs/boston64r2_defconfig | 1 +
configs/boston64r2el_defconfig | 1 +
configs/boston64r6_defconfig | 1 +
configs/boston64r6el_defconfig | 1 +
configs/cobra5272_defconfig | 1 +
configs/comtrend_ct5361_ram_defconfig | 1 +
configs/comtrend_wap5813n_ram_defconfig | 1 +
configs/ethernut5_defconfig | 1 +
configs/huawei_hg556a_ram_defconfig | 1 +
configs/j7200_evm_a72_defconfig | 1 +
configs/j7200_evm_r5_defconfig | 1 +
configs/j721e_evm_a72_defconfig | 1 +
configs/j721e_hs_evm_a72_defconfig | 1 +
configs/ls1021aqds_ddr4_nor_defconfig | 1 +
configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 1 +
configs/ls1021aqds_nand_defconfig | 1 +
configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 1 +
configs/ls1021aqds_nor_defconfig | 1 +
configs/ls1021aqds_nor_lpuart_defconfig | 1 +
configs/ls1021aqds_sdcard_ifc_defconfig | 1 +
configs/ls1046aqds_SECURE_BOOT_defconfig | 1 +
configs/ls1046aqds_defconfig | 1 +
configs/ls1046aqds_lpuart_defconfig | 1 +
configs/ls1046aqds_nand_defconfig | 1 +
configs/ls1046aqds_sdcard_ifc_defconfig | 1 +
configs/ls1046aqds_tfa_SECURE_BOOT_defconfig | 1 +
configs/ls1046aqds_tfa_defconfig | 1 +
configs/ls1088aqds_defconfig | 1 +
configs/ls1088aqds_sdcard_ifc_defconfig | 1 +
configs/ls1088aqds_tfa_defconfig | 1 +
configs/ls2080aqds_SECURE_BOOT_defconfig | 1 +
configs/ls2080aqds_defconfig | 1 +
configs/ls2088aqds_tfa_defconfig | 1 +
configs/qemu_arm64_defconfig | 2 +
configs/qemu_arm_defconfig | 2 +
configs/r8a77990_ebisu_defconfig | 1 +
configs/r8a77995_draak_defconfig | 1 +
configs/rcar3_salvator-x_defconfig | 1 +
configs/rcar3_ulcb_defconfig | 1 +
configs/sfr_nb4-ser_ram_defconfig | 1 +
configs/socrates_defconfig | 1 +
drivers/mtd/Kconfig | 27 ++
drivers/mtd/cfi_flash.c | 6 +-
drivers/mtd/cfi_mtd.c | 4 +-
include/configs/10m50_devboard.h | 1 -
include/configs/3c120_devboard.h | 1 -
include/configs/M5208EVBE.h | 1 -
include/configs/M5235EVB.h | 1 -
include/configs/M5249EVB.h | 1 -
include/configs/M5253DEMO.h | 1 -
include/configs/M5272C3.h | 1 -
include/configs/M5275EVB.h | 1 -
include/configs/M5282EVB.h | 1 -
include/configs/M53017EVB.h | 1 -
include/configs/M5329EVB.h | 1 -
include/configs/M5373EVB.h | 1 -
include/configs/MCR3000.h | 1 -
include/configs/MPC837XERDB.h | 1 -
include/configs/MPC8540ADS.h | 1 -
include/configs/MPC8548CDS.h | 1 -
include/configs/MPC8560ADS.h | 1 -
include/configs/P1010RDB.h | 1 -
include/configs/P2041RDB.h | 1 -
include/configs/T102xRDB.h | 1 -
include/configs/T104xRDB.h | 1 -
include/configs/T208xQDS.h | 1 -
include/configs/T208xRDB.h | 1 -
include/configs/T4240RDB.h | 1 -
include/configs/adp-ae3xx.h | 6 -
include/configs/adp-ag101p.h | 3 -
include/configs/am335x_evm.h | 1 -
include/configs/am3517_evm.h | 1 -
include/configs/amcore.h | 1 -
include/configs/armadillo-800eva.h | 1 -
include/configs/astro_mcf5373l.h | 1 -
include/configs/at91sam9263ek.h | 1 -
include/configs/ax25-ae350.h | 6 -
include/configs/bcm7445.h | 2 -
include/configs/blanche.h | 1 -
include/configs/bmips_bcm6338.h | 1 -
include/configs/bmips_bcm6348.h | 1 -
include/configs/bmips_bcm6358.h | 1 -
include/configs/bmips_bcm6368.h | 1 -
include/configs/boston.h | 2 +-
include/configs/cobra5272.h | 1 -
include/configs/colibri_pxa270.h | 1 -
include/configs/corenet_ds.h | 1 -
include/configs/da850evm.h | 1 -
include/configs/devkit3250.h | 1 -
include/configs/dra7xx_evm.h | 1 -
include/configs/draak.h | 1 -
include/configs/eb_cpu5282.h | 1 -
include/configs/ebisu.h | 1 -
include/configs/edminiv2.h | 1 -
include/configs/ethernut5.h | 2 -
include/configs/gazerbeam.h | 1 -
include/configs/ids8313.h | 1 -
include/configs/imx27lite-common.h | 1 -
include/configs/integrator-common.h | 1 -
include/configs/j721e_evm.h | 1 -
include/configs/km/km-mpc83xx.h | 1 -
include/configs/km/pg-wcom-ls102xa.h | 1 -
include/configs/kmcent2.h | 1 -
include/configs/kzm9g.h | 1 -
include/configs/ls1021aqds.h | 1 -
include/configs/ls1021atwr.h | 1 -
include/configs/ls1043aqds.h | 1 -
include/configs/ls1043ardb.h | 1 -
include/configs/ls1046aqds.h | 1 -
include/configs/ls1088aqds.h | 1 -
include/configs/ls1088ardb.h | 1 -
include/configs/ls2080aqds.h | 1 -
include/configs/ls2080ardb.h | 1 -
include/configs/lsxl.h | 1 -
include/configs/malta.h | 1 -
include/configs/mccmon6.h | 1 -
include/configs/microblaze-generic.h | 1 -
include/configs/mx6sabreauto.h | 1 -
include/configs/octeon_ebb7304.h | 1 -
include/configs/omap3_logic.h | 1 -
include/configs/p1_p2_rdb_pc.h | 2 -
include/configs/pm9261.h | 1 -
include/configs/pm9263.h | 1 -
include/configs/qemu-arm.h | 1 -
include/configs/qemu-riscv.h | 2 -
include/configs/r2dplus.h | 1 -
include/configs/salvator-x.h | 1 -
include/configs/sama5d3xek.h | 1 -
include/configs/socfpga_arria10_socdk.h | 1 -
include/configs/socfpga_soc64_common.h | 1 -
include/configs/socrates.h | 1 -
include/configs/stih410-b2260.h | 2 -
include/configs/stm32f429-discovery.h | 1 -
include/configs/stm32f429-evaluation.h | 1 -
include/configs/stm32f469-discovery.h | 1 -
include/configs/stm32f746-disco.h | 1 -
include/configs/synquacer.h | 1 -
include/configs/total_compute.h | 1 -
include/configs/ulcb.h | 1 -
include/configs/vexpress_aemv8a.h | 1 -
include/configs/vexpress_common.h | 1 -
include/configs/xtfpga.h | 1 -
include/configs/zynq-common.h | 1 -
include/mtd/cfi_flash.h | 15 +-
scripts/config_whitelist.txt | 3 -
182 files changed, 249 insertions(+), 263 deletions(-)
--
2.25.1
More information about the U-Boot
mailing list