summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-davinci
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-05-10 15:43:01 -0700
committerScott Wood <scottwood@freescale.com>2009-07-07 17:58:03 -0500
commit154b5484ac7dcbcd0fb5ba388d930b02f87fa302 (patch)
tree84e4960c2c10d441ec2a287447214d8ae51ac194 /include/asm-arm/arch-davinci
parent496863b2440dd7cd69a1ad2443a9badd5f8968d1 (diff)
downloadu-boot-imx-154b5484ac7dcbcd0fb5ba388d930b02f87fa302.zip
u-boot-imx-154b5484ac7dcbcd0fb5ba388d930b02f87fa302.tar.gz
u-boot-imx-154b5484ac7dcbcd0fb5ba388d930b02f87fa302.tar.bz2
davinci_nand chipselect/init cleanup
Update chipselect handling in davinci_nand.c so that it can handle 2 GByte chips the same way Linux does: as one device, even though it has two halves with independent chip selects. For such chips the "nand info" command reports: Device 0: 2x nand0, sector size 128 KiB Switch to use the default chipselect function unless the board really needs its own. The logic for the Sonata board moves out of the driver into board-specific code. (Which doesn't affect current build breakage if its NAND support is enabled...) Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-davinci')
-rw-r--r--include/asm-arm/arch-davinci/nand_defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-arm/arch-davinci/nand_defs.h b/include/asm-arm/arch-davinci/nand_defs.h
index f202072..386540e 100644
--- a/include/asm-arm/arch-davinci/nand_defs.h
+++ b/include/asm-arm/arch-davinci/nand_defs.h
@@ -40,4 +40,6 @@
#define NAND_READ_END 0x30
#define NAND_STATUS 0x70
+extern void davinci_nand_init(struct nand_chip *nand);
+
#endif