Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
e118e233
Commit
e118e233
authored
Jun 24, 2003
by
stroese
Browse files
- Update NAND FLASH support.
parent
95aeb345
Changes
1
Hide whitespace changes
Inline
Side-by-side
board/esd/ash405/ash405.c
View file @
e118e233
...
...
@@ -238,10 +238,15 @@ int testdram (void)
/* ------------------------------------------------------------------------- */
#if (CONFIG_COMMANDS & CFG_CMD_NAND)
extern
void
nand_probe
(
ulong
physadr
);
#include
<linux/mtd/nand.h>
extern
struct
nand_chip
nand_dev_desc
[
CFG_MAX_NAND_DEVICE
];
void
nand_init
(
void
)
{
printf
(
"Probing at 0x%.8x
\n
"
,
CFG_NAND_BASE
);
nand_probe
(
CFG_NAND_BASE
);
if
(
nand_dev_desc
[
0
].
ChipID
!=
NAND_ChipID_UNKNOWN
)
{
puts
(
"NAND: "
);
print_size
(
nand_dev_desc
[
0
].
totlen
,
"
\n
"
);
}
}
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment