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 …]
125 uint32_t pcr1 = 0u, pcr1_new = 0u; in gpio_xec_configure() local142 pcr1 = sys_read32(pcr1_addr); in gpio_xec_configure()145 pcr1 = (pcr1 & ~MCHP_GPIO_CTRL_PWRG_MASK) | MCHP_GPIO_CTRL_PWRG_OFF; in gpio_xec_configure()146 sys_write32(pcr1, pcr1_addr); in gpio_xec_configure()154 if (pcr1 & BIT(MCHP_GPIO_CTRL_INPAD_DIS_POS)) { in gpio_xec_configure()155 pcr1 &= ~BIT(MCHP_GPIO_CTRL_INPAD_DIS_POS); in gpio_xec_configure()156 sys_write32(pcr1, pcr1_addr); in gpio_xec_configure()167 if ((pcr1 & MCHP_GPIO_CTRL_PWRG_MASK) == MCHP_GPIO_CTRL_PWRG_OFF) { in gpio_xec_configure()168 pcr1 &= ~(MCHP_GPIO_CTRL_PWRG_MASK); in gpio_xec_configure()169 pcr1 |= MCHP_GPIO_CTRL_PWRG_VTR_IO; in gpio_xec_configure()[all …]
67 uint32_t pcr1 = 0U; in gpio_xec_configure() local91 pcr1 |= MCHP_GPIO_CTRL_DIR_INPUT; in gpio_xec_configure()100 pcr1 |= MCHP_GPIO_CTRL_PUD_PU; in gpio_xec_configure()103 pcr1 |= MCHP_GPIO_CTRL_PUD_PD; in gpio_xec_configure()111 pcr1 |= MCHP_GPIO_CTRL_BUFT_OPENDRAIN; in gpio_xec_configure()114 pcr1 |= MCHP_GPIO_CTRL_BUFT_PUSHPULL; in gpio_xec_configure()121 pcr1 |= MCHP_GPIO_CTRL_AOD_DIS; in gpio_xec_configure()125 pcr1 |= MCHP_GPIO_CTRL_PWRG_OFF; in gpio_xec_configure()135 *current_pcr1 = (*current_pcr1 & ~mask) | pcr1; in gpio_xec_configure()145 pcr1 = MCHP_GPIO_CTRL_DIR_OUTPUT; in gpio_xec_configure()[all …]