Home
last modified time | relevance | path

Searched refs:FSEL_SHIFT (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pinctrl/bcm/
H A Dpinctrl-bcm2835.c63 #define FSEL_SHIFT(p) (((p) % 10) * 3) macro
277 enum bcm2835_fsel status = (val >> FSEL_SHIFT(pin)) & BCM2835_FSEL_MASK; in bcm2835_pinctrl_fsel_get()
295 cur = (val >> FSEL_SHIFT(pin)) & BCM2835_FSEL_MASK; in bcm2835_pinctrl_fsel_set()
305 val &= ~(BCM2835_FSEL_MASK << FSEL_SHIFT(pin)); in bcm2835_pinctrl_fsel_set()
306 val |= BCM2835_FSEL_GPIO_IN << FSEL_SHIFT(pin); in bcm2835_pinctrl_fsel_set()
313 val &= ~(BCM2835_FSEL_MASK << FSEL_SHIFT(pin)); in bcm2835_pinctrl_fsel_set()
314 val |= fsel << FSEL_SHIFT(pin); in bcm2835_pinctrl_fsel_set()