Searched refs:gpio_cfg (Results 1 – 6 of 6) sorted by relevance
105 struct mxl_gpio_cfg *gpio_cfg) in mxl111sf_config_gpio_pins() argument110 mxl_debug_adv("(%d, %d)", gpio_cfg->pin, gpio_cfg->dir); in mxl111sf_config_gpio_pins()112 switch (gpio_cfg->pin) { in mxl111sf_config_gpio_pins()120 tmp &= ~(1 << (gpio_cfg->pin + 4)); in mxl111sf_config_gpio_pins()121 tmp |= (gpio_cfg->dir << (gpio_cfg->pin + 4)); in mxl111sf_config_gpio_pins()133 tmp &= ~(1 << gpio_cfg->pin); in mxl111sf_config_gpio_pins()134 tmp |= (gpio_cfg->dir << gpio_cfg->pin); in mxl111sf_config_gpio_pins()145 tmp &= ~(1 << (gpio_cfg->pin - 3)); in mxl111sf_config_gpio_pins()146 tmp |= (gpio_cfg->dir << (gpio_cfg->pin - 3)); in mxl111sf_config_gpio_pins()155 ret = (MXL_GPIO_DIR_OUTPUT == gpio_cfg->dir) ? in mxl111sf_config_gpio_pins()[all …]
261 struct titan_gpio_cfg gpio_cfg; in titan_gpio_pinsel() local268 gpio_cfg = titan_gpio_table[gpio]; in titan_gpio_pinsel()269 pin_sel_reg = gpio_cfg.reg - 1; in titan_gpio_pinsel()271 mux_status = (readl(pin_sel + pin_sel_reg) >> gpio_cfg.shift) & 0x3; in titan_gpio_pinsel()274 if (!((mux_status == 0) || (mux_status == gpio_cfg.func))) in titan_gpio_pinsel()279 tmp |= ((gpio_cfg.func & 0x3) << gpio_cfg.shift); in titan_gpio_pinsel()
1955 if (of_property_read_u32_array(np, "gpio-cfg", pdata->gpio_cfg, in wm8903_set_pdata_from_of()1956 ARRAY_SIZE(pdata->gpio_cfg)) >= 0) { in wm8903_set_pdata_from_of()1969 for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { in wm8903_set_pdata_from_of()1970 if (pdata->gpio_cfg[i] == 0) { in wm8903_set_pdata_from_of()1971 pdata->gpio_cfg[i] = WM8903_GPIO_CONFIG_ZERO; in wm8903_set_pdata_from_of()1972 } else if (pdata->gpio_cfg[i] == 0xffffffff) { in wm8903_set_pdata_from_of()1973 pdata->gpio_cfg[i] = 0; in wm8903_set_pdata_from_of()1974 } else if (pdata->gpio_cfg[i] > 0x7fff) { in wm8903_set_pdata_from_of()1976 i, pdata->gpio_cfg[i]); in wm8903_set_pdata_from_of()2078 for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { in wm8903_i2c_probe()[all …]
2251 if (!wm8904->pdata->gpio_cfg[i]) in wm8904_i2c_probe()2257 wm8904->pdata->gpio_cfg[i]); in wm8904_i2c_probe()
154 u32 gpio_cfg[WM8904_GPIO_REGS]; member
260 u32 gpio_cfg[WM8903_NUM_GPIO]; /* Default register values for GPIO pin mux */ member