Lines Matching refs:io_base

208 	void __iomem		*io_base;  member
230 writel(SLCCTRL_SW_RESET, SLC_CTRL(host->io_base)); in lpc32xx_nand_setup()
234 writel(0, SLC_CFG(host->io_base)); in lpc32xx_nand_setup()
235 writel(0, SLC_IEN(host->io_base)); in lpc32xx_nand_setup()
237 SLC_ICR(host->io_base)); in lpc32xx_nand_setup()
253 writel(tmp, SLC_TAC(host->io_base)); in lpc32xx_nand_setup()
267 tmp = readl(SLC_CFG(host->io_base)); in lpc32xx_nand_cmd_ctrl()
272 writel(tmp, SLC_CFG(host->io_base)); in lpc32xx_nand_cmd_ctrl()
276 writel(cmd, SLC_CMD(host->io_base)); in lpc32xx_nand_cmd_ctrl()
278 writel(cmd, SLC_ADDR(host->io_base)); in lpc32xx_nand_cmd_ctrl()
291 if ((readl(SLC_STAT(host->io_base)) & SLCSTAT_NAND_READY) != 0) in lpc32xx_nand_device_ready()
345 return (uint8_t)readl(SLC_DATA(host->io_base)); in lpc32xx_nand_read_byte()
358 *buf++ = (uint8_t)readl(SLC_DATA(host->io_base)); in lpc32xx_nand_read_buf()
371 writel((uint32_t)*buf++, SLC_DATA(host->io_base)); in lpc32xx_nand_write_buf()
512 writel(readl(SLC_CFG(host->io_base)) | in lpc32xx_xfer()
514 SLCCFG_DMA_BURST, SLC_CFG(host->io_base)); in lpc32xx_xfer()
516 writel((readl(SLC_CFG(host->io_base)) | in lpc32xx_xfer()
519 SLC_CFG(host->io_base)); in lpc32xx_xfer()
523 writel(SLCCTRL_ECC_CLEAR, SLC_CTRL(host->io_base)); in lpc32xx_xfer()
526 writel(mtd->writesize, SLC_TC(host->io_base)); in lpc32xx_xfer()
529 writel(readl(SLC_CTRL(host->io_base)) | SLCCTRL_DMA_START, in lpc32xx_xfer()
530 SLC_CTRL(host->io_base)); in lpc32xx_xfer()
558 if (readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO) { in lpc32xx_xfer()
561 while ((readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO) && in lpc32xx_xfer()
574 readl(SLC_ECC(host->io_base)); in lpc32xx_xfer()
579 if (readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO || in lpc32xx_xfer()
580 readl(SLC_TC(host->io_base))) { in lpc32xx_xfer()
587 writel(readl(SLC_CTRL(host->io_base)) & ~SLCCTRL_DMA_START, in lpc32xx_xfer()
588 SLC_CTRL(host->io_base)); in lpc32xx_xfer()
589 writel(readl(SLC_CFG(host->io_base)) & in lpc32xx_xfer()
591 SLCCFG_DMA_BURST), SLC_CFG(host->io_base)); in lpc32xx_xfer()
781 host->io_base = devm_ioremap_resource(&pdev->dev, rc); in lpc32xx_nand_probe()
782 if (IS_ERR(host->io_base)) in lpc32xx_nand_probe()
783 return PTR_ERR(host->io_base); in lpc32xx_nand_probe()
820 chip->IO_ADDR_R = SLC_DATA(host->io_base); in lpc32xx_nand_probe()
821 chip->IO_ADDR_W = SLC_DATA(host->io_base); in lpc32xx_nand_probe()
942 tmp = readl(SLC_CTRL(host->io_base)); in lpc32xx_nand_remove()
944 writel(tmp, SLC_CTRL(host->io_base)); in lpc32xx_nand_remove()
975 tmp = readl(SLC_CTRL(host->io_base)); in lpc32xx_nand_suspend()
977 writel(tmp, SLC_CTRL(host->io_base)); in lpc32xx_nand_suspend()