Lines Matching refs:func
60 static int kb1200_config_pin(uint32_t gpio, uint32_t conf, uint32_t func) in kb1200_config_pin() argument
71 if (func == PINMUX_FUNC_GPIO) { /* only GPIO function */ in kb1200_config_pin()
74 func -= 1; /*for change to GPIOALT setting value*/ in kb1200_config_pin()
77 WRITE_BIT(gcfg_regs->GPIOALT, 0, func); in kb1200_config_pin()
80 gcfg_regs->GPIOMUX = (gcfg_regs->GPIOMUX & ~(3 << 9)) | (func << 9); in kb1200_config_pin()
83 gcfg_regs->GPIOMUX = (gcfg_regs->GPIOMUX & ~(3 << 9)) | (func << 9); in kb1200_config_pin()
86 WRITE_BIT(gcfg_regs->GPIOALT, 1, func); in kb1200_config_pin()
89 WRITE_BIT(gcfg_regs->GPIOALT, 2, func); in kb1200_config_pin()
92 WRITE_BIT(gcfg_regs->GPIOALT, 3, func); in kb1200_config_pin()
95 WRITE_BIT(gcfg_regs->GPIOALT, 4, func); in kb1200_config_pin()
98 WRITE_BIT(gcfg_regs->GPIOALT, 5, func); in kb1200_config_pin()
101 WRITE_BIT(gcfg_regs->GPIOALT, 6, func); in kb1200_config_pin()
104 WRITE_BIT(gcfg_regs->GPIOALT, 7, func); in kb1200_config_pin()
107 WRITE_BIT(gcfg_regs->GPIOALT, 8, func); in kb1200_config_pin()
110 WRITE_BIT(gcfg_regs->GPIOALT, 9, func); in kb1200_config_pin()
159 uint32_t portpin, pinmux, func; in pinctrl_configure_pins() local
167 func = ENE_KB1200_PINMUX_FUNC(pinmux); in pinctrl_configure_pins()
168 if (func >= PINMUX_FUNC_MAX) { in pinctrl_configure_pins()
174 ret = kb1200_config_pin(portpin, pinmux, func); in pinctrl_configure_pins()