Lines Matching refs:ncfg

182 	struct lpc32xx_nand_cfg_mlc	*ncfg;  member
258 tmp |= MLCTIMEREG_TCEA_DELAY(clkrate / host->ncfg->tcea_delay + 1); in lpc32xx_nand_setup()
259 tmp |= MLCTIMEREG_BUSY_DELAY(clkrate / host->ncfg->busy_delay + 1); in lpc32xx_nand_setup()
260 tmp |= MLCTIMEREG_NAND_TA(clkrate / host->ncfg->nand_ta + 1); in lpc32xx_nand_setup()
261 tmp |= MLCTIMEREG_RD_HIGH(clkrate / host->ncfg->rd_high + 1); in lpc32xx_nand_setup()
262 tmp |= MLCTIMEREG_RD_LOW(clkrate / host->ncfg->rd_low); in lpc32xx_nand_setup()
263 tmp |= MLCTIMEREG_WR_HIGH(clkrate / host->ncfg->wr_high + 1); in lpc32xx_nand_setup()
264 tmp |= MLCTIMEREG_WR_LOW(clkrate / host->ncfg->wr_low); in lpc32xx_nand_setup()
622 struct lpc32xx_nand_cfg_mlc *ncfg; in lpc32xx_parse_dt() local
625 ncfg = devm_kzalloc(dev, sizeof(*ncfg), GFP_KERNEL); in lpc32xx_parse_dt()
626 if (!ncfg) in lpc32xx_parse_dt()
629 of_property_read_u32(np, "nxp,tcea-delay", &ncfg->tcea_delay); in lpc32xx_parse_dt()
630 of_property_read_u32(np, "nxp,busy-delay", &ncfg->busy_delay); in lpc32xx_parse_dt()
631 of_property_read_u32(np, "nxp,nand-ta", &ncfg->nand_ta); in lpc32xx_parse_dt()
632 of_property_read_u32(np, "nxp,rd-high", &ncfg->rd_high); in lpc32xx_parse_dt()
633 of_property_read_u32(np, "nxp,rd-low", &ncfg->rd_low); in lpc32xx_parse_dt()
634 of_property_read_u32(np, "nxp,wr-high", &ncfg->wr_high); in lpc32xx_parse_dt()
635 of_property_read_u32(np, "nxp,wr-low", &ncfg->wr_low); in lpc32xx_parse_dt()
637 if (!ncfg->tcea_delay || !ncfg->busy_delay || !ncfg->nand_ta || in lpc32xx_parse_dt()
638 !ncfg->rd_high || !ncfg->rd_low || !ncfg->wr_high || in lpc32xx_parse_dt()
639 !ncfg->wr_low) { in lpc32xx_parse_dt()
644 return ncfg; in lpc32xx_parse_dt()
712 host->ncfg = lpc32xx_parse_dt(&pdev->dev); in lpc32xx_nand_probe()
713 if (!host->ncfg) { in lpc32xx_nand_probe()
806 res = mtd_device_register(mtd, host->ncfg->parts, in lpc32xx_nand_probe()
807 host->ncfg->num_parts); in lpc32xx_nand_probe()