From 3a6e2d774c3f6d980dff9f616948a090ce154c30 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 9 Feb 2016 12:55:58 +0100 Subject: cmd_nand.c: make raw_access() extern We need raw nand access to write the fcb in cmd_writeboot. Signed-off-by: Max Krummenacher --- common/cmd_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 17fa7ea6bd..270cebcc55 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -404,7 +404,9 @@ static void nand_print_and_set_info(int idx) setenv_hex("nand_erasesize", nand->erasesize); } -static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, +extern int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, + int read); +int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, int read) { int ret = 0; -- cgit v1.2.3