Message ID | 20230421105656.1062558-11-festevam@gmail.com |
---|---|
State | Superseded |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=pIeWPcqE; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q2s3g1Kz6z23tk for <incoming@patchwork.ozlabs.org>; Fri, 21 Apr 2023 20:59:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E767486356; Fri, 21 Apr 2023 12:57:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pIeWPcqE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7002E862B5; Fri, 21 Apr 2023 12:57:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4340086318 for <u-boot@lists.denx.de>; Fri, 21 Apr 2023 12:57:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-187e0ec513eso206235fac.1 for <u-boot@lists.denx.de>; Fri, 21 Apr 2023 03:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682074644; x=1684666644; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HbrYeUd7cUCkDhggFWVMJLiuzfLvioxfDKMmVMmLBno=; b=pIeWPcqE2CcBufYW7+wSjjfAdeaz7az0TgPv6iL8PVA+UD6qQt3faUM6w59AcaUwnP r+JeTf3qTXQv+KWHY72H8n5dDbB9QQiaIAypn2josGE4+9EI3w7C2QVw7KUsJbsJRxqT g+tijuNUqotSHCncvtF/4Xl0bChQwY97XZAGR7WzQzbcrRUjf3kkfx+k36BrYnkWj6NG 4s/wZ7YOGrmAvknWNfRSkYhSgXtgP9iO7pYBWC4P8Xg2+wWeOKQUBOF8PYC3xkLNIakQ PnpfMsdJ0LOHgp2j1CJBUUMxPwA3rTptPFpTZzCHlLoy7SRQNngva1uV1HpvpmeZfb6B XMXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682074644; x=1684666644; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HbrYeUd7cUCkDhggFWVMJLiuzfLvioxfDKMmVMmLBno=; b=YJpu59W15WmR08OjBFXeYT/w1jZMsPbdObUhpMkDG7ER5eoIJGGDL9Es584j6cbwUL 32Jp3xURuCEmdx+EMhUIE7RbwqJEo3n8GydQWf52ALgrnaYfMo+7AQlbtfSgw2S8wIQo YHTpROivsB6If8x7+DkqmrueEjHfG1C4Mrx9mp0Vq4PJexYWsc5JQq/bjv12hv66JlV7 b9latOc3swSQKMJo6LRrp5n1O8vvQagphMC+xjtJsTKQqaZc3uPz+tL63u7x7PQtlff6 4JyYHIFGNRQ4eAUKYJ+xL7ls/+kNeD6pq0k5V1759xKDrKV0hw4JcL0dzXVaDk4kXytt fI8A== X-Gm-Message-State: AAQBX9fFeZqV0318jKCt1Io2N7Loju4MFWZkWHLeS0PGBIySTNzt7TJu Hzqh73Ug88ISxyXgWsqVL/w= X-Google-Smtp-Source: AKy350bD1/q6lUXDiLPxk/sqlCoebCGZ6j8/lp/VB4e8AvewP8pAiw9HZFSF41jxx7Wue3EMOSkqmg== X-Received: by 2002:aca:f055:0:b0:383:f9f5:bd60 with SMTP id o82-20020acaf055000000b00383f9f5bd60mr3022656oih.4.1682074643890; Fri, 21 Apr 2023 03:57:23 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:ada1:37ca:9336:4705]) by smtp.gmail.com with ESMTPSA id ay13-20020a056808300d00b0038e086c764dsm1508354oib.43.2023.04.21.03.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 03:57:23 -0700 (PDT) From: Fabio Estevam <festevam@gmail.com> To: sbabic@denx.de Cc: eduard@lionizers.com, u-boot@lists.denx.de, Fabio Estevam <festevam@denx.de> Subject: [PATCH v2 11/13] smegw01: Read the second MAC address Date: Fri, 21 Apr 2023 07:56:54 -0300 Message-Id: <20230421105656.1062558-11-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230421105656.1062558-1-festevam@gmail.com> References: <20230421105656.1062558-1-festevam@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
[v2,01/13] smegw01: Enable setting additional boot params
|
expand
|
diff --git a/board/storopack/smegw01/smegw01.c b/board/storopack/smegw01/smegw01.c index e786429476..605253ead3 100644 --- a/board/storopack/smegw01/smegw01.c +++ b/board/storopack/smegw01/smegw01.c @@ -82,6 +82,7 @@ int board_init(void) int board_late_init(void) { struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR; + unsigned char eth1addr[6]; imx_iomux_v3_setup_multiple_pads(wdog_pads, ARRAY_SIZE(wdog_pads)); @@ -93,6 +94,11 @@ int board_late_init(void) */ clrsetbits_le16(&wdog->wcr, 0, 0x10); + /* Get the second MAC address */ + imx_get_mac_from_fuse(1, eth1addr); + if (!env_get("eth1addr") && is_valid_ethaddr(eth1addr)) + eth_env_set_enetaddr("eth1addr", eth1addr); + return 0; }