On Wed, Apr 5, 2017 at 4:20 PM, Jagan Teki <[email protected]> wrote:
> +int imx6_pcie_toggle_reset(void)
> +{
> +#ifdef CONFIG_PCIE_IMX_PERST_GPIO
> + struct gpio_desc reset;
> + int ret;
> +
> + ret = dm_gpio_lookup_name("GPIO7_12", &reset);
It would be better to have device tree support in the imx pci driver
then it could simply read the 'reset-gpio' property and do the reset.
_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot