From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74CAEC43334 for ; Tue, 26 Jul 2022 13:05:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 78B6784144; Tue, 26 Jul 2022 15:05:23 +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=1658840724; bh=+uZG7MeHegzkb0SohX5K4Zj+w5rp1k9ggWJGiswrpAM=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=0JmLVQv628SXyfL5D7fU+0K02vEwV7rL/onNdJbDG5WtjJ2+kx+zWx1z8qcSeHPZ5 WEdyLuxLSYxAN0Ku6ZRFTNRg2gTvkiW+n99XuNOererZkUstze9LxzfIEJmaYPqhTW gsWui00G9g93NyEYC5Wm7/jMs7Zu2udEkA4fOeAYSU9V3xXOvhE7KrkBagv+O+Wu3x C9nYYETcmNRz+3V6f+3MdWyj308JjAtLwVPs0vEBb3wFdRzfV/xPkot3R2tyXTVMBF sDhCuwGUm0zT6g/fJySYy18u8cJLwfLvjdzIqUD98XwBrjkHS9/MuEP/+y4PO25XbY aZCrz0I2xI/ow== Received: by phobos.denx.de (Postfix, from userid 109) id B50D684106; Tue, 26 Jul 2022 15:05:09 +0200 (CEST) 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 4BCDC84051 for ; Tue, 26 Jul 2022 15:05:01 +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 7F0253E0087; Tue, 26 Jul 2022 15:05:00 +0200 (CEST) From: Philip Oberfichtner To: u-boot@lists.denx.de Cc: Marek Vasut , festevam@denx.de, peng.fan@nxp.com, Christoph Niedermaier , u-boot@dh-electronics.com, sbabic@denx.de, Patrice Chotard , Simon Glass , Patrick Delaunay , Philip Oberfichtner , Andreas Geisreiter , Tom Rini , uboot-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 0/4] Deduplicate dhelectronics board files Date: Tue, 26 Jul 2022 15:04:49 +0200 Message-Id: <20220726130454.2829205-1-pro@denx.de> X-Mailer: git-send-email 2.37.1 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 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. Changes in v4: - Replace printf() by log_err() in stm32 board file - stm32 changes reviewed by Patrick Changes in v3: - Entire series reviewed by Marek Changes in v2: - Tested-by Marek - convert to livetree (rebase on commit 5a605b7c86152) - Fix spelling 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 | 65 ++++++++++ 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 | 102 +++++++-------- 8 files changed, 246 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 -- 2.37.1