From e26d44931dc022fe320f34c58ec138bc1b8c6864 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 22 Nov 2016 17:46:21 -0800 Subject: cmd_writebcb_mx7: add command to write FCB and DBBT for i.MX 7 Code mostly ported from imx-kobs-5.3. MTD partitioning is set accordingly. writebcb: Write Boot Control Block (FCB and DBBT) Signed-off-by: Max Krummenacher [ported to U-Boot 2016.11] Signed-off-by: Stefan Agner Acked-by: Max Krummenacher --- cmd/nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/nand.c b/cmd/nand.c index c16ec77ed4..ea6e17afc6 100644 --- a/cmd/nand.c +++ b/cmd/nand.c @@ -304,8 +304,8 @@ static void nand_print_and_set_info(int idx) setenv_hex("nand_erasesize", mtd->erasesize); } -static int raw_access(struct mtd_info *mtd, ulong addr, loff_t off, - ulong count, int read, int no_verify) +int raw_access(struct mtd_info *mtd, ulong addr, loff_t off, + ulong count, int read, int no_verify) { int ret = 0; -- cgit v1.2.3