Lines Matching refs:brd_io
64 static void __iomem *brd_io; variable
100 imr_val = __raw_readw(brd_io + INTR_MASK_REG); in mxc_expio_irq_handler()
101 int_valid = __raw_readw(brd_io + INTR_STATUS_REG) & ~imr_val; in mxc_expio_irq_handler()
123 reg = __raw_readw(brd_io + INTR_MASK_REG); in expio_mask_irq()
125 __raw_writew(reg, brd_io + INTR_MASK_REG); in expio_mask_irq()
132 __raw_writew(1 << expio, brd_io + INTR_RESET_REG); in expio_ack_irq()
133 __raw_writew(0, brd_io + INTR_RESET_REG); in expio_ack_irq()
142 reg = __raw_readw(brd_io + INTR_MASK_REG); in expio_unmask_irq()
144 __raw_writew(reg, brd_io + INTR_MASK_REG); in expio_unmask_irq()
162 brd_io = ioremap(BOARD_IO_ADDR(base), SZ_4K); in mxc_expio_init()
163 if (brd_io == NULL) in mxc_expio_init()
166 if ((__raw_readw(brd_io + MAGIC_NUMBER1_REG) != 0xAAAA) || in mxc_expio_init()
167 (__raw_readw(brd_io + MAGIC_NUMBER2_REG) != 0x5555) || in mxc_expio_init()
168 (__raw_readw(brd_io + MAGIC_NUMBER3_REG) != 0xCAFE)) { in mxc_expio_init()
170 iounmap(brd_io); in mxc_expio_init()
171 brd_io = NULL; in mxc_expio_init()
176 readw(brd_io + CPLD_CODE_VER_REG)); in mxc_expio_init()
185 __raw_writew(0, brd_io + INTR_MASK_REG); in mxc_expio_init()
186 __raw_writew(0xFFFF, brd_io + INTR_RESET_REG); in mxc_expio_init()
187 __raw_writew(0, brd_io + INTR_RESET_REG); in mxc_expio_init()
188 __raw_writew(0x1F, brd_io + INTR_MASK_REG); in mxc_expio_init()