Home
last modified time | relevance | path

Searched refs:reset_pin (Results 1 – 18 of 18) sorted by relevance

/OK3568_Linux_fs/u-boot/board/xilinx/microblaze-generic/
H A Dmicroblaze-generic.c23 static int reset_pin = -1; variable
66 if (reset_pin != -1) in do_reset()
67 gpio_direction_output(reset_pin, 1); in do_reset()
84 reset_pin = gpio_alloc(CONFIG_SYS_GPIO_0_ADDR, "reset", 1); in gpio_init()
85 if (reset_pin != -1) in gpio_init()
86 gpio_request(reset_pin, "reset_pin"); in gpio_init()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dcy8ctmg110_ts.c48 int reset_pin; member
58 if (ts->reset_pin) in cy8ctmg110_power()
59 gpio_direction_output(ts->reset_pin, 1 - poweron); in cy8ctmg110_power()
193 ts->reset_pin = pdata->reset_pin; in cy8ctmg110_probe()
212 if (ts->reset_pin) { in cy8ctmg110_probe()
213 err = gpio_request(ts->reset_pin, NULL); in cy8ctmg110_probe()
217 ts->reset_pin); in cy8ctmg110_probe()
274 if (ts->reset_pin) in cy8ctmg110_probe()
275 gpio_free(ts->reset_pin); in cy8ctmg110_probe()
322 if (ts->reset_pin) in cy8ctmg110_remove()
[all …]
/OK3568_Linux_fs/u-boot/drivers/video/
H A Dssd2828.c187 gpio_set_value(cfg->reset_pin, 0); in ssd2828_reset()
189 gpio_set_value(cfg->reset_pin, 1); in ssd2828_reset()
210 if (gpio_request(cfg->reset_pin, "ssd2828_reset")) { in ssd2828_enable_gpio()
221 gpio_free(cfg->reset_pin); in ssd2828_enable_gpio()
225 gpio_direction_output(cfg->reset_pin, 0); in ssd2828_enable_gpio()
240 gpio_free(cfg->reset_pin); in ssd2828_free_gpio()
H A Dssd2828.h43 int reset_pin; member
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dadv7183.c31 unsigned reset_pin; member
551 decoder->reset_pin = pin_array[0]; in adv7183_probe()
554 if (devm_gpio_request_one(&client->dev, decoder->reset_pin, in adv7183_probe()
556 v4l_err(client, "failed to request GPIO %d\n", decoder->reset_pin); in adv7183_probe()
597 gpio_set_value(decoder->reset_pin, 1); in adv7183_probe()
/OK3568_Linux_fs/u-boot/drivers/video/sunxi/
H A Dsunxi_display.c660 int pin, reset_pin; in sunxi_lcdc_panel_enable() local
678 reset_pin = sunxi_name_to_gpio(CONFIG_VIDEO_LCD_RESET); in sunxi_lcdc_panel_enable()
679 if (reset_pin >= 0) { in sunxi_lcdc_panel_enable()
680 gpio_request(reset_pin, "lcd_reset"); in sunxi_lcdc_panel_enable()
681 gpio_direction_output(reset_pin, 0); /* Assert reset */ in sunxi_lcdc_panel_enable()
692 if (reset_pin >= 0) in sunxi_lcdc_panel_enable()
693 gpio_direction_output(reset_pin, 1); /* De-assert reset */ in sunxi_lcdc_panel_enable()
993 .reset_pin = name_to_gpio(CONFIG_VIDEO_LCD_SSD2828_RESET),
1010 if (cfg.reset_pin == -1) {
/OK3568_Linux_fs/kernel/sound/atmel/
H A Dac97c.c54 struct gpio_desc *reset_pin; member
680 if (!IS_ERR(chip->reset_pin)) { in atmel_ac97c_reset()
681 gpiod_set_value(chip->reset_pin, 0); in atmel_ac97c_reset()
684 gpiod_set_value(chip->reset_pin, 1); in atmel_ac97c_reset()
767 chip->reset_pin = devm_gpiod_get_index(dev, "ac97", 2, GPIOD_OUT_HIGH); in atmel_ac97c_probe()
768 if (IS_ERR(chip->reset_pin)) in atmel_ac97c_probe()
/OK3568_Linux_fs/kernel/include/linux/input/
H A Dcy8ctmg110_pdata.h7 int reset_pin; /* Reset pin is wired to this GPIO (optional) */ member
/OK3568_Linux_fs/kernel/drivers/media/pci/sta2x11/
H A Dsta2x11_vip.h22 int reset_pin; member
H A Dsta2x11_vip.c991 ret = vip_gpio_reserve(&pdev->dev, config->reset_pin, 0, in sta2x11_vip_init_one()
1005 if (gpio_is_valid(config->reset_pin)) { in sta2x11_vip_init_one()
1008 gpio_direction_output(config->reset_pin, 1); in sta2x11_vip_init_one()
1117 vip_gpio_release(&pdev->dev, config->reset_pin, config->reset_name); in sta2x11_vip_init_one()
1158 vip_gpio_release(&pdev->dev, vip->config->reset_pin, in sta2x11_vip_remove_one()
/OK3568_Linux_fs/kernel/drivers/input/sensors/compass/
H A Dak09911.c353 if (sensor->pdata->reset_pin > 0) { in compass_akm_reset()
354 gpio_direction_output(sensor->pdata->reset_pin, GPIO_LOW); in compass_akm_reset()
356 gpio_direction_output(sensor->pdata->reset_pin, GPIO_HIGH); in compass_akm_reset()
H A Dak09918.c361 if (sensor->pdata->reset_pin > 0) { in compass_akm_reset()
362 gpio_direction_output(sensor->pdata->reset_pin, GPIO_LOW); in compass_akm_reset()
364 gpio_direction_output(sensor->pdata->reset_pin, GPIO_HIGH); in compass_akm_reset()
H A Dak8963.c376 if (sensor->pdata->reset_pin > 0) { in compass_akm_reset()
377 gpio_direction_output(sensor->pdata->reset_pin, GPIO_LOW); in compass_akm_reset()
379 gpio_direction_output(sensor->pdata->reset_pin, GPIO_HIGH); in compass_akm_reset()
/OK3568_Linux_fs/kernel/include/linux/
H A Dsensor-dev.h212 int reset_pin; member
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Drt5677.c4952 gpiod_set_value_cansleep(rt5677->reset_pin, 1); in rt5677_remove()
4970 gpiod_set_value_cansleep(rt5677->reset_pin, 1); in rt5677_suspend()
4985 gpiod_set_value_cansleep(rt5677->reset_pin, 0); in rt5677_resume()
4986 if (rt5677->pow_ldo2 || rt5677->reset_pin) in rt5677_resume()
5606 rt5677->reset_pin = devm_gpiod_get_optional(&i2c->dev, in rt5677_i2c_probe()
5608 if (IS_ERR(rt5677->reset_pin)) { in rt5677_i2c_probe()
5609 ret = PTR_ERR(rt5677->reset_pin); in rt5677_i2c_probe()
5614 if (rt5677->pow_ldo2 || rt5677->reset_pin) { in rt5677_i2c_probe()
H A Drt5677.h1846 struct gpio_desc *reset_pin; /* RESET pin */ member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c10175 u32 reset_pin[2]; in bnx2x_84833_get_reset_gpios() local
10182 reset_pin[idx] = REG_RD(bp, shmem_base_path[idx] + in bnx2x_84833_get_reset_gpios()
10185 reset_pin[idx] = (reset_pin[idx] & in bnx2x_84833_get_reset_gpios()
10188 reset_pin[idx] -= PIN_CFG_GPIO0_P0; in bnx2x_84833_get_reset_gpios()
10189 reset_pin[idx] = (1 << reset_pin[idx]); in bnx2x_84833_get_reset_gpios()
10191 reset_gpios = (u8)(reset_pin[0] | reset_pin[1]); in bnx2x_84833_get_reset_gpios()
10195 reset_pin[idx] = REG_RD(bp, shmem_base_path[idx] + in bnx2x_84833_get_reset_gpios()
10198 reset_pin[idx] &= PORT_HW_CFG_EXT_PHY_GPIO_RST_MASK; in bnx2x_84833_get_reset_gpios()
10199 reset_pin[idx] -= PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO0_P0; in bnx2x_84833_get_reset_gpios()
10200 reset_pin[idx] >>= PORT_HW_CFG_EXT_PHY_GPIO_RST_SHIFT; in bnx2x_84833_get_reset_gpios()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/
H A Dsensor-dev.c1610 pdata->reset_pin = of_get_named_gpio_flags(np, "reset-gpio", 0, &rst_flags); in sensor_probe()