mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-13 14:06:07 -04:00
ASH405 update.
This commit is contained in:
parent
9a2dd74032
commit
895af12a21
@ -239,11 +239,14 @@ int testdram (void)
|
|||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#if (CONFIG_COMMANDS & CFG_CMD_NAND)
|
#if (CONFIG_COMMANDS & CFG_CMD_NAND)
|
||||||
|
#include <linux/mtd/nand.h>
|
||||||
|
extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
|
||||||
|
|
||||||
void nand_init(void)
|
void nand_init(void)
|
||||||
{
|
{
|
||||||
unsigned long totlen = nand_probe(CFG_NAND_BASE);
|
nand_probe(CFG_NAND_BASE);
|
||||||
|
if (nand_dev_desc[0].ChipID != NAND_ChipID_UNKNOWN) {
|
||||||
printf ("%4lu MB\n", totlen >> 20);
|
print_size(nand_dev_desc[0].totlen, "\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user