Lines Matching refs:pmux
256 u16 m, pmux, pfunc; in portmux_group_check() local
261 pmux = bfin_read_PORT_MUX(); in portmux_group_check()
271 pfunc = (pmux >> offset) & 3; in portmux_group_check()
273 pfunc = (pmux >> offset) & 1; in portmux_group_check()
289 u16 pmux; in portmux_setup() local
294 pmux = bfin_read_PORT_MUX(); in portmux_setup()
296 pmux &= ~(1 << offset); in portmux_setup()
298 pmux &= ~(3 << 1); in portmux_setup()
299 pmux |= (function << offset); in portmux_setup()
300 bfin_write_PORT_MUX(pmux); in portmux_setup()
307 u32 pmux; in portmux_setup() local
309 pmux = gpio_array[gpio_bank(ident)]->port_mux; in portmux_setup()
311 pmux &= ~(0x3 << (2 * gpio_sub_n(ident))); in portmux_setup()
312 pmux |= (function & 0x3) << (2 * gpio_sub_n(ident)); in portmux_setup()
314 gpio_array[gpio_bank(ident)]->port_mux = pmux; in portmux_setup()
320 u32 pmux = gpio_array[gpio_bank(ident)]->port_mux; in get_portmux() local
321 return (pmux >> (2 * gpio_sub_n(ident)) & 0x3); in get_portmux()
362 u16 pmux; in portmux_setup() local
364 pmux = *port_mux[gpio_bank(ident)]; in portmux_setup()
365 if (((pmux >> offset) & 3) == function) in portmux_setup()
367 pmux &= ~(3 << offset); in portmux_setup()
368 pmux |= (function & 3) << offset; in portmux_setup()
369 *port_mux[gpio_bank(ident)] = pmux; in portmux_setup()