]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
ppc4xx/NAND: Add select_chip function to 4xx NDFC driver
authorStefan Roese <sr@denx.de>
Fri, 29 Aug 2008 09:56:49 +0000 (11:56 +0200)
committerStefan Roese <sr@denx.de>
Sat, 30 Aug 2008 09:24:54 +0000 (11:24 +0200)
This function is needed for the new NAND infrastructure. We only need
a dummy implementation though for the NDFC.

Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/ndfc.c

index a8e8aba814128f2c56fe42c65ed96b8dd515f326..7d96e796d16b675a54a1cc43eb3af1954c990e6e 100644 (file)
@@ -168,6 +168,13 @@ void board_nand_select_device(struct nand_chip *nand, int chip)
        out_be32((u32 *)(base + NDFC_BCFG0 + (cs << 2)), CFG_NAND_BCR);
 }
 
+static void ndfc_select_chip(struct mtd_info *mtd, int chip)
+{
+       /*
+        * Nothing to do here!
+        */
+}
+
 int board_nand_init(struct nand_chip *nand)
 {
        int cs = (ulong)nand->IO_ADDR_W & 0x00000003;
@@ -196,6 +203,7 @@ int board_nand_init(struct nand_chip *nand)
        nand->ecc.mode = NAND_ECC_HW;
        nand->ecc.size = 256;
        nand->ecc.bytes = 3;
+       nand->select_chip = ndfc_select_chip;
 
 #ifndef CONFIG_NAND_SPL
        nand->write_buf  = ndfc_write_buf;