Home
last modified time | relevance | path

Searched refs:perst_gpio (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/pci/controller/dwc/
H A Dpcie-amd-mdb.c68 struct gpio_desc *perst_gpio; member
419 pcie->perst_gpio = devm_fwnode_gpiod_get(dev, of_fwnode_handle(pcie_port_node), in amd_mdb_parse_pcie_port()
421 if (IS_ERR(pcie->perst_gpio)) in amd_mdb_parse_pcie_port()
422 return dev_err_probe(dev, PTR_ERR(pcie->perst_gpio), in amd_mdb_parse_pcie_port()
454 if (pcie->perst_gpio) { in amd_mdb_add_pcie_port()
456 gpiod_set_value_cansleep(pcie->perst_gpio, 0); in amd_mdb_add_pcie_port()
500 pcie->perst_gpio = devm_gpiod_get_optional(dev, "reset", in amd_mdb_pcie_probe()
502 if (IS_ERR(pcie->perst_gpio)) in amd_mdb_pcie_probe()
503 return dev_err_probe(dev, PTR_ERR(pcie->perst_gpio), in amd_mdb_pcie_probe()
/linux/drivers/pci/controller/
H A Dpcie-rockchip-ep.c483 if (rockchip->perst_gpio) in rockchip_pcie_ep_start()
492 if (!rockchip->perst_gpio) in rockchip_pcie_ep_start()
503 if (rockchip->perst_gpio) { in rockchip_pcie_ep_stop()
639 u32 perst = gpiod_get_value(rockchip->perst_gpio); in rockchip_pcie_ep_perst_irq_thread()
659 if (!rockchip->perst_gpio) in rockchip_pcie_ep_setup_irq()
663 ep->perst_irq = gpiod_to_irq(rockchip->perst_gpio); in rockchip_pcie_ep_setup_irq()
H A Dpcie-rockchip-host.c289 gpiod_set_value_cansleep(rockchip->perst_gpio, 0); in rockchip_pcie_host_init_port()
318 gpiod_set_value_cansleep(rockchip->perst_gpio, 1); in rockchip_pcie_host_init_port()