Merge tag 'u-boot-stm32-20200909' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm
authorTom Rini <trini@konsulko.com>
Wed, 9 Sep 2020 16:59:02 +0000 (12:59 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 9 Sep 2020 16:59:02 +0000 (12:59 -0400)
- fixes on AV96 board: pull up on UART4 RX and adjust PLL4

arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi
arch/arm/dts/stm32mp15xx-dhcor-u-boot.dtsi
arch/arm/mach-stm32mp/cpu.c

index cb92fc9..1ae57e1 100644 (file)
@@ -75,6 +75,8 @@
        };
        pins2 {
                u-boot,dm-pre-reloc;
+               /delete-property/ bias-disable;
+               bias-pull-up;
        };
 };
 
index 7529068..c733184 100644 (file)
                u-boot,dm-pre-reloc;
        };
 
-       /* VCO = 600.0 MHz => P = 100, Q = 50, R = 100 */
+       /* VCO = 600.0 MHz => P = 99, Q = 74, R = 99 */
        pll4: st,pll@3 {
                compatible = "st,stm32mp1-pll";
                reg = <3>;
-               cfg = < 1 49 5 11 5 PQR(1,1,1) >;
+               cfg = < 3 98 5 7 5 PQR(1,1,1) >;
                u-boot,dm-pre-reloc;
        };
 };
index b7fcee2..f19e5c3 100644 (file)
@@ -580,8 +580,8 @@ __weak int setup_mac_address(void)
                return -EINVAL;
        }
        pr_debug("OTP MAC address = %pM\n", enetaddr);
-       ret = !eth_env_set_enetaddr("ethaddr", enetaddr);
-       if (!ret)
+       ret = eth_env_set_enetaddr("ethaddr", enetaddr);
+       if (ret)
                pr_err("Failed to set mac address %pM from OTP: %d\n",
                       enetaddr, ret);
 #endif