Lines Matching refs:io_base

177 	void __iomem		*io_base;  member
233 writel(MLCCMD_RESET, MLC_CMD(host->io_base)); in lpc32xx_nand_setup()
243 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup()
247 writel(tmp, MLC_ICR(host->io_base)); in lpc32xx_nand_setup()
251 writew(MLCLOCKPR_MAGIC, MLC_LOCK_PR(host->io_base)); in lpc32xx_nand_setup()
262 writel(tmp, MLC_TIME_REG(host->io_base)); in lpc32xx_nand_setup()
266 MLC_IRQ_MR(host->io_base)); in lpc32xx_nand_setup()
269 writel(MLCCEH_NORMAL, MLC_CEH(host->io_base)); in lpc32xx_nand_setup()
283 writel(cmd, MLC_CMD(host->io_base)); in lpc32xx_nand_cmd_ctrl()
285 writel(cmd, MLC_ADDR(host->io_base)); in lpc32xx_nand_cmd_ctrl()
297 if ((readb(MLC_ISR(host->io_base)) & in lpc32xx_nand_device_ready()
310 sr = readb(MLC_IRQ_SR(host->io_base)); in lpc3xxx_nand_irq()
323 if (readb(MLC_ISR(host->io_base)) & MLCISR_NAND_READY) in lpc32xx_waitfunc_nand()
328 while (!(readb(MLC_ISR(host->io_base)) & MLCISR_NAND_READY)) { in lpc32xx_waitfunc_nand()
343 if (readb(MLC_ISR(host->io_base)) & MLCISR_CONTROLLER_READY) in lpc32xx_waitfunc_controller()
348 while (!(readb(MLC_ISR(host->io_base)) & in lpc32xx_waitfunc_controller()
456 writeb(0x00, MLC_ECC_AUTO_DEC_REG(host->io_base)); in lpc32xx_read_page()
462 mlc_isr = readl(MLC_ISR(host->io_base)); in lpc32xx_read_page()
479 readl(MLC_BUFF(host->io_base)); in lpc32xx_read_page()
485 readl(MLC_BUFF(host->io_base)); in lpc32xx_read_page()
514 writeb(0x00, MLC_ECC_ENC_REG(host->io_base)); in lpc32xx_write_page_lowlevel()
525 MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
529 writel(*((uint32_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
531 writew(*((uint16_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
535 writeb(0x00, MLC_ECC_AUTO_ENC_REG(host->io_base)); in lpc32xx_write_page_lowlevel()
658 host->io_base = devm_ioremap_resource(&pdev->dev, rc); in lpc32xx_nand_probe()
659 if (IS_ERR(host->io_base)) in lpc32xx_nand_probe()
660 return PTR_ERR(host->io_base); in lpc32xx_nand_probe()
700 nand_chip->IO_ADDR_R = MLC_DATA(host->io_base); in lpc32xx_nand_probe()
701 nand_chip->IO_ADDR_W = MLC_DATA(host->io_base); in lpc32xx_nand_probe()
759 readb(MLC_IRQ_SR(host->io_base)); in lpc32xx_nand_probe()