Lines Matching refs:io_base
190 void __iomem *io_base; member
246 writel(MLCCMD_RESET, MLC_CMD(host->io_base)); in lpc32xx_nand_setup()
256 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup()
260 writel(tmp, MLC_ICR(host->io_base)); in lpc32xx_nand_setup()
264 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup()
275 writel(tmp, MLC_TIME_REG(host->io_base)); in lpc32xx_nand_setup()
279 MLC_IRQ_MR(host->io_base)); in lpc32xx_nand_setup()
282 writel(MLCCEH_NORMAL, MLC_CEH(host->io_base)); in lpc32xx_nand_setup()
296 writel(cmd, MLC_CMD(host->io_base)); in lpc32xx_nand_cmd_ctrl()
298 writel(cmd, MLC_ADDR(host->io_base)); in lpc32xx_nand_cmd_ctrl()
310 if ((readb(MLC_ISR(host->io_base)) & in lpc32xx_nand_device_ready()
323 sr = readb(MLC_IRQ_SR(host->io_base)); in lpc3xxx_nand_irq()
336 if (readb(MLC_ISR(host->io_base)) & MLCISR_NAND_READY) in lpc32xx_waitfunc_nand()
341 while (!(readb(MLC_ISR(host->io_base)) & MLCISR_NAND_READY)) { in lpc32xx_waitfunc_nand()
356 if (readb(MLC_ISR(host->io_base)) & MLCISR_CONTROLLER_READY) in lpc32xx_waitfunc_controller()
361 while (!(readb(MLC_ISR(host->io_base)) & in lpc32xx_waitfunc_controller()
469 writeb(0x00, MLC_ECC_AUTO_DEC_REG(host->io_base)); in lpc32xx_read_page()
475 mlc_isr = readl(MLC_ISR(host->io_base)); in lpc32xx_read_page()
492 readl(MLC_BUFF(host->io_base)); in lpc32xx_read_page()
498 readl(MLC_BUFF(host->io_base)); in lpc32xx_read_page()
527 writeb(0x00, MLC_ECC_ENC_REG(host->io_base)); in lpc32xx_write_page_lowlevel()
538 MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
542 writel(*((uint32_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
544 writew(*((uint16_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
548 writeb(0x00, MLC_ECC_AUTO_ENC_REG(host->io_base)); in lpc32xx_write_page_lowlevel()
670 host->io_base = devm_ioremap_resource(&pdev->dev, rc); in lpc32xx_nand_probe()
671 if (IS_ERR(host->io_base)) in lpc32xx_nand_probe()
672 return PTR_ERR(host->io_base); in lpc32xx_nand_probe()
713 nand_chip->IO_ADDR_R = MLC_DATA(host->io_base); in lpc32xx_nand_probe()
714 nand_chip->IO_ADDR_W = MLC_DATA(host->io_base); in lpc32xx_nand_probe()
773 readb(MLC_IRQ_SR(host->io_base)); in lpc32xx_nand_probe()