X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fquad100hd%2Fnand.c;h=35525bc3bf5e7e07df95eb7f1f4c6c0df2da6f18;hb=8b33abde0ad386de0d786ff260cff634e16ebe9c;hp=766ee95bb3034e134587ce62947055dc469baa5f;hpb=ce0eb70333331da6942167c41e6841c8c7994a33;p=u-boot diff --git a/board/quad100hd/nand.c b/board/quad100hd/nand.c index 766ee95bb3..35525bc3bf 100644 --- a/board/quad100hd/nand.c +++ b/board/quad100hd/nand.c @@ -37,9 +37,9 @@ static void quad100hd_hwcontrol(struct mtd_info *mtd, struct nand_chip *this = mtd->priv; if (ctrl & NAND_CTRL_CHANGE) { - gpio_write_bit(CFG_NAND_CLE, !!(ctrl & NAND_CLE)); - gpio_write_bit(CFG_NAND_ALE, !!(ctrl & NAND_ALE)); - gpio_write_bit(CFG_NAND_CE, !(ctrl & NAND_NCE)); + gpio_write_bit(CONFIG_SYS_NAND_CLE, !!(ctrl & NAND_CLE)); + gpio_write_bit(CONFIG_SYS_NAND_ALE, !!(ctrl & NAND_ALE)); + gpio_write_bit(CONFIG_SYS_NAND_CE, !(ctrl & NAND_NCE)); } if (cmd != NAND_CMD_NONE) @@ -48,7 +48,7 @@ static void quad100hd_hwcontrol(struct mtd_info *mtd, static int quad100hd_nand_ready(struct mtd_info *mtd) { - return gpio_read_in_bit(CFG_NAND_RDY); + return gpio_read_in_bit(CONFIG_SYS_NAND_RDY); } /*