Home
last modified time | relevance | path

Searched refs:nfc (Results 1 – 10 of 10) sorted by relevance

/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dvf610_nfc.c200 struct vf610_nfc *nfc = mtd_to_nfc(mtd); in vf610_nfc_read() local
202 return readl(nfc->regs + reg); in vf610_nfc_read()
207 struct vf610_nfc *nfc = mtd_to_nfc(mtd); in vf610_nfc_write() local
209 writel(val, nfc->regs + reg); in vf610_nfc_write()
254 struct vf610_nfc *nfc = mtd_to_nfc(mtd); in vf610_nfc_done() local
274 vf610_nfc_clear_status(nfc->regs); in vf610_nfc_done()
329 struct vf610_nfc *nfc = mtd_to_nfc(mtd); in vf610_nfc_addr_cycle() local
330 if (nfc->chip.options & NAND_BUSWIDTH_16) in vf610_nfc_addr_cycle()
356 struct vf610_nfc *nfc = mtd_to_nfc(mtd); in vf610_nfc_command() local
357 int trfr_sz = nfc->chip.options & NAND_BUSWIDTH_16 ? 1 : 0; in vf610_nfc_command()
[all …]
H A Dmxc_nand_spl.c21 static struct mxc_nand_regs *const nfc = (void *)NFC_BASE_ADDR; variable
23 static struct mxc_nand_regs *const nfc = (void *)NFC_BASE_ADDR_AXI; variable
32 while (!(readnfc(&nfc->config2) & NFC_V1_V2_CONFIG2_INT)) in nfc_wait_ready()
36 tmp = readnfc(&nfc->config2); in nfc_wait_ready()
38 writenfc(tmp, &nfc->config2); in nfc_wait_ready()
92 writenfc(CONFIG_SYS_NAND_OOBSIZE / 2, &nfc->spare_area_size); in nfc_nand_init()
95 writenfc(0x2, &nfc->config); in nfc_nand_init()
98 config1 = readnfc(&nfc->config1) | NFC_V1_V2_CONFIG1_ECC_EN | in nfc_nand_init()
109 writenfc(config1, &nfc->config1); in nfc_nand_init()
112 writenfc(0x2, &nfc->config); in nfc_nand_init()
[all …]
H A Dsunxi_nand.c316 static int sunxi_nfc_wait_int(struct sunxi_nfc *nfc, u32 flags, in sunxi_nfc_wait_int() argument
331 status = readl(nfc->regs + NFC_REG_ST); in sunxi_nfc_wait_int()
340 writel(status & flags, nfc->regs + NFC_REG_ST); in sunxi_nfc_wait_int()
345 static int sunxi_nfc_wait_cmd_fifo_empty(struct sunxi_nfc *nfc) in sunxi_nfc_wait_cmd_fifo_empty() argument
353 if (!(readl(nfc->regs + NFC_REG_ST) & NFC_CMD_FIFO_STATUS)) in sunxi_nfc_wait_cmd_fifo_empty()
357 dev_err(nfc->dev, "wait for empty cmd FIFO timedout\n"); in sunxi_nfc_wait_cmd_fifo_empty()
361 static int sunxi_nfc_rst(struct sunxi_nfc *nfc) in sunxi_nfc_rst() argument
367 writel(0, nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_rst()
368 writel(NFC_RESET, nfc->regs + NFC_REG_CTL); in sunxi_nfc_rst()
372 if (!(readl(nfc->regs + NFC_REG_CTL) & NFC_RESET)) in sunxi_nfc_rst()
[all …]
/rk3399_rockchip-uboot/arch/arm/dts/
H A Dsun5i-gr8-chip-pro.dts138 &nfc {
H A Dsama5d3.dtsi1526 nfc@70000000 {
1527 compatible = "atmel,sama5d3-nfc";
H A Dsama5d4.dtsi301 nfc@90000000 {
302 compatible = "atmel,sama5d3-nfc";
H A Dzynqmp.dtsi558 compatible = "arasan,nfc-v3p10";
H A Dsun5i-gr8.dtsi535 nfc: nand@01c03000 { label
H A Dsun4i-a10.dtsi724 nfc: nand@01c03000 { label
H A Dsun7i-a20.dtsi849 nfc: nand@01c03000 { label