• Home
  • Raw
  • Download

Lines Matching refs:port

210 	unsigned int port = (gpio_mode & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;  in imx_gpio_mode()  local
218 writel(readl(&regs->port[port].puen) | (1 << pin), in imx_gpio_mode()
219 &regs->port[port].puen); in imx_gpio_mode()
221 writel(readl(&regs->port[port].puen) & ~(1 << pin), in imx_gpio_mode()
222 &regs->port[port].puen); in imx_gpio_mode()
227 writel(readl(&regs->port[port].gpio_dir) | 1 << pin, in imx_gpio_mode()
228 &regs->port[port].gpio_dir); in imx_gpio_mode()
230 writel(readl(&regs->port[port].gpio_dir) & ~(1 << pin), in imx_gpio_mode()
231 &regs->port[port].gpio_dir); in imx_gpio_mode()
236 writel(readl(&regs->port[port].gpr) | (1 << pin), in imx_gpio_mode()
237 &regs->port[port].gpr); in imx_gpio_mode()
239 writel(readl(&regs->port[port].gpr) & ~(1 << pin), in imx_gpio_mode()
240 &regs->port[port].gpr); in imx_gpio_mode()
245 writel(readl(&regs->port[port].gius) | (1 << pin), in imx_gpio_mode()
246 &regs->port[port].gius); in imx_gpio_mode()
248 writel(readl(&regs->port[port].gius) & ~(1 << pin), in imx_gpio_mode()
249 &regs->port[port].gius); in imx_gpio_mode()
254 tmp = readl(&regs->port[port].ocr1); in imx_gpio_mode()
257 writel(tmp, &regs->port[port].ocr1); in imx_gpio_mode()
259 writel(readl(&regs->port[port].iconfa1) & ~(3 << (pin * 2)), in imx_gpio_mode()
260 &regs->port[port].iconfa1); in imx_gpio_mode()
261 writel(readl(&regs->port[port].iconfa1) | aout << (pin * 2), in imx_gpio_mode()
262 &regs->port[port].iconfa1); in imx_gpio_mode()
263 writel(readl(&regs->port[port].iconfb1) & ~(3 << (pin * 2)), in imx_gpio_mode()
264 &regs->port[port].iconfb1); in imx_gpio_mode()
265 writel(readl(&regs->port[port].iconfb1) | bout << (pin * 2), in imx_gpio_mode()
266 &regs->port[port].iconfb1); in imx_gpio_mode()
270 tmp = readl(&regs->port[port].ocr2); in imx_gpio_mode()
273 writel(tmp, &regs->port[port].ocr2); in imx_gpio_mode()
275 writel(readl(&regs->port[port].iconfa2) & ~(3 << (pin * 2)), in imx_gpio_mode()
276 &regs->port[port].iconfa2); in imx_gpio_mode()
277 writel(readl(&regs->port[port].iconfa2) | aout << (pin * 2), in imx_gpio_mode()
278 &regs->port[port].iconfa2); in imx_gpio_mode()
279 writel(readl(&regs->port[port].iconfb2) & ~(3 << (pin * 2)), in imx_gpio_mode()
280 &regs->port[port].iconfb2); in imx_gpio_mode()
281 writel(readl(&regs->port[port].iconfb2) | bout << (pin * 2), in imx_gpio_mode()
282 &regs->port[port].iconfb2); in imx_gpio_mode()