Searched refs:PAD_PIN (Results 1 – 3 of 3) sorted by relevance
38 ofs += PAD_BANK(pad) * 0x20 + PAD_PIN(pad) / 16 * 0x10; in mxs_iomux_setup_pad()39 bp = PAD_PIN(pad) % 16 * 2; in mxs_iomux_setup_pad()48 ofs += PAD_BANK(pad) * 0x40 + PAD_PIN(pad) / 8 * 0x10; in mxs_iomux_setup_pad()51 bp = PAD_PIN(pad) % 8 * 4; in mxs_iomux_setup_pad()60 bp = PAD_PIN(pad) % 8 * 4 + 2; in mxs_iomux_setup_pad()72 bp = PAD_PIN(pad); in mxs_iomux_setup_pad()
62 return (readl(®->reg) >> PAD_PIN(gpio)) & 1; in gpio_get_value()73 writel(1 << PAD_PIN(gpio), ®->reg_set); in gpio_set_value()75 writel(1 << PAD_PIN(gpio), ®->reg_clr); in gpio_set_value()85 writel(1 << PAD_PIN(gpio), ®->reg_clr); in gpio_direction_input()99 writel(1 << PAD_PIN(gpio), ®->reg_set); in gpio_direction_output()
113 static inline unsigned int PAD_PIN(iomux_cfg_t pad) in PAD_PIN() function