Lines Matching refs:pg
16 int soc_port_pinmux_set(PortGroup *pg, uint32_t pin, uint32_t func) in soc_port_pinmux_set() argument
26 pg->PMUX[idx].bit.PMUXO = func; in soc_port_pinmux_set()
28 pg->PMUX[idx].bit.PMUXE = func; in soc_port_pinmux_set()
30 pg->PINCFG[pin].bit.PMUXEN = 1; in soc_port_pinmux_set()
37 PortGroup *pg = pin->regs; in soc_port_configure() local
43 pg->PINCFG[pin->pinum] = pincfg; in soc_port_configure()
44 pg->DIRCLR.reg = (1 << pin->pinum); in soc_port_configure()
45 pg->OUTCLR.reg = (1 << pin->pinum); in soc_port_configure()
48 soc_port_pinmux_set(pg, pin->pinum, func); in soc_port_configure()
54 pg->OUTSET.reg = (1 << pin->pinum); in soc_port_configure()
65 pg->DIRSET.reg = (1 << pin->pinum); in soc_port_configure()
72 pg->PINCFG[pin->pinum] = pincfg; in soc_port_configure()