mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
PCI: rockchip: dw-ep: Support setting link_gen
Change-Id: I1b93b04e45a39e93e774a2ade8a00865f1e6f5ed Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <linux/uaccess.h>
|
||||
#include <uapi/linux/rk-pcie-ep.h>
|
||||
|
||||
#include "../../pci.h"
|
||||
#include "../rockchip-pcie-dma.h"
|
||||
#include "pcie-designware.h"
|
||||
#include "pcie-dw-dmatest.h"
|
||||
@@ -322,6 +323,8 @@ static int rockchip_pcie_get_io_resource(struct platform_device *pdev,
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
rockchip->pci.link_gen = of_pci_get_max_link_speed(np);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user