Lines Matching refs:ctrlreg1
224 u32 ctrlreg1; in spear_smi_read_sr() local
229 ctrlreg1 = readl(dev->io_base + SMI_CR1); in spear_smi_read_sr()
231 writel(ctrlreg1 & ~(SW_MODE | WB_MODE), dev->io_base + SMI_CR1); in spear_smi_read_sr()
248 writel(ctrlreg1, dev->io_base + SMI_CR1); in spear_smi_read_sr()
382 u32 ctrlreg1; in spear_smi_write_enable() local
387 ctrlreg1 = readl(dev->io_base + SMI_CR1); in spear_smi_write_enable()
389 writel(ctrlreg1 & ~SW_MODE, dev->io_base + SMI_CR1); in spear_smi_write_enable()
398 writel(ctrlreg1, dev->io_base + SMI_CR1); in spear_smi_write_enable()
447 u32 ctrlreg1 = 0; in spear_smi_erase_sector() local
460 ctrlreg1 = readl(dev->io_base + SMI_CR1); in spear_smi_erase_sector()
461 writel((ctrlreg1 | SW_MODE) & ~WB_MODE, dev->io_base + SMI_CR1); in spear_smi_erase_sector()
479 writel(ctrlreg1, dev->io_base + SMI_CR1); in spear_smi_erase_sector()
551 u32 ctrlreg1, val; in spear_mtd_read() local
576 ctrlreg1 = val = readl(dev->io_base + SMI_CR1); in spear_mtd_read()
586 writel(ctrlreg1, dev->io_base + SMI_CR1); in spear_mtd_read()
619 u32 ctrlreg1; in spear_smi_cpy_toio() local
634 ctrlreg1 = readl(dev->io_base + SMI_CR1); in spear_smi_cpy_toio()
635 writel((ctrlreg1 | WB_MODE) & ~SW_MODE, dev->io_base + SMI_CR1); in spear_smi_cpy_toio()
655 writel(ctrlreg1, dev->io_base + SMI_CR1); in spear_smi_cpy_toio()