[PATCH 21/21] imx93_evk: Enable M.2 VPCIe_3V3 and deassert SD3_nRST
Fabio Estevam
festevam at gmail.com
Wed Sep 18 02:13:05 CEST 2024
Hi Peng,
On Mon, Sep 16, 2024 at 11:31 PM Peng Fan (OSS) <peng.fan at oss.nxp.com> wrote:
> + /* Enable EXT1_PWREN for PCIE_3.3V */
> + ret = dm_gpio_lookup_name("gpio at 22_13", &desc);
> + if (ret)
> + return;
> +
> + ret = dm_gpio_request(&desc, "EXT1_PWREN");
> + if (ret)
> + return;
> +
> + dm_gpio_set_dir_flags(&desc, GPIOD_IS_OUT);
> + dm_gpio_set_value(&desc, 1);
> +
> + /* Deassert SD3_nRST */
> + ret = dm_gpio_lookup_name("gpio at 22_12", &desc);
> + if (ret)
> + return;
> +
> + ret = dm_gpio_request(&desc, "SD3_nRST");
> + if (ret)
> + return;
> +
> + dm_gpio_set_dir_flags(&desc, GPIOD_IS_OUT);
> + dm_gpio_set_value(&desc, 1);
Why do we need all this board code? This should be properly described
in the devicetree.
How does Linux deal with it?
More information about the U-Boot
mailing list