From patchwork Mon Jul 4 11:11:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Oberfichtner X-Patchwork-Id: 1651940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=v9WgkBD3; dkim-atps=neutral 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=) 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 (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lc3665MfZz9sFs for ; Mon, 4 Jul 2022 21:11:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 41C7684424; Mon, 4 Jul 2022 13:11:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656933095; bh=3sd3CTYuIJH8rEPdRZ074rH9BFWclrWzXviyuHmlLCo=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=v9WgkBD3T04M8S0IA8kAs+yGChWF/WFaHblgkd7pFkhP5F2yar0qKrA9XPHCGatSD iuAV+lvtG51sVumLXIQkDW/9jFrBNS8BtNLBDrcVLB3neHcZp85LELdE7M9sbsJhAF IjTdAnOjt2M9kdXeVCi5WZZuZnlCeqpqHkL+Q56eEx1X/UtnpaBFVAWzOFSsrCK5+4 2JtPiXaaQ78iMqLwWhSMoF5MXgdzWOf0FDUf/wZWLYIlfi4oomjSmNni72bYFhbge7 +aXXARNwBf6sFrmVMZGpo9kToLBLmz5ZZkHZvSLcE/2kVMAMGPSL/6Cs97+tZgvUuc qVOY9wl74NGKg== Received: by phobos.denx.de (Postfix, from userid 109) id 99A6F844B1; Mon, 4 Jul 2022 13:11:33 +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=-0.3 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from xpert.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A86E984493 for ; Mon, 4 Jul 2022 13:11:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=pro@denx.de Received: by xpert.denx.de (Postfix, from userid 535) id 44D733E06E7; Mon, 4 Jul 2022 13:11:29 +0200 (CEST) From: Philip Oberfichtner To: u-boot@lists.denx.de Cc: Simon Glass , festevam@denx.de, u-boot@dh-electronics.com, Marek Vasut , Christoph Niedermaier , sbabic@denx.de, Patrick Delaunay , Patrice Chotard , peng.fan@nxp.com, Philip Oberfichtner , Andreas Geisreiter , Tom Rini , uboot-stm32@st-md-mailman.stormreply.com Subject: [PATCH 0/4] Deduplicate dhelectronics board files Date: Mon, 4 Jul 2022 13:11:02 +0200 Message-Id: <20220704111106.1415208-1-pro@denx.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean This series unifies common mac address code for imx6, imx8 and stm32 based boards by DH. It is thought of as a starting point for more deduplication in the future. Philip Oberfichtner (4): board: dhelectronics: Implement common mac address functions ARM: imx6: DH: Use common mac address functions ARM: imx8: DH: Use common mac address functions ARM: stm32: DH: Use common mac address functions board/dhelectronics/common/Makefile | 10 ++ board/dhelectronics/common/dh_common.c | 64 +++++++++ board/dhelectronics/common/dh_common.h | 28 ++++ board/dhelectronics/common/dh_imx.c | 24 ++++ board/dhelectronics/common/dh_imx.h | 12 ++ board/dhelectronics/dh_imx6/dh_imx6.c | 47 ++----- .../dh_imx8mp/imx8mp_dhcom_pdk2.c | 121 +++++++----------- board/dhelectronics/dh_stm32mp1/board.c | 104 +++++++-------- 8 files changed, 247 insertions(+), 163 deletions(-) create mode 100644 board/dhelectronics/common/Makefile create mode 100644 board/dhelectronics/common/dh_common.c create mode 100644 board/dhelectronics/common/dh_common.h create mode 100644 board/dhelectronics/common/dh_imx.c create mode 100644 board/dhelectronics/common/dh_imx.h