[U-Boot] [PATCH v3 22/31] ARM: i.MX6: sabresd: Add imx6_pcie_toggle_reset
Jagan Teki
jagannadh.teki at gmail.com
Fri Apr 7 06:42:41 UTC 2017
On Fri, Apr 7, 2017 at 3:26 AM, Fabio Estevam <festevam at gmail.com> wrote:
> On Wed, Apr 5, 2017 at 4:20 PM, Jagan Teki <jagan at openedev.com> 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.
Thought of this, but will done later since pcie_imx need to convert
into driver model.
thanks!
--
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
More information about the U-Boot
mailing list