提交 77c55018 编写于 作者: T Tim Harvey 提交者: Stefano Babic

imx: ventana: default msata/pci mux to pci before PCI enumeration

PCI enumeration occurs early, before we fully configure our GPIO's. Make
sure we steer the MSATA/PCI mux to PCI in board_init to ensure PCI is
selected before enumeration.
Signed-off-by: NTim Harvey <tharvey@gateworks.com>
上级 9ec3c8d4
......@@ -1174,13 +1174,10 @@ static void setup_board_gpio(int board)
gpio_direction_output(GP_RS232_EN, (hwconfig("rs232")) ? 0 : 1);
/* MSATA Enable */
gpio_request(GP_MSATA_SEL, "msata_en");
if (is_cpu_type(MXC_CPU_MX6Q) &&
test_bit(EECONFIG_SATA, info->config)) {
gpio_direction_output(GP_MSATA_SEL,
(hwconfig("msata")) ? 1 : 0);
} else {
gpio_direction_output(GP_MSATA_SEL, 0);
}
#if !defined(CONFIG_CMD_PCI)
......@@ -1435,6 +1432,10 @@ int board_init(void)
/* 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);
/* MSATA Enable - default to PCI */
gpio_request(GP_MSATA_SEL, "msata_en");
gpio_direction_output(GP_MSATA_SEL, 0);
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册