diff options
Diffstat (limited to 'drivers/nand/nand.c')
| -rw-r--r-- | drivers/nand/nand.c | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/drivers/nand/nand.c b/drivers/nand/nand.c index e1781fcbb..3899045a7 100644 --- a/drivers/nand/nand.c +++ b/drivers/nand/nand.c @@ -66,8 +66,15 @@ void nand_init(void)  		size += nand_info[i].size;  		if (nand_curr_device == -1)  			nand_curr_device = i; -} +	}  	printf("%lu MiB\n", size / (1024 * 1024)); + +#ifdef CFG_NAND_SELECT_DEVICE +	/* +	 * Select the chip in the board/cpu specific driver +	 */ +	board_nand_select_device(nand_info[nand_curr_device].priv, nand_curr_device); +#endif  }  #endif |