Searched refs:sunxi_nand (Results 1 – 6 of 6) sorted by relevance
382 struct sunxi_nand_chip *sunxi_nand = to_sunxi_nand(nand); in sunxi_nfc_dev_ready() local383 struct sunxi_nfc *nfc = to_sunxi_nfc(sunxi_nand->nand.controller); in sunxi_nfc_dev_ready()385 unsigned long timeo = (sunxi_nand->nand.state == FL_ERASING ? 400 : 20); in sunxi_nfc_dev_ready()388 if (sunxi_nand->selected < 0) in sunxi_nfc_dev_ready()391 rb = &sunxi_nand->sels[sunxi_nand->selected].rb; in sunxi_nfc_dev_ready()420 struct sunxi_nand_chip *sunxi_nand = to_sunxi_nand(nand); in sunxi_nfc_select_chip() local421 struct sunxi_nfc *nfc = to_sunxi_nfc(sunxi_nand->nand.controller); in sunxi_nfc_select_chip()425 if (chip > 0 && chip >= sunxi_nand->nsels) in sunxi_nfc_select_chip()428 if (chip == sunxi_nand->selected) in sunxi_nfc_select_chip()435 sel = &sunxi_nand->sels[chip]; in sunxi_nfc_select_chip()[all …]
66 obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o
418 struct sunxi_nand_chip *sunxi_nand = to_sunxi_nand(nand); in sunxi_nfc_select_chip() local419 struct sunxi_nfc *nfc = to_sunxi_nfc(sunxi_nand->nand.controller); in sunxi_nfc_select_chip()423 if (cs >= sunxi_nand->nsels) in sunxi_nfc_select_chip()429 sel = &sunxi_nand->sels[cs]; in sunxi_nfc_select_chip()436 if (nfc->clk_rate != sunxi_nand->clk_rate) { in sunxi_nfc_select_chip()437 clk_set_rate(nfc->mod_clk, sunxi_nand->clk_rate); in sunxi_nfc_select_chip()438 nfc->clk_rate = sunxi_nand->clk_rate; in sunxi_nfc_select_chip()441 writel(sunxi_nand->timing_ctl, nfc->regs + NFC_REG_TIMING_CTL); in sunxi_nfc_select_chip()442 writel(sunxi_nand->timing_cfg, nfc->regs + NFC_REG_TIMING_CFG); in sunxi_nfc_select_chip()448 struct sunxi_nand_chip *sunxi_nand = to_sunxi_nand(nand); in sunxi_nfc_read_buf() local[all …]
45 obj-$(CONFIG_MTD_NAND_SUNXI) += sunxi_nand.o
[all...]