aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2017-03-17 16:12:31 +0800
committerYork Sun <york.sun@nxp.com>2017-03-28 10:39:33 -0700
commit203db38a94a424bb1ab6a91e85148e8a8ea795d0 (patch)
tree153ab525078515afbf835638ee4bc2afb807cc0a /common
parentd72158c045eacf5022b052bdc56a32bc98c89034 (diff)
downloadu-boot-203db38a94a424bb1ab6a91e85148e8a8ea795d0.zip
u-boot-203db38a94a424bb1ab6a91e85148e8a8ea795d0.tar.gz
u-boot-203db38a94a424bb1ab6a91e85148e8a8ea795d0.tar.bz2
mtd: nand: remove nand size print from nand_init function
Add nand_size() function to move the nand size print into initr_nand(). Remove nand size print from nand_init() to allow other function to call nand_init() without printing nand size. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 5c9e698..3344913 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -426,6 +426,7 @@ static int initr_nand(void)
{
puts("NAND: ");
nand_init();
+ printf("%lu MiB\n", nand_size() / 1024);
return 0;
}
#endif