From: Wolfgang Ocker Date: Tue, 26 Aug 2008 17:55:23 +0000 (+0200) Subject: ppc4xx: NAND configuration X-Git-Tag: v2008.10-rc1~66^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52aef8f9ba28b747973bf76741c23db658d5773c;p=u-boot ppc4xx: NAND configuration Made NAND bank configuration setting a config variable. Signed-off-by: Wolfgang Ocker Signed-off-by: Stefan Roese --- diff --git a/cpu/ppc4xx/ndfc.c b/cpu/ppc4xx/ndfc.c index 72acfd01b5..a8e8aba814 100644 --- a/cpu/ppc4xx/ndfc.c +++ b/cpu/ppc4xx/ndfc.c @@ -149,6 +149,10 @@ static int ndfc_verify_buf(struct mtd_info *mtdinfo, const uint8_t *buf, int len } #endif /* #ifndef CONFIG_NAND_SPL */ +#ifndef CFG_NAND_BCR +#define CFG_NAND_BCR 0x80002222 +#endif + void board_nand_select_device(struct nand_chip *nand, int chip) { /* @@ -161,7 +165,7 @@ void board_nand_select_device(struct nand_chip *nand, int chip) /* Set NandFlash Core Configuration Register */ /* 1 col x 2 rows */ out_be32((u32 *)(base + NDFC_CCR), 0x00000000 | (cs << 24)); - out_be32((u32 *)(base + NDFC_BCFG0 + (cs << 2)), 0x80002222); + out_be32((u32 *)(base + NDFC_BCFG0 + (cs << 2)), CFG_NAND_BCR); } int board_nand_init(struct nand_chip *nand)