From: Tom Rini Date: Thu, 8 Aug 2024 13:59:47 +0000 (-0600) Subject: Merge tag 'u-boot-nand-20240808' of https://source.denx.de/u-boot/custodians/u-boot... X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-logo.png?a=commitdiff_plain;h=eb8e25c000d185ece0136b13cca73084eb980253;p=u-boot.git Merge tag 'u-boot-nand-20240808' of https://source.denx.de/u-boot/custodians/u-boot-nand-flash This series adds support for the UBI block device, which allows to read/write data block by block. The series was tested by Alexey Romanov on SPI NAND. The patches pass the pipeline CI: https://source.denx.de/u-boot/custodians/u-boot-nand-flash/-/pipelines/21933 --- eb8e25c000d185ece0136b13cca73084eb980253 diff --cc drivers/mtd/Kconfig index 4fdc9645d0,ce74ef31d7..3764e2567c --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@@ -31,6 -32,14 +32,13 @@@ config MTD_CONCA into a single logical device. The larger logical device can then be partitioned. + config MTD_BLOCK + bool "Enable block device access to MTD devices" + depends on BLK - default n + help + Enable support for block device access to MTD devices + using blk_ops abstraction. + config SYS_MTDPARTS_RUNTIME bool "Allow MTDPARTS to be configured at runtime" help diff --cc drivers/mtd/ubi/Kconfig index fd446d6efb,ccbeafad26..c027d898a6 --- a/drivers/mtd/ubi/Kconfig +++ b/drivers/mtd/ubi/Kconfig @@@ -114,5 -114,12 +114,11 @@@ config MTD_UBI_FM_DEBU help Enable UBI fastmap debug + config UBI_BLOCK + bool "Enable UBI block device support" + depends on BLK - default n + help + Enable UBI block device support using blk_ops abstraction. + endif # MTD_UBI endmenu # "Enable UBI - Unsorted block images"