summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2016-02-09 12:55:58 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2016-02-17 10:54:10 +0100
commit3a6e2d774c3f6d980dff9f616948a090ce154c30 (patch)
tree4268a921ef666ef43d14aed466226fd0078586cc
parent1a109d23680c462917d73b07d065d9251d3a5d6d (diff)
cmd_nand.c: make raw_access() extern
We need raw nand access to write the fcb in cmd_writeboot. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--common/cmd_nand.c4
1 files changed, 3 insertions, 1 deletions
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;