• Home
  • Raw
  • Download

Lines Matching refs:ncfg

209 	struct lpc32xx_nand_cfg_slc *ncfg;  member
245 tmp = SLCTAC_WDR(host->ncfg->wdr_clks) | in lpc32xx_nand_setup()
246 SLCTAC_WWIDTH(clkrate, host->ncfg->wwidth) | in lpc32xx_nand_setup()
247 SLCTAC_WHOLD(clkrate, host->ncfg->whold) | in lpc32xx_nand_setup()
248 SLCTAC_WSETUP(clkrate, host->ncfg->wsetup) | in lpc32xx_nand_setup()
249 SLCTAC_RDR(host->ncfg->rdr_clks) | in lpc32xx_nand_setup()
250 SLCTAC_RWIDTH(clkrate, host->ncfg->rwidth) | in lpc32xx_nand_setup()
251 SLCTAC_RHOLD(clkrate, host->ncfg->rhold) | in lpc32xx_nand_setup()
252 SLCTAC_RSETUP(clkrate, host->ncfg->rsetup); in lpc32xx_nand_setup()
302 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable()
303 gpio_set_value(host->ncfg->wp_gpio, 0); in lpc32xx_wp_enable()
311 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_disable()
312 gpio_set_value(host->ncfg->wp_gpio, 1); in lpc32xx_wp_disable()
728 struct lpc32xx_nand_cfg_slc *ncfg; in lpc32xx_parse_dt() local
731 ncfg = devm_kzalloc(dev, sizeof(*ncfg), GFP_KERNEL); in lpc32xx_parse_dt()
732 if (!ncfg) in lpc32xx_parse_dt()
735 of_property_read_u32(np, "nxp,wdr-clks", &ncfg->wdr_clks); in lpc32xx_parse_dt()
736 of_property_read_u32(np, "nxp,wwidth", &ncfg->wwidth); in lpc32xx_parse_dt()
737 of_property_read_u32(np, "nxp,whold", &ncfg->whold); in lpc32xx_parse_dt()
738 of_property_read_u32(np, "nxp,wsetup", &ncfg->wsetup); in lpc32xx_parse_dt()
739 of_property_read_u32(np, "nxp,rdr-clks", &ncfg->rdr_clks); in lpc32xx_parse_dt()
740 of_property_read_u32(np, "nxp,rwidth", &ncfg->rwidth); in lpc32xx_parse_dt()
741 of_property_read_u32(np, "nxp,rhold", &ncfg->rhold); in lpc32xx_parse_dt()
742 of_property_read_u32(np, "nxp,rsetup", &ncfg->rsetup); in lpc32xx_parse_dt()
744 if (!ncfg->wdr_clks || !ncfg->wwidth || !ncfg->whold || in lpc32xx_parse_dt()
745 !ncfg->wsetup || !ncfg->rdr_clks || !ncfg->rwidth || in lpc32xx_parse_dt()
746 !ncfg->rhold || !ncfg->rsetup) { in lpc32xx_parse_dt()
751 ncfg->use_bbt = of_get_nand_on_flash_bbt(np); in lpc32xx_parse_dt()
752 ncfg->wp_gpio = of_get_named_gpio(np, "gpios", 0); in lpc32xx_parse_dt()
754 return ncfg; in lpc32xx_parse_dt()
786 host->ncfg = lpc32xx_parse_dt(&pdev->dev); in lpc32xx_nand_probe()
787 if (!host->ncfg) { in lpc32xx_nand_probe()
792 if (host->ncfg->wp_gpio == -EPROBE_DEFER) in lpc32xx_nand_probe()
794 if (gpio_is_valid(host->ncfg->wp_gpio) && devm_gpio_request(&pdev->dev, in lpc32xx_nand_probe()
795 host->ncfg->wp_gpio, "NAND WP")) { in lpc32xx_nand_probe()
888 if (host->ncfg->use_bbt) { in lpc32xx_nand_probe()
912 res = mtd_device_parse_register(mtd, NULL, &ppdata, host->ncfg->parts, in lpc32xx_nand_probe()
913 host->ncfg->num_parts); in lpc32xx_nand_probe()