[u-boot][master][PATCH 1/3] pico-imx7d: add support for 2GB memory SoMs

Fabio Estevam festevam at gmail.com
Mon Dec 19 15:40:45 CET 2022


On Sun, Dec 18, 2022 at 9:52 AM <egyszeregy at freemail.hu> wrote:

> +static void ddr_init(void)
> +{
> +       if (is_1g()) {
> +               if (is_2g()) {

This logic is confusing.

It would be better to read the two GPIOs and then do a switch case to handle
the possible values.


More information about the U-Boot mailing list