Home
last modified time | relevance | path

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

/arch/avr32/mach-at32ap/
Dat32ap700x.c85 #define select_peripheral(port, pin_mask, periph, flags) \ argument
86 at32_select_periph(GPIO_##port##_BASE, pin_mask, \
878 u32 pin_mask; in at32_add_device_psif() local
889 pin_mask = (1 << 8) | (1 << 9); /* CLOCK & DATA */ in at32_add_device_psif()
895 select_peripheral(PIOA, pin_mask, PERIPH_A, 0); in at32_add_device_psif()
898 pin_mask = (1 << 11) | (1 << 12); /* CLOCK & DATA */ in at32_add_device_psif()
904 select_peripheral(PIOB, pin_mask, PERIPH_A, 0); in at32_add_device_psif()
968 u32 pin_mask = (1 << 8) | (1 << 9); /* RXD & TXD */ in configure_usart0_pins() local
970 select_peripheral(PIOA, pin_mask, PERIPH_B, AT32_GPIOF_PULLUP); in configure_usart0_pins()
975 u32 pin_mask = (1 << 17) | (1 << 18); /* RXD & TXD */ in configure_usart1_pins() local
[all …]
Dpio.c55 void __init at32_select_periph(unsigned int port, u32 pin_mask, in at32_select_periph() argument
69 if (unlikely(pio->pinmux_mask & pin_mask)) { in at32_select_periph()
71 pio->name, pin_mask, pio->pinmux_mask & pin_mask); in at32_select_periph()
76 pio->pinmux_mask |= pin_mask; in at32_select_periph()
79 pio_writel(pio, PUER, pin_mask); in at32_select_periph()
83 pio_writel(pio, BSR, pin_mask); in at32_select_periph()
85 pio_writel(pio, ASR, pin_mask); in at32_select_periph()
88 pio_writel(pio, PDR, pin_mask); in at32_select_periph()
92 pio_writel(pio, PUDR, pin_mask); in at32_select_periph()
170 void __init at32_reserve_pin(unsigned int port, u32 pin_mask) in at32_reserve_pin() argument
[all …]
/arch/powerpc/sysdev/
Dcpm_common.c250 u32 pin_mask; in cpm2_gpio32_get() local
252 pin_mask = 1 << (31 - gpio); in cpm2_gpio32_get()
254 return !!(in_be32(&iop->dat) & pin_mask); in cpm2_gpio32_get()
257 static void __cpm2_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm2_gpio32_set() argument
264 cpm2_gc->cpdata |= pin_mask; in __cpm2_gpio32_set()
266 cpm2_gc->cpdata &= ~pin_mask; in __cpm2_gpio32_set()
276 u32 pin_mask = 1 << (31 - gpio); in cpm2_gpio32_set() local
280 __cpm2_gpio32_set(mm_gc, pin_mask, value); in cpm2_gpio32_set()
291 u32 pin_mask = 1 << (31 - gpio); in cpm2_gpio32_dir_out() local
295 setbits32(&iop->dir, pin_mask); in cpm2_gpio32_dir_out()
[all …]
Dcpm1.c542 u16 pin_mask; in cpm1_gpio16_get() local
544 pin_mask = 1 << (15 - gpio); in cpm1_gpio16_get()
546 return !!(in_be16(&iop->dat) & pin_mask); in cpm1_gpio16_get()
549 static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask, in __cpm1_gpio16_set() argument
556 cpm1_gc->cpdata |= pin_mask; in __cpm1_gpio16_set()
558 cpm1_gc->cpdata &= ~pin_mask; in __cpm1_gpio16_set()
568 u16 pin_mask = 1 << (15 - gpio); in cpm1_gpio16_set() local
572 __cpm1_gpio16_set(mm_gc, pin_mask, value); in cpm1_gpio16_set()
583 u16 pin_mask = 1 << (15 - gpio); in cpm1_gpio16_dir_out() local
587 setbits16(&iop->dir, pin_mask); in cpm1_gpio16_dir_out()
[all …]
/arch/powerpc/sysdev/qe_lib/
Dqe_io.c132 u32 pin_mask, tmp_val; in par_io_data_set() local
139 pin_mask = (u32) (1 << (QE_PIO_PINS - 1 - pin)); in par_io_data_set()
144 out_be32(&par_io[port].cpdata, ~pin_mask & tmp_val); in par_io_data_set()
146 out_be32(&par_io[port].cpdata, pin_mask | tmp_val); in par_io_data_set()
Dgpio.c62 u32 pin_mask = 1 << (QE_PIO_PINS - 1 - gpio); in qe_gpio_get() local
64 return in_be32(&regs->cpdata) & pin_mask; in qe_gpio_get()
73 u32 pin_mask = 1 << (QE_PIO_PINS - 1 - gpio); in qe_gpio_set() local
78 qe_gc->cpdata |= pin_mask; in qe_gpio_set()
80 qe_gc->cpdata &= ~pin_mask; in qe_gpio_set()
/arch/avr32/mach-at32ap/include/mach/
Dportmux.h28 void at32_reserve_pin(unsigned int port, u32 pin_mask);
Dboard.h52 u64 pin_mask);