]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-omap2/utils.c
arm: dra76: fastboot: extend cpu type for getvar command
[u-boot] / arch / arm / mach-omap2 / utils.c
index 2e8778043b7063e5af1cfcf598cbbe1cc8687266..dc7b37f1643500d864e3defcfd59d3735fde0220 100644 (file)
@@ -1,12 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2011 Linaro Limited
  * Aneesh V <aneesh@ti.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
+#include <environment.h>
 #include <asm/setup.h>
 #include <asm/arch/sys_proto.h>
+#include <asm/omap_common.h>
+
 static void do_cancel_out(u32 *num, u32 *den, u32 factor)
 {
        while (1) {
@@ -27,6 +29,8 @@ static void omap_set_fastboot_cpu(void)
 
        switch (cpu_rev) {
        case DRA762_ES1_0:
+       case DRA762_ABZ_ES1_0:
+       case DRA762_ACD_ES1_0:
                cpu = "DRA762";
                break;
        case DRA752_ES1_0:
@@ -215,6 +219,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);
        }
 }