diff options
author | Apurva Nandan <a-nandan@ti.com> | 2023-01-23 23:13:29 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2023-01-25 14:10:19 -0600 |
commit | 341effe314230347f952776b4ac660229613f47a (patch) | |
tree | 853ccee9c96a1a5e0f8bb0e94e0d6a6a655b6bc0 /include | |
parent | 13e96746ab470bbe7b44cde9b4a548946ff99c10 (diff) |
spl: mtd: Remove MTD device after loading images
Releasing the flash into proper state, after the loading completes,
is important for the next stage bootloader/kernel to be able to use
the MTD device. This would enable to reset the device for fresh
use by next boot stage.
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/mtd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mtd.h b/include/mtd.h index b0f8693386..926ee2075e 100644 --- a/include/mtd.h +++ b/include/mtd.h @@ -9,6 +9,7 @@ #include <linux/mtd/mtd.h> int mtd_probe(struct udevice *dev); +int mtd_remove(struct mtd_info *mtd); int mtd_probe_devices(void); void board_mtdparts_default(const char **mtdids, const char **mtdparts); |