From: Patrick Delaunay <patrick.delaunay@foss.st.com>
To: <u-boot@lists.denx.de>
Cc: "Marek Vasut" <marex@denx.de>, "Simon Glass" <sjg@chromium.org>,
"Patrick Delaunay" <patrick.delaunay@foss.st.com>,
"Aaron Williams" <awilliams@marvell.com>,
"Adam Ford" <aford173@gmail.com>,
"Aleksandar Gerasimovski"
<aleksandar.gerasimovski@hitachienergy.com>,
"Alison Wang" <alison.wang@nxp.com>, Andes <uboot@andestech.com>,
"Andrew F. Davis" <afd@ti.com>,
"Angelo Dureghello" <angelo@sysam.it>,
"Ashish Kumar" <Ashish.Kumar@nxp.com>,
"Bin Meng" <bmeng.cn@gmail.com>,
"Chee Hong Ang" <chee.hong.ang@intel.com>,
"Chin-Liang See" <clsee@altera.com>,
"Christophe Leroy" <christophe.leroy@c-s.fr>,
"Dalon Westergreen" <dalon.westergreen@intel.com>,
"Daniel Schwierzeck" <daniel.schwierzeck@gmail.com>,
"David Feng" <fenghua@phytium.com.cn>,
"Dinh Nguyen" <dinguyen@kernel.org>,
"Dirk Eibach" <dirk.eibach@gdsys.cc>,
"Eugen Hristev" <eugen.hristev@microchip.com>,
"Fabio Estevam" <festevam@gmail.com>,
"Heiko Schocher" <hs@denx.de>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Igor Opaniuk" <igor.opaniuk@foundries.io>,
"Ilko Iliev" <iliev@ronetix.at>,
"Jagan Teki" <jagan@amarulasolutions.com>,
"Jassi Brar" <jaswinder.singh@linaro.org>,
"Jens Scharsig" <esw@bus-elektronik.de>,
"Kamil Lulko" <kamil.lulko@gmail.com>,
"Kristian Amlie" <kristian.amlie@northern.tech>,
"Liviu Dudau" <liviu.dudau@foss.arm.com>,
"Lukasz Majewski" <lukma@denx.de>,
"Marek Behún" <marek.behun@nic.cz>,
"Marek Vasut" <marek.vasut+renesas@gmail.com>,
"Masakazu Mochizuki" <masakazu.mochizuki.wd@hitachi.com>,
"Masami Hiramatsu" <masami.hiramatsu@linaro.org>,
"Max Filippov" <jcmvbkbc@gmail.com>,
"Michael Walle" <michael@walle.cc>,
"Michal Simek" <monstr@monstr.eu>,
"Mingkai Hu" <Mingkai.Hu@nxp.com>, "Niel Fourie" <lusus@denx.de>,
"Nobuhiro Iwamatsu" <iwamatsu@nigauri.org>,
"Patrice Chotard" <patrice.chotard@foss.st.com>,
"Paul Burton" <paul.burton@mips.com>,
"Peng Fan" <peng.fan@nxp.com>,
"Priyanka Jain" <priyanka.jain@nxp.com>,
"Qiang Zhao" <qiang.zhao@nxp.com>,
"Rainer Boschung" <rainer.boschung@hitachienergy.com>,
"Rajesh Bhagat" <rajesh.bhagat@nxp.com>,
"Rasmus Villemoes" <rasmus.villemoes@prevas.dk>,
"Rick Chen" <rick@andestech.com>,
"Ruchika Gupta" <ruchika.gupta@nxp.com>,
"Sean Anderson" <seanga2@gmail.com>,
"Shengzhou Liu" <Shengzhou.Liu@nxp.com>,
"Siew Chin Lim" <elly.siew.chin.lim@intel.com>,
"Simon Guinot" <simon.guinot@sequanux.org>,
"Sinan Akman" <sinan@writeme.com>, "Stefan Roese" <sr@denx.de>,
"Stelian Pop" <stelian@popies.net>,
"Tetsuyuki Kobayashi" <koba@kmckk.co.jp>,
"Thomas Chou" <thomas@wytron.com.tw>,
"Thomas Fitzsimmons" <fitzsim@fitzsim.org>,
"TsiChung Liew" <Tsi-Chung.Liew@nxp.com>,
"Tuomas Tynkkynen" <tuomas.tynkkynen@iki.fi>,
"Usama Arif" <usama.arif@arm.com>, "Vignesh R" <vigneshr@ti.com>,
"Vikas Manocha" <vikas.manocha@st.com>,
"Vladimir Zapolskiy" <vz@mleia.com>, "Wolfgang Denk" <wd@denx.de>,
"Wolfgang Wegner" <w.wegner@astro-kom.de>,
"egnite GmbH" <info@egnite.de>,
uboot-stm32@st-md-mailman.stormreply.com,
"Álvaro Fernández Rojas" <noltari@gmail.com>
Subject: [PATCH v1 0/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig
Date: Tue, 4 Jan 2022 14:23:56 +0100 [thread overview]
Message-ID: <20220104132401.3573475-1-patrick.delaunay@foss.st.com> (raw)
Proposal after Marek comment in [1], move CONFIG_SYS_MAX_FLASH_BANKS
and CONFIG_SYS_MAX_FLASH_BANKS_DETECT in Kconfig.
Series based on the previous RFC [2], rebased on top of the next
branch and added reviewed-by.
I wasn't not sure of the 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 after rebase but not tested =
https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/10431
[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@changeid/#2754501
[2] [RFC] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig
http: //patchwork.ozlabs.org/project/uboot/list/?series=276760&state=*
Changes in v1:
- update drivers/mtd/spi/spi-nor-core.c for cfi_mtd_nb
needed after RFC rebase
- solve issue in cfi_flash.h, with
CFI_FLASH_BANKS=CONFIG_SYS_MAX_FLASH_BANKS_DETECT
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 +-
drivers/mtd/spi/spi-nor-core.c | 5 +-
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 | 17 +-
scripts/config_whitelist.txt | 3 -
183 files changed, 252 insertions(+), 267 deletions(-)
--
2.25.1
next reply other threads:[~2022-01-04 13:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 13:23 Patrick Delaunay [this message]
2022-01-04 13:23 ` [PATCH v1 1/5] cmd: Fix up warnings in flash.c Patrick Delaunay
2022-01-05 8:42 ` Stefan Roese
2022-01-21 19:02 ` Tom Rini
2022-01-04 13:23 ` [PATCH v1 2/5] mtd: cfi: introduce CFI_FLASH_BANKS Patrick Delaunay
2022-01-05 8:43 ` Stefan Roese
2022-01-21 19:03 ` Tom Rini
2022-01-04 13:23 ` [PATCH v1 3/5] mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean Patrick Delaunay
2022-01-05 8:43 ` Stefan Roese
2022-01-21 19:03 ` Tom Rini
2022-01-04 13:24 ` [PATCH v1 4/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig Patrick Delaunay
2022-01-05 8:43 ` Stefan Roese
2022-01-21 19:03 ` Tom Rini
2022-01-04 13:24 ` [PATCH v1 5/5] Convert CONFIG_AT91_EFLASH " Patrick Delaunay
2022-01-05 8:44 ` Stefan Roese
2022-01-05 8:53 ` Eugen.Hristev
2022-01-21 19:03 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220104132401.3573475-1-patrick.delaunay@foss.st.com \
--to=patrick.delaunay@foss.st.com \
--cc=Ashish.Kumar@nxp.com \
--cc=Mingkai.Hu@nxp.com \
--cc=Shengzhou.Liu@nxp.com \
--cc=Tsi-Chung.Liew@nxp.com \
--cc=afd@ti.com \
--cc=aford173@gmail.com \
--cc=aleksandar.gerasimovski@hitachienergy.com \
--cc=alison.wang@nxp.com \
--cc=angelo@sysam.it \
--cc=awilliams@marvell.com \
--cc=bmeng.cn@gmail.com \
--cc=chee.hong.ang@intel.com \
--cc=christophe.leroy@c-s.fr \
--cc=clsee@altera.com \
--cc=dalon.westergreen@intel.com \
--cc=daniel.schwierzeck@gmail.com \
--cc=dinguyen@kernel.org \
--cc=dirk.eibach@gdsys.cc \
--cc=elly.siew.chin.lim@intel.com \
--cc=esw@bus-elektronik.de \
--cc=eugen.hristev@microchip.com \
--cc=fenghua@phytium.com.cn \
--cc=festevam@gmail.com \
--cc=fitzsim@fitzsim.org \
--cc=hs@denx.de \
--cc=igor.opaniuk@foundries.io \
--cc=iliev@ronetix.at \
--cc=info@egnite.de \
--cc=iwamatsu@nigauri.org \
--cc=jagan@amarulasolutions.com \
--cc=jaswinder.singh@linaro.org \
--cc=jcmvbkbc@gmail.com \
--cc=kamil.lulko@gmail.com \
--cc=koba@kmckk.co.jp \
--cc=kristian.amlie@northern.tech \
--cc=liviu.dudau@foss.arm.com \
--cc=lukma@denx.de \
--cc=lusus@denx.de \
--cc=marek.behun@nic.cz \
--cc=marek.vasut+renesas@gmail.com \
--cc=marex@denx.de \
--cc=masakazu.mochizuki.wd@hitachi.com \
--cc=masami.hiramatsu@linaro.org \
--cc=michael@walle.cc \
--cc=monstr@monstr.eu \
--cc=noltari@gmail.com \
--cc=patrice.chotard@foss.st.com \
--cc=paul.burton@mips.com \
--cc=peng.fan@nxp.com \
--cc=priyanka.jain@nxp.com \
--cc=qiang.zhao@nxp.com \
--cc=rainer.boschung@hitachienergy.com \
--cc=rajesh.bhagat@nxp.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=rick@andestech.com \
--cc=ruchika.gupta@nxp.com \
--cc=seanga2@gmail.com \
--cc=simon.guinot@sequanux.org \
--cc=sinan@writeme.com \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--cc=stelian@popies.net \
--cc=thomas@wytron.com.tw \
--cc=tuomas.tynkkynen@iki.fi \
--cc=u-boot@lists.denx.de \
--cc=uboot-stm32@st-md-mailman.stormreply.com \
--cc=uboot@andestech.com \
--cc=usama.arif@arm.com \
--cc=vigneshr@ti.com \
--cc=vikas.manocha@st.com \
--cc=vz@mleia.com \
--cc=w.wegner@astro-kom.de \
--cc=wd@denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.