summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8360erdk
diff options
context:
space:
mode:
authorWolfgang Grandegger <wg@grandegger.com>2009-02-11 18:38:21 +0100
committerScott Wood <scottwood@freescale.com>2009-03-23 15:53:38 -0500
commite93c1c169d49eda7babad9c781f541e2e34f0ff0 (patch)
treef02c89ca6f98af1bd2e64605ae531333943b9713 /board/freescale/mpc8360erdk
parent672ed2aee91b4856f6671fc72cd34168d8f1b624 (diff)
downloadu-boot-imx-e93c1c169d49eda7babad9c781f541e2e34f0ff0.zip
u-boot-imx-e93c1c169d49eda7babad9c781f541e2e34f0ff0.tar.gz
u-boot-imx-e93c1c169d49eda7babad9c781f541e2e34f0ff0.tar.bz2
Add multi chip support to the FSL-UPM driver
This patch adds support for multi-chip NAND devices to the FSL-UPM driver. The "dev_ready" callback of the "struct fsl_upm_nand" is now called with the argument "chip_nr" to allow testing the proper chip select line. The NAND support of the MPC8360ERDK is updated as well. No other boards are currently using the FSL UPM driver. Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'board/freescale/mpc8360erdk')
-rw-r--r--board/freescale/mpc8360erdk/nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mpc8360erdk/nand.c b/board/freescale/mpc8360erdk/nand.c
index 8e22e13..aa43350 100644
--- a/board/freescale/mpc8360erdk/nand.c
+++ b/board/freescale/mpc8360erdk/nand.c
@@ -57,7 +57,7 @@ static void upm_setup(struct fsl_upm *upm)
eieio();
}
-static int dev_ready(void)
+static int dev_ready(int chip_nr)
{
if (in_be32(&im->qepio.ioport[4].pdat) & 0x00002000) {
debug("nand ready\n");