common: board_r: skip initr_nand() if kernel dtb is enabled

Nand will be initialized at init_kernel_dtb().

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I41ec1edfcb6328cbe02435143f212453e1638c80
This commit is contained in:
Joseph Chen 2020-05-12 17:37:43 +08:00 committed by Jianhong Chen
parent b53ffe05bf
commit b3622f5b4f
1 changed files with 2 additions and 0 deletions

View File

@ -420,9 +420,11 @@ static int initr_spi(void)
/* go init the NAND */
static int initr_nand(void)
{
#ifndef CONFIG_USING_KERNEL_DTB
puts("NAND: ");
nand_init();
printf("%lu MiB\n", nand_size() / 1024);
#endif
return 0;
}
#endif