pci-keystone.c (7ecd4a8175104b55de120dd8847e0bfabf7d75aa) | pci-keystone.c (936fa5cd7b8e3e2a21b434d0f3ac29784ac69791) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * PCIe host controller driver for Texas Instruments Keystone SoCs 4 * 5 * Copyright (C) 2013-2014 Texas Instruments., Ltd. | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * PCIe host controller driver for Texas Instruments Keystone SoCs 4 * 5 * Copyright (C) 2013-2014 Texas Instruments., Ltd. |
6 * https://www.ti.com | 6 * http://www.ti.com |
7 * 8 * Author: Murali Karicheri <m-karicheri2@ti.com> 9 * Implementation based on pci-exynos.c and pcie-designware.c 10 */ 11 12#include <linux/clk.h> 13#include <linux/delay.h> 14#include <linux/gpio/consumer.h> --- 1303 unchanged lines hidden (view full) --- 1318 pm_runtime_enable(dev); 1319 ret = pm_runtime_get_sync(dev); 1320 if (ret < 0) { 1321 dev_err(dev, "pm_runtime_get_sync failed\n"); 1322 goto err_get_sync; 1323 } 1324 1325 if (pci->version >= 0x480A) { | 7 * 8 * Author: Murali Karicheri <m-karicheri2@ti.com> 9 * Implementation based on pci-exynos.c and pcie-designware.c 10 */ 11 12#include <linux/clk.h> 13#include <linux/delay.h> 14#include <linux/gpio/consumer.h> --- 1303 unchanged lines hidden (view full) --- 1318 pm_runtime_enable(dev); 1319 ret = pm_runtime_get_sync(dev); 1320 if (ret < 0) { 1321 dev_err(dev, "pm_runtime_get_sync failed\n"); 1322 goto err_get_sync; 1323 } 1324 1325 if (pci->version >= 0x480A) { |
1326 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "atu"); 1327 atu_base = devm_ioremap_resource(dev, res); | 1326 atu_base = devm_platform_ioremap_resource_byname(pdev, "atu"); |
1328 if (IS_ERR(atu_base)) { 1329 ret = PTR_ERR(atu_base); 1330 goto err_get_sync; 1331 } 1332 1333 pci->atu_base = atu_base; 1334 1335 ret = ks_pcie_am654_set_mode(dev, mode); --- 102 unchanged lines hidden --- | 1327 if (IS_ERR(atu_base)) { 1328 ret = PTR_ERR(atu_base); 1329 goto err_get_sync; 1330 } 1331 1332 pci->atu_base = atu_base; 1333 1334 ret = ks_pcie_am654_set_mode(dev, mode); --- 102 unchanged lines hidden --- |