Searched refs:nmk_chip (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/gpio/ |
H A D | gpio-nomadik.c | 41 void __nmk_gpio_set_slpm(struct nmk_gpio_chip *nmk_chip, unsigned int offset, in __nmk_gpio_set_slpm() argument 47 if (WARN_ON(nmk_chip->is_mobileye_soc)) in __nmk_gpio_set_slpm() 50 slpm = readl(nmk_chip->addr + NMK_GPIO_SLPC); in __nmk_gpio_set_slpm() 55 writel(slpm, nmk_chip->addr + NMK_GPIO_SLPC); in __nmk_gpio_set_slpm() 58 static void __nmk_gpio_set_output(struct nmk_gpio_chip *nmk_chip, in __nmk_gpio_set_output() argument 62 writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DATS); in __nmk_gpio_set_output() 64 writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DATC); in __nmk_gpio_set_output() 67 void __nmk_gpio_make_output(struct nmk_gpio_chip *nmk_chip, in __nmk_gpio_make_output() argument 70 writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DIRS); in __nmk_gpio_make_output() 71 __nmk_gpio_set_output(nmk_chip, offset, val); in __nmk_gpio_make_output() [all …]
|
/linux/drivers/pinctrl/nomadik/ |
H A D | pinctrl-nomadik.c | 215 static void __nmk_gpio_set_mode(struct nmk_gpio_chip *nmk_chip, in __nmk_gpio_set_mode() argument 220 afunc = readl(nmk_chip->addr + NMK_GPIO_AFSLA) & ~BIT(offset); in __nmk_gpio_set_mode() 221 bfunc = readl(nmk_chip->addr + NMK_GPIO_AFSLB) & ~BIT(offset); in __nmk_gpio_set_mode() 226 writel(afunc, nmk_chip->addr + NMK_GPIO_AFSLA); in __nmk_gpio_set_mode() 227 writel(bfunc, nmk_chip->addr + NMK_GPIO_AFSLB); in __nmk_gpio_set_mode() 230 static void __nmk_gpio_set_pull(struct nmk_gpio_chip *nmk_chip, in __nmk_gpio_set_pull() argument 235 pdis = readl(nmk_chip->addr + NMK_GPIO_PDIS); in __nmk_gpio_set_pull() 238 nmk_chip->pull_up &= ~BIT(offset); in __nmk_gpio_set_pull() 243 writel(pdis, nmk_chip->addr + NMK_GPIO_PDIS); in __nmk_gpio_set_pull() 246 nmk_chip->pull_up |= BIT(offset); in __nmk_gpio_set_pull() [all …]
|
/linux/include/linux/gpio/ |
H A D | gpio-nomadik.h | 279 void __nmk_gpio_make_output(struct nmk_gpio_chip *nmk_chip, 281 void __nmk_gpio_set_slpm(struct nmk_gpio_chip *nmk_chip, unsigned int offset,
|