diff options
author | Tim Harvey <tharvey@gateworks.com> | 2015-05-09 01:28:33 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-05-15 17:21:25 (GMT) |
commit | 9ec3c8d4b03c5af5eadb8447a6aa108967a08943 (patch) | |
tree | 78beb42b4f952e02cb6362a0c860c428d916585b /board/gateworks/gw_ventana | |
parent | 50de5088bba355d0b5aaf3031773455d721b08ac (diff) | |
download | u-boot-9ec3c8d4b03c5af5eadb8447a6aa108967a08943.tar.xz |
imx: ventana: fix pcie reset for GW522x
The re-assignment of pcie_rst gpio for GW522x needs to occur earlier, before
the PCI subsystem calls the toggle funciton.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks/gw_ventana')
-rw-r--r-- | board/gateworks/gw_ventana/gw_ventana.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index 554cd84..8cfc1f2 100644 --- a/board/gateworks/gw_ventana/gw_ventana.c +++ b/board/gateworks/gw_ventana/gw_ventana.c @@ -1184,10 +1184,6 @@ static void setup_board_gpio(int board) } #if !defined(CONFIG_CMD_PCI) - /* GW522x Uses GPIO3_IO23 for PCIE_RST# */ - if (board_type == GW52xx && info->model[4] == '2') - gpio_cfg[board].pcie_rst = IMX_GPIO_NR(3, 23); - /* assert PCI_RST# (released by OS when clock is valid) */ gpio_request(gpio_cfg[board].pcie_rst, "pci_rst#"); gpio_direction_output(gpio_cfg[board].pcie_rst, 0); @@ -1435,6 +1431,10 @@ int board_init(void) int count = gpio_cfg[board_type].num_pads; imx_iomux_v3_setup_multiple_pads(p, count); + + /* GW522x Uses GPIO3_IO23 for PCIE_RST# */ + if (board_type == GW52xx && ventana_info.model[4] == '2') + gpio_cfg[board_type].pcie_rst = IMX_GPIO_NR(3, 23); } return 0; |