Lines Matching refs:io_base

181 	void __iomem		*io_base;  member
237 writel(MLCCMD_RESET, MLC_CMD(host->io_base)); in lpc32xx_nand_setup()
247 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup()
251 writel(tmp, MLC_ICR(host->io_base)); in lpc32xx_nand_setup()
255 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup()
266 writel(tmp, MLC_TIME_REG(host->io_base)); in lpc32xx_nand_setup()
270 MLC_IRQ_MR(host->io_base)); in lpc32xx_nand_setup()
273 writel(MLCCEH_NORMAL, MLC_CEH(host->io_base)); in lpc32xx_nand_setup()
286 writel(cmd, MLC_CMD(host->io_base)); in lpc32xx_nand_cmd_ctrl()
288 writel(cmd, MLC_ADDR(host->io_base)); in lpc32xx_nand_cmd_ctrl()
299 if ((readb(MLC_ISR(host->io_base)) & in lpc32xx_nand_device_ready()
312 sr = readb(MLC_IRQ_SR(host->io_base)); in lpc3xxx_nand_irq()
326 if (readb(MLC_ISR(host->io_base)) & MLCISR_NAND_READY) in lpc32xx_waitfunc_nand()
331 while (!(readb(MLC_ISR(host->io_base)) & MLCISR_NAND_READY)) { in lpc32xx_waitfunc_nand()
346 if (readb(MLC_ISR(host->io_base)) & MLCISR_CONTROLLER_READY) in lpc32xx_waitfunc_controller()
351 while (!(readb(MLC_ISR(host->io_base)) & in lpc32xx_waitfunc_controller()
460 writeb(0x00, MLC_ECC_AUTO_DEC_REG(host->io_base)); in lpc32xx_read_page()
466 mlc_isr = readl(MLC_ISR(host->io_base)); in lpc32xx_read_page()
483 readl(MLC_BUFF(host->io_base)); in lpc32xx_read_page()
489 readl(MLC_BUFF(host->io_base)); in lpc32xx_read_page()
520 writeb(0x00, MLC_ECC_ENC_REG(host->io_base)); in lpc32xx_write_page_lowlevel()
531 MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
535 writel(*((uint32_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
537 writew(*((uint16_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
541 writeb(0x00, MLC_ECC_AUTO_ENC_REG(host->io_base)); in lpc32xx_write_page_lowlevel()
702 host->io_base = devm_ioremap_resource(&pdev->dev, rc); in lpc32xx_nand_probe()
703 if (IS_ERR(host->io_base)) in lpc32xx_nand_probe()
704 return PTR_ERR(host->io_base); in lpc32xx_nand_probe()
747 nand_chip->legacy.IO_ADDR_R = MLC_DATA(host->io_base); in lpc32xx_nand_probe()
748 nand_chip->legacy.IO_ADDR_W = MLC_DATA(host->io_base); in lpc32xx_nand_probe()
772 readb(MLC_IRQ_SR(host->io_base)); in lpc32xx_nand_probe()