mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-08 02:07:55 +01:00
ipq806x: pcie: Fix PCI 2.0 cards probing
This patch putting pci into reset and waiting for 2ms. Change-Id: Ied3863f50956f5c099f3c4c0ed7f2df55573ca0b Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
This commit is contained in:
parent
4b79b9c406
commit
34abc3d3aa
1 changed files with 11 additions and 2 deletions
|
|
@ -419,8 +419,9 @@ void board_pcie_clock_init(int id)
|
|||
|
||||
void board_pci_init(int id)
|
||||
{
|
||||
int node, gpio_node;
|
||||
int node, gpio_node, offset;
|
||||
char name[16];
|
||||
u32 gpio;
|
||||
|
||||
sprintf(name, "pci%d", id);
|
||||
node = fdt_path_offset(gd->fdt_blob, name);
|
||||
|
|
@ -429,8 +430,16 @@ void board_pci_init(int id)
|
|||
return;
|
||||
}
|
||||
gpio_node = fdt_subnode_offset(gd->fdt_blob, node, "pci_gpio");
|
||||
if (gpio_node >= 0)
|
||||
if (gpio_node >= 0) {
|
||||
qca_gpio_init(gpio_node);
|
||||
offset = fdt_first_subnode(gd->fdt_blob, gpio_node);
|
||||
if (offset) {
|
||||
gpio = fdtdec_get_uint(gd->fdt_blob,
|
||||
offset, "gpio", 0);
|
||||
gpio_set_value(gpio, 1);
|
||||
udelay(3000);
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue