X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=arch%2Farm%2Fmach-omap2%2Futils.c;h=1d3962500d25a6afd8e061c4ad6dd7e9fc59c688;hb=2600df4f8ef12ece9cec13030005919e0ba2b0d5;hp=2bd8290c756bafe0c8ea5b20bf5f3c173b54e90e;hpb=b6df93598c16b9f91b590e6694ac37efe140d38d;p=oweals%2Fu-boot.git diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c index 2bd8290c75..1d3962500d 100644 --- a/arch/arm/mach-omap2/utils.c +++ b/arch/arm/mach-omap2/utils.c @@ -5,8 +5,11 @@ * SPDX-License-Identifier: GPL-2.0+ */ #include +#include #include #include +#include + static void do_cancel_out(u32 *num, u32 *den, u32 factor) { while (1) { @@ -26,6 +29,9 @@ static void omap_set_fastboot_cpu(void) u32 cpu_rev = omap_revision(); switch (cpu_rev) { + case DRA762_ES1_0: + cpu = "DRA762"; + break; case DRA752_ES1_0: case DRA752_ES1_1: case DRA752_ES2_0: @@ -212,6 +218,9 @@ void omap_die_id_usbethaddr(void) mac[5] = (die_id[0] >> 8) & 0xff; eth_env_set_enetaddr("usbethaddr", mac); + + if (!env_get("ethaddr")) + eth_env_set_enetaddr("ethaddr", mac); } }