Searched refs:brd_io (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/arch/arm/mach-imx/
H A D3ds_debugboard.c62 static void __iomem *brd_io; variable
97 imr_val = __raw_readw(brd_io + INTR_MASK_REG); mxc_expio_irq_handler()
98 int_valid = __raw_readw(brd_io + INTR_STATUS_REG) & ~imr_val; mxc_expio_irq_handler()
120 reg = __raw_readw(brd_io + INTR_MASK_REG); expio_mask_irq()
122 __raw_writew(reg, brd_io + INTR_MASK_REG); expio_mask_irq()
129 __raw_writew(1 << expio, brd_io + INTR_RESET_REG); expio_ack_irq()
130 __raw_writew(0, brd_io + INTR_RESET_REG); expio_ack_irq()
139 reg = __raw_readw(brd_io + INTR_MASK_REG); expio_unmask_irq()
141 __raw_writew(reg, brd_io + INTR_MASK_REG); expio_unmask_irq()
161 brd_io = ioremap(BOARD_IO_ADDR(base), SZ_4K); mxc_expio_init()
162 if (brd_io == NULL) mxc_expio_init()
165 if ((__raw_readw(brd_io + MAGIC_NUMBER1_REG) != 0xAAAA) || mxc_expio_init()
166 (__raw_readw(brd_io + MAGIC_NUMBER2_REG) != 0x5555) || mxc_expio_init()
167 (__raw_readw(brd_io + MAGIC_NUMBER3_REG) != 0xCAFE)) { mxc_expio_init()
169 iounmap(brd_io); mxc_expio_init()
170 brd_io = NULL; mxc_expio_init()
175 readw(brd_io + CPLD_CODE_VER_REG)); mxc_expio_init()
184 __raw_writew(0, brd_io + INTR_MASK_REG); mxc_expio_init()
185 __raw_writew(0xFFFF, brd_io + INTR_RESET_REG); mxc_expio_init()
186 __raw_writew(0, brd_io + INTR_RESET_REG); mxc_expio_init()
187 __raw_writew(0x1F, brd_io + INTR_MASK_REG); mxc_expio_init()

Completed in 52 milliseconds