• Home
  • Raw
  • Download

Lines Matching refs:io_base

230 	void __iomem		*io_base;  member
252 writel(SLCCTRL_SW_RESET, SLC_CTRL(host->io_base)); in lpc32xx_nand_setup()
256 writel(0, SLC_CFG(host->io_base)); in lpc32xx_nand_setup()
257 writel(0, SLC_IEN(host->io_base)); in lpc32xx_nand_setup()
259 SLC_ICR(host->io_base)); in lpc32xx_nand_setup()
275 writel(tmp, SLC_TAC(host->io_base)); in lpc32xx_nand_setup()
289 tmp = readl(SLC_CFG(host->io_base)); in lpc32xx_nand_cmd_ctrl()
294 writel(tmp, SLC_CFG(host->io_base)); in lpc32xx_nand_cmd_ctrl()
298 writel(cmd, SLC_CMD(host->io_base)); in lpc32xx_nand_cmd_ctrl()
300 writel(cmd, SLC_ADDR(host->io_base)); in lpc32xx_nand_cmd_ctrl()
313 if ((readl(SLC_STAT(host->io_base)) & SLCSTAT_NAND_READY) != 0) in lpc32xx_nand_device_ready()
367 return (uint8_t)readl(SLC_DATA(host->io_base)); in lpc32xx_nand_read_byte()
380 *buf++ = (uint8_t)readl(SLC_DATA(host->io_base)); in lpc32xx_nand_read_buf()
393 writel((uint32_t)*buf++, SLC_DATA(host->io_base)); in lpc32xx_nand_write_buf()
534 writel(readl(SLC_CFG(host->io_base)) | in lpc32xx_xfer()
536 SLCCFG_DMA_BURST, SLC_CFG(host->io_base)); in lpc32xx_xfer()
538 writel((readl(SLC_CFG(host->io_base)) | in lpc32xx_xfer()
541 SLC_CFG(host->io_base)); in lpc32xx_xfer()
545 writel(SLCCTRL_ECC_CLEAR, SLC_CTRL(host->io_base)); in lpc32xx_xfer()
548 writel(mtd->writesize, SLC_TC(host->io_base)); in lpc32xx_xfer()
551 writel(readl(SLC_CTRL(host->io_base)) | SLCCTRL_DMA_START, in lpc32xx_xfer()
552 SLC_CTRL(host->io_base)); in lpc32xx_xfer()
580 if (readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO) { in lpc32xx_xfer()
583 while ((readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO) && in lpc32xx_xfer()
596 readl(SLC_ECC(host->io_base)); in lpc32xx_xfer()
601 if (readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO || in lpc32xx_xfer()
602 readl(SLC_TC(host->io_base))) { in lpc32xx_xfer()
609 writel(readl(SLC_CTRL(host->io_base)) & ~SLCCTRL_DMA_START, in lpc32xx_xfer()
610 SLC_CTRL(host->io_base)); in lpc32xx_xfer()
611 writel(readl(SLC_CFG(host->io_base)) & in lpc32xx_xfer()
613 SLCCFG_DMA_BURST), SLC_CFG(host->io_base)); in lpc32xx_xfer()
812 host->io_base = devm_ioremap_resource(&pdev->dev, rc); in lpc32xx_nand_probe()
813 if (IS_ERR(host->io_base)) in lpc32xx_nand_probe()
814 return PTR_ERR(host->io_base); in lpc32xx_nand_probe()
851 chip->IO_ADDR_R = SLC_DATA(host->io_base); in lpc32xx_nand_probe()
852 chip->IO_ADDR_W = SLC_DATA(host->io_base); in lpc32xx_nand_probe()
968 tmp = readl(SLC_CTRL(host->io_base)); in lpc32xx_nand_remove()
970 writel(tmp, SLC_CTRL(host->io_base)); in lpc32xx_nand_remove()
1001 tmp = readl(SLC_CTRL(host->io_base)); in lpc32xx_nand_suspend()
1003 writel(tmp, SLC_CTRL(host->io_base)); in lpc32xx_nand_suspend()