Searched refs:pcr1 (Results 1 – 3 of 3) sorted by relevance
59 static uint32_t prog_pud(uint32_t pcr1, uint32_t conf) in prog_pud() argument62 pcr1 &= ~(MCHP_GPIO_CTRL_PUD_MASK); in prog_pud()63 pcr1 |= MCHP_GPIO_CTRL_PUD_NONE; in prog_pud()64 return pcr1; in prog_pud()68 pcr1 &= ~(MCHP_GPIO_CTRL_PUD_MASK); in prog_pud()70 pcr1 |= MCHP_GPIO_CTRL_PUD_PU; in prog_pud()73 pcr1 |= MCHP_GPIO_CTRL_PUD_PD; in prog_pud()77 return pcr1; in prog_pud()96 uint32_t idx = 0u, pcr1 = 0u; in xec_config_pin() local109 pcr1 = regs->CTRL[idx]; /* current configuration including pin input state */ in xec_config_pin()[all …]
128 uint32_t pcr1 = 0u, pcr1_new = 0u; in gpio_xec_configure() local145 pcr1 = sys_read32(pcr1_addr); in gpio_xec_configure()148 if (MCHP_GPIO_CTRL_MUX_GET(pcr1) != MCHP_GPIO_CTRL_MUX_F0) { in gpio_xec_configure()150 (uint32_t)pcr1_addr, pcr1); in gpio_xec_configure()154 pcr1 = (pcr1 & ~MCHP_GPIO_CTRL_PWRG_MASK) | MCHP_GPIO_CTRL_PWRG_OFF; in gpio_xec_configure()155 sys_write32(pcr1, pcr1_addr); in gpio_xec_configure()163 if (pcr1 & BIT(MCHP_GPIO_CTRL_INPAD_DIS_POS)) { in gpio_xec_configure()164 pcr1 &= ~BIT(MCHP_GPIO_CTRL_INPAD_DIS_POS); in gpio_xec_configure()165 sys_write32(pcr1, pcr1_addr); in gpio_xec_configure()176 if ((pcr1 & MCHP_GPIO_CTRL_PWRG_MASK) == MCHP_GPIO_CTRL_PWRG_OFF) { in gpio_xec_configure()[all …]
67 uint32_t pcr1 = 0U; in gpio_xec_configure() local95 pcr1 |= MCHP_GPIO_CTRL_PWRG_OFF; in gpio_xec_configure()96 *current_pcr1 = (*current_pcr1 & ~mask) | pcr1; in gpio_xec_configure()100 pcr1 = MCHP_GPIO_CTRL_PWRG_VTR_IO; in gpio_xec_configure()114 pcr1 |= MCHP_GPIO_CTRL_PUD_PU; in gpio_xec_configure()117 pcr1 |= MCHP_GPIO_CTRL_PUD_PD; in gpio_xec_configure()125 pcr1 |= MCHP_GPIO_CTRL_BUFT_OPENDRAIN; in gpio_xec_configure()128 pcr1 |= MCHP_GPIO_CTRL_BUFT_PUSHPULL; in gpio_xec_configure()134 pcr1 |= BIT(MCHP_GPIO_CTRL_OUTVAL_POS); in gpio_xec_configure()136 pcr1 &= ~BIT(MCHP_GPIO_CTRL_OUTVAL_POS); in gpio_xec_configure()[all …]