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
..
2019-12-04 17:10:51 -05:00
2019-10-16 05:42:27 +02:00
2019-09-04 11:37:19 -05:00
2019-11-14 07:09:34 -06:00
2019-11-17 17:22:53 +08:00
2019-07-24 13:16:29 -04:00
2018-11-14 09:16:27 -08:00
2019-11-02 18:00:51 +08:00
2019-09-20 20:09:19 +02:00
2019-07-19 11:11:09 +08:00
2019-04-23 20:26:43 -06:00
2018-12-07 08:13:45 -05:00
2018-12-07 08:13:45 -05:00
2019-10-13 23:34:43 +02:00
2019-10-06 16:02:37 +02:00
2019-04-22 12:06:39 -04:00
2019-02-20 15:27:09 +08:00
2018-12-06 23:26:32 -05:00
2019-02-09 12:50:22 -07:00
2019-10-14 09:31:41 +02:00
2019-11-05 10:27:18 +01:00
2018-12-05 06:01:35 -07:00
2019-11-07 18:39:16 -05:00
2019-08-11 16:43:41 -04:00
2019-02-02 08:19:17 -05:00
2019-12-02 18:23:11 -05:00
2019-08-02 11:19:14 -04:00
2019-07-18 16:37:13 -05:00
2019-05-20 13:50:34 +02:00
2019-12-02 18:23:09 -05:00
2019-05-20 13:50:34 +02:00
2019-11-03 07:20:26 +08:00
2019-02-01 16:59:12 +01:00
2019-05-21 17:33:23 -06:00
2019-12-02 18:23:09 -05:00
2019-07-19 20:14:50 +02:00