From patchwork Thu Sep 10 08:50:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1361353 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=LCV5uZ7M; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BnCKG0wcJz9sSJ for ; Thu, 10 Sep 2020 18:50:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A901982337; Thu, 10 Sep 2020 10:50:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.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=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="LCV5uZ7M"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 925AC82336; Thu, 10 Sep 2020 10:50:46 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 4FCC4822F2 for ; Thu, 10 Sep 2020 10:50:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=narmstrong@baylibre.com Received: by mail-wr1-x444.google.com with SMTP id z4so5800932wrr.4 for ; Thu, 10 Sep 2020 01:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s+At/Gp4A/GeUXC0v5dLc2Qb9nHoxuq4qQdgQ/IuiW4=; b=LCV5uZ7MN3qpuUiSOLblWhHf3MULdQg2rCUAlf5w0vhI1FGdDuMbd9ETnCtO4AoE21 nc3Nqm/4tExzd4rQWHMtyzzcnSsRRaa5l/owYEM9mtjbk9IRwD/wVITNKE0GI8Cl51/G u8gPhBzkt2udm2mq4hv0miQ3bQWzie0iTmJloMKbi4az5XfL5ZRpZDViA5wTzId8mXkZ nGxH4KFkjL6f43KSs1RLRX3i/cWZb5zPhKHdiIaKTY13kJaH8XU/yT9BlJh5vBL/wGI6 H8qLC+MqeuIYmhkx/p3ZglQEkuUFD4nWNWVkSYBTtGxqe2zTobEAt8iaYj9Uj56T2Xm6 e6eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s+At/Gp4A/GeUXC0v5dLc2Qb9nHoxuq4qQdgQ/IuiW4=; b=uhs3gPgBJ541pQKckORhONvFPyRLSyj9v+/9uvVN8u0XcKzfhVW8C7Nps8XuaT5iWu iaNqHqdvQLWo7gcKhJqGD3Vs1uX/GRClUjjY4C9OpSPSHCSFtgQMQ3rAjm245WwQWQot xAbGIDExK0VrZbOgZmmDEJpEAiFdYoHcrrAToVkdRmRsTuJISi9C0dNTLAiPtTNMN7Gd YbIajM2n45w2Xwk8CKBT6TCPO7QTJnjsePDN5CsBzPRwlTLPiG+wk9N1Rc4ZI4U/E1sD xbRB6BezdLiCqe2jHVDD7I5lfnnwvs9Nkas/b0czDkWL1W8xlIkGeqnsPYCt7g6gOxHZ DQSA== X-Gm-Message-State: AOAM532YXv6Gw5SniBNR76HhSYEe7dSiTK5pp1h69qbXKTL4w/HcYH2k SwcPNSZZ7btZMDN0aQjR1VEH2+alfjHbZf87 X-Google-Smtp-Source: ABdhPJxtuEK4bwWVw+4DAkaJI0Q6gNvtglx6uTFMMTCr0qSSG9An/gQNCAGp6brGoshx0bbkRFE2aA== X-Received: by 2002:a5d:55c8:: with SMTP id i8mr7741051wrw.331.1599727843493; Thu, 10 Sep 2020 01:50:43 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:5405:9623:e2f1:b2ac]) by smtp.gmail.com with ESMTPSA id n11sm7909012wrx.91.2020.09.10.01.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 01:50:42 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de Cc: u-boot-amlogic@groups.io, Neil Armstrong Subject: [PATCH] board: s400: generate unique mac address from SoC serial Date: Thu, 10 Sep 2020 10:50:39 +0200 Message-Id: <20200910085039.25785-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Enable unique mac address generation from SoC serial on S400 board. Signed-off-by: Neil Armstrong --- board/amlogic/s400/s400.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/amlogic/s400/s400.c b/board/amlogic/s400/s400.c index 7e2f0cdae3..b081942dcc 100644 --- a/board/amlogic/s400/s400.c +++ b/board/amlogic/s400/s400.c @@ -18,5 +18,7 @@ int misc_init_r(void) { meson_eth_init(PHY_INTERFACE_MODE_RGMII, 0); + meson_generate_serial_ethaddr(); + return 0; }