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.