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:
parent
b53ffe05bf
commit
b3622f5b4f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue