Lines Matching +full:ebu +full:- +full:xway
1 // SPDX-License-Identifier: GPL-2.0-only
25 #include "pci-lantiq.h"
88 bar11mask = (0x0ffffff0 & ~((1 << (fls(mem) - 1)) - 1)) | 8; in ltq_calc_bar11mask()
95 struct device_node *node = pdev->dev.of_node; in ltq_pci_startup()
100 clk_pci = clk_get(&pdev->dev, NULL); in ltq_pci_startup()
102 dev_err(&pdev->dev, "failed to get pci clock\n"); in ltq_pci_startup()
106 clk_external = clk_get(&pdev->dev, "external"); in ltq_pci_startup()
109 dev_err(&pdev->dev, "failed to get external pci clock\n"); in ltq_pci_startup()
114 bus_clk = of_get_property(node, "lantiq,bus-clock", NULL); in ltq_pci_startup()
120 if (of_find_property(node, "lantiq,external-clock", NULL)) in ltq_pci_startup()
126 reset_gpio = of_get_named_gpio(node, "gpio-reset", 0); in ltq_pci_startup()
128 int ret = devm_gpio_request(&pdev->dev, in ltq_pci_startup()
129 reset_gpio, "pci-reset"); in ltq_pci_startup()
131 dev_err(&pdev->dev, in ltq_pci_startup()
138 /* enable auto-switching between PCI and EBU */ in ltq_pci_startup()
150 req_mask = of_get_property(node, "req-mask", NULL); in ltq_pci_startup()
160 /* enable EBU request */ in ltq_pci_startup()
214 ltq_pci_membase = devm_ioremap_resource(&pdev->dev, res_bridge); in ltq_pci_probe()
219 ltq_pci_mapped_cfg = devm_ioremap_resource(&pdev->dev, res_cfg); in ltq_pci_probe()
225 pci_load_of_ranges(&pci_controller, pdev->dev.of_node); in ltq_pci_probe()
231 { .compatible = "lantiq,pci-xway" },
238 .name = "pci-xway",
247 pr_info("pci-xway: Error registering platform driver!"); in pcibios_init()