u-boot/drivers/mtd
Miquel Raynal eb446ef625 cmd: nand/sf: isolate legacy code
The 'sf' command is not supposed to rely on the MTD stack, but both
'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite
their location, these functions do not depend at all on the MTD
stack.

This file (drivers/mtd/mtd_uboot.c) is only compiled if CONFIG_MTD is
selected, which is inconsistent with the current situation. Solve this
by moving these three functions (which are only used by the above two
commands) out of mtd_uboot.c and put them in a C file only compiled
with cmd/sf.c and cmd/nand.c.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
[trini: Don't export get_part function now]
Signed-off-by: Tom Rini <trini@konsulko.com>
2019-12-04 17:10:51 -05:00
..
nand mtd: nand: add includes in NAND core to avoid warnings 2019-12-04 17:10:51 -05:00
onenand mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD 2019-12-03 23:04:10 -05:00
spi mtd: spi: SPI_FLASH_MTD depends on MTD 2019-12-04 17:10:51 -05:00
ubi crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
ubispl crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
altera_qspi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cfi_flash.c common: Move interrupt functions into a new header 2019-12-02 18:25:00 -05:00
cfi_mtd.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hbmc-am654.c mtd: Add TI HyperBus Memory Controller driver 2019-10-24 09:49:10 +02:00
jedec_flash.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
Kconfig mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD 2019-12-03 23:04:10 -05:00
Makefile cmd: nand/sf: isolate legacy code 2019-12-04 17:10:51 -05:00
mtd-uclass.c mtd: uclass: add probe function 2018-10-02 22:12:31 +05:30
mtd_uboot.c cmd: nand/sf: isolate legacy code 2019-12-04 17:10:51 -05:00
mtdconcat.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mtdcore.c mtd: mtdcore: Drop unused mtd_table 2019-12-03 08:43:24 -05:00
mtdcore.h mtd: move definitions to enlarge their range 2018-09-20 20:10:49 +05:30
mtdpart.c mtd: Don't stop MTD partition creation when it fails on one device 2018-12-06 00:45:36 +05:30
mw_eeprom.c common: Move old EEPROM functions into a new header 2019-12-02 18:25:25 -05:00
pic32_flash.c common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
renesas_rpc_hf.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
st_smi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32_flash.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32_flash.h