Lines Matching refs:io_base
220 void __iomem *io_base; member
242 writel(SLCCTRL_SW_RESET, SLC_CTRL(host->io_base)); in lpc32xx_nand_setup()
246 writel(0, SLC_CFG(host->io_base)); in lpc32xx_nand_setup()
247 writel(0, SLC_IEN(host->io_base)); in lpc32xx_nand_setup()
249 SLC_ICR(host->io_base)); in lpc32xx_nand_setup()
265 writel(tmp, SLC_TAC(host->io_base)); in lpc32xx_nand_setup()
278 tmp = readl(SLC_CFG(host->io_base)); in lpc32xx_nand_cmd_ctrl()
283 writel(tmp, SLC_CFG(host->io_base)); in lpc32xx_nand_cmd_ctrl()
287 writel(cmd, SLC_CMD(host->io_base)); in lpc32xx_nand_cmd_ctrl()
289 writel(cmd, SLC_ADDR(host->io_base)); in lpc32xx_nand_cmd_ctrl()
301 if ((readl(SLC_STAT(host->io_base)) & SLCSTAT_NAND_READY) != 0) in lpc32xx_nand_device_ready()
354 return (uint8_t)readl(SLC_DATA(host->io_base)); in lpc32xx_nand_read_byte()
366 *buf++ = (uint8_t)readl(SLC_DATA(host->io_base)); in lpc32xx_nand_read_buf()
379 writel((uint32_t)*buf++, SLC_DATA(host->io_base)); in lpc32xx_nand_write_buf()
510 writel(readl(SLC_CFG(host->io_base)) | in lpc32xx_xfer()
512 SLCCFG_DMA_BURST, SLC_CFG(host->io_base)); in lpc32xx_xfer()
514 writel((readl(SLC_CFG(host->io_base)) | in lpc32xx_xfer()
517 SLC_CFG(host->io_base)); in lpc32xx_xfer()
521 writel(SLCCTRL_ECC_CLEAR, SLC_CTRL(host->io_base)); in lpc32xx_xfer()
524 writel(mtd->writesize, SLC_TC(host->io_base)); in lpc32xx_xfer()
527 writel(readl(SLC_CTRL(host->io_base)) | SLCCTRL_DMA_START, in lpc32xx_xfer()
528 SLC_CTRL(host->io_base)); in lpc32xx_xfer()
556 if (readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO) { in lpc32xx_xfer()
559 while ((readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO) && in lpc32xx_xfer()
572 readl(SLC_ECC(host->io_base)); in lpc32xx_xfer()
577 if (readl(SLC_STAT(host->io_base)) & SLCSTAT_DMA_FIFO || in lpc32xx_xfer()
578 readl(SLC_TC(host->io_base))) { in lpc32xx_xfer()
585 writel(readl(SLC_CTRL(host->io_base)) & ~SLCCTRL_DMA_START, in lpc32xx_xfer()
586 SLC_CTRL(host->io_base)); in lpc32xx_xfer()
587 writel(readl(SLC_CFG(host->io_base)) & in lpc32xx_xfer()
589 SLCCFG_DMA_BURST), SLC_CFG(host->io_base)); in lpc32xx_xfer()
843 host->io_base = devm_ioremap_resource(&pdev->dev, rc); in lpc32xx_nand_probe()
844 if (IS_ERR(host->io_base)) in lpc32xx_nand_probe()
845 return PTR_ERR(host->io_base); in lpc32xx_nand_probe()
885 chip->legacy.IO_ADDR_R = SLC_DATA(host->io_base); in lpc32xx_nand_probe()
886 chip->legacy.IO_ADDR_W = SLC_DATA(host->io_base); in lpc32xx_nand_probe()
961 tmp = readl(SLC_CTRL(host->io_base)); in lpc32xx_nand_remove()
963 writel(tmp, SLC_CTRL(host->io_base)); in lpc32xx_nand_remove()
997 tmp = readl(SLC_CTRL(host->io_base)); in lpc32xx_nand_suspend()
999 writel(tmp, SLC_CTRL(host->io_base)); in lpc32xx_nand_suspend()