mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-06 17:30:35 +01:00
ipq9574: Fix PCIE PCS COM offset
Change-Id: Ifd0416940231b8923324aa0de1567a8cee5016f3 Signed-off-by: Praveenkumar I <ipkumar@codeaurora.org>
This commit is contained in:
parent
d4ac2d38d5
commit
4730d3fa31
1 changed files with 11 additions and 4 deletions
|
|
@ -450,7 +450,7 @@ void board_pci_init(int id)
|
|||
|
||||
void board_pci_deinit()
|
||||
{
|
||||
int node, gpio_node, i, err, pci_no;
|
||||
int node, gpio_node, i, err, pci_no, is_x2;
|
||||
char name[16];
|
||||
struct fdt_resource parf;
|
||||
struct fdt_resource pci_phy;
|
||||
|
|
@ -471,12 +471,19 @@ void board_pci_deinit()
|
|||
if (err < 0)
|
||||
continue;
|
||||
|
||||
writel(0x1, pci_phy.start + 800);
|
||||
writel(0x0, pci_phy.start + 804);
|
||||
pci_no = fdtdec_get_int(gd->fdt_blob, node, "id", 0);
|
||||
if ((pci_no == 0) || (pci_no == 1))
|
||||
is_x2 = 0;
|
||||
else
|
||||
is_x2 = 1;
|
||||
|
||||
writel(0x1, pci_phy.start + (0x800 + (0x800 * is_x2)));
|
||||
writel(0x0, pci_phy.start + (0x804 + (0x800 * is_x2)));
|
||||
|
||||
gpio_node = fdt_subnode_offset(gd->fdt_blob, node, "pci_gpio");
|
||||
if (gpio_node >= 0)
|
||||
qca_gpio_deinit(gpio_node);
|
||||
pci_no = fdtdec_get_int(gd->fdt_blob, node, "id", 0);
|
||||
|
||||
pcie_v2_clock_deinit(pci_no);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue