From patchwork Tue Jun 29 02:32:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 468276 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4506341jao; Mon, 28 Jun 2021 19:02:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp8BU/TcO/ptl3LBk7LdJQ7GvGvu2c0mN/wjHAwVNLx6h9/omINc8rLAb6IuRwYutHhkjH X-Received: by 2002:a17:906:af08:: with SMTP id lx8mr27802562ejb.317.1624932132920; Mon, 28 Jun 2021 19:02:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624932132; cv=pass; d=google.com; s=arc-20160816; b=t28hzTlEIG6n6WCp13iIT0GNsL+Kf4IvdbsHczhokiAiK9UC+bEIlGVulp+oszok1Q dAab4x5/KGTlyAAnSKpbU+zqHi1kw4bEM9Q6c3jGtFdqKNc2CCSd52r/D5iRs66pQhJm GLpNS0+g5u4Th1ED/FdwGktZ9Xo0TfCmtD6/vaqksfpqk2EgGJej7bn7/K2xst2Rkk+F E3vE6ReEFlyVM7uDaMvcxpEaDV0swMtf1TIY/EvamceI8g083aqu6ADTIUYbvSR0Ke5k g8lpwR9jvIXJpdX4Q5EfA2lLkUBfmGgA3VEi/SRzJE5fM9MU3S/809H3Xxe9jipg9hUB ZEyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=CB3gFqk7kpUqx9l44VpS6agS+/T81PSR0BFdD+eGD7Q=; b=kE90ugsurbDnbykl6UXLt+CnoKSCv3S8QqFZ4fiC9LMUud/kTN8kcQ15rklouU4ptk RgDyYo7A2mL4J0unCVYl9fgj1G2BcGl6pyCdsif0afUX1MxeyyN1e1G7wEmxdSxviXRk +Q3e+tMrsBrLA2FJWfs7BhzX3NSpWSrIbB3p/LAvO/HGYWuF5ZxCb/bBwA3Si2ckl49X WixL5tT61pE2L+G/5F2Dyc/du4ebhh7Mmx8JCyei7dnlGwjPajKTN5eEMAe6GwKe7/Z6 9MOH8xp95lPnFrU1zfjGRsOU3MsESB4eipqfRC0wUICJHB2Qce5SLs01C1GNGCrZWN4M 6A3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=iRKPKQqX; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ig2si7602749ejc.475.2021.06.28.19.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 19:02:12 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=iRKPKQqX; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 928CF82F08; Tue, 29 Jun 2021 04:00:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="iRKPKQqX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 75A0E82E83; Tue, 29 Jun 2021 03:59:48 +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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on060b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::60b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 85DE682E83 for ; Tue, 29 Jun 2021 03:59:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dWjl/IFFdwAAFYDcgvAxiVEnAdy+SBITzIzAVlnXpRaiOr3gznwUX1FOd7o/rjR4y11Vn3lSW+FHwnZKviC8XWpkeYs7dw3YwO5376KvK5hbscIK48n3phkOu6kuVQ/sd8xZwGG8jUWi+Si/qR6A2g2VHiO0nS8eCs3zIkQFRZ17qWtIfBtZMn1JwXokidB7V0cP3oGeJncZ1tSUraACPcrMArP++eqQG2j7Nz98X46kfKeCcM+qEOkMY1bhK7gy97Dw49jXGrw9EK+TOe6Ns43o7qNbFR8VuY2LBtg6lR7EgOkZKS+Pa9RqAKnw7MDsfFbnjlUUM0Klre/PIOb1/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CB3gFqk7kpUqx9l44VpS6agS+/T81PSR0BFdD+eGD7Q=; b=cO8MiGREiE5OTPxs2RdiBn+V/vt1hA3gMkMZiu+uhACKXGycYRIeHms2ErOok9yOG41yX6twrEtV6ViAevirv3DNr/Ed06WMq8WyUWfSr3tk2dqwLxnxc99Gj2fPBAMQe55k/TAlN7O+msOIapx7jqvaSgG/+D2sd653+OfLjijsKfuqES/rYiiNiO5mC9HeV/69cfCwfm4okUhcOVguuW721cgefaCVfUVvcqAzh0Oz1/ssZ2I4c45KxoL7lA7SoF/Ke9DhOSPng5GzFHgtK2Fa/EKis4JDbKi918X1OLd1byjlOIeUYUstYlo7rh+N9+X8dNl5gl4dVF2dzC06rA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CB3gFqk7kpUqx9l44VpS6agS+/T81PSR0BFdD+eGD7Q=; b=iRKPKQqXNBuAH713t/VAXv8rLJP0GtmK4dUUadNGxKSDn1K/uFP3EgS8VUDCGW6ZJpJ3m0anRPZaFANomOUMaAxFlCvXlwXw3jMUDGVHJV2lgN3bPMls6mTJ46uxBtxMCC/B0g75u9SVoHraQy6+ZFQx8PY17uzJmsWOYhPgYtY= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4633.eurprd04.prod.outlook.com (2603:10a6:5:36::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19; Tue, 29 Jun 2021 01:59:44 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd%9]) with mapi id 15.20.4264.026; Tue, 29 Jun 2021 01:59:44 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan , Ramon Fried Subject: [PATCH V2 13/46] net: fec_mxc: support i.MX8ULP Date: Tue, 29 Jun 2021 10:32:07 +0800 Message-Id: <20210629023240.22394-14-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210629023240.22394-1-peng.fan@oss.nxp.com> References: <20210629023240.22394-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0088.apcprd06.prod.outlook.com (2603:1096:3:14::14) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR06CA0088.apcprd06.prod.outlook.com (2603:1096:3:14::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19 via Frontend Transport; Tue, 29 Jun 2021 01:59:41 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e06dae3-63a4-4ba9-58ec-08d93aa19069 X-MS-TrafficTypeDiagnostic: DB7PR04MB4633: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KG3FbIEEHJ9Sn3ailsu7bcgg0Heaowr3M7Vh84gS1In67ly+X/WJUoccNLLigwv3jnjUOXuzqKaS/iS4FY9XV5V97Id5t6vpxFSjI7vGHC9hfa6iwzO6CD6fDEJt8N6S4IEmDVbfxu7wTkY7GvSomO39dA/ya4HrymfwD6GlEIxCN785PVhG805e9A+9C5ToTrLOj2ssT1GeMbuV7fpj4Jt1+ncHAJwsbyJQjCE/4rbOxHciCVEXcizBFeCEhYxqtG1GoVkZRn5ONzh8H2qxcvK5ydIeLVtEQQhFsbr2+2RS4/McewB5M5HnYUxWdigdZgJd1IS1xuSvP+1gv84En1s4ep+Jq7utVI3L3k0eemNjqJprFY4N1KoTY6MJ5MWMRl0W11EqA/ZMuWGUYCW8GmD2Z7eqq+JayJ4v2wlq/3FyK9UyJq3iBikGPj0eNcY6sMo+ry7QcB7/Na7JCu2ekO/uidp5ai3Ob11PZiPqwdr4BSUAsPBhWukTEkrsDVBI7Jk3oaDV5BIyN8noqKLtWrceojBPbgTJShAzDN01o1G9Uo3RfHnjHrVE8eVFiB4OA3UpHOzwJD8tfh4nlM0xQfzLkoKQEXw9upD7SLrGqRXfdiifM2Kpxx31L2UAHr5jIGaWEoef7CiEGF26M0bI41U8rM2E/7VG+I0uYlEDemadvqQhzRjq2mAND4j7EPW6uRxFlR1wzSizOPuuQqahpQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(39860400002)(136003)(366004)(396003)(16526019)(66946007)(38100700002)(38350700002)(8936002)(6666004)(4326008)(26005)(83380400001)(6506007)(1076003)(186003)(8676002)(2906002)(478600001)(54906003)(6486002)(2616005)(956004)(5660300002)(52116002)(86362001)(66476007)(6512007)(316002)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3YXGcyCscjwEvIbzTIwNTL98/3q2EpyC9OIjdgzluXCy1npJ6G+naR5oC2KAvlR+FyXJw9GketvqfezO29R8/3Mp4lekWsC6n6YZLQsGoMzMe83rMleqvTHisft0uAQ0tB2MoKUAIT1rJlHljfpJYr6rXbLuCZtzM6RPwVoqpXoaivz85APnzZrfiPL+KTUKry/yZwRyj7NcZSkYPA/811VlVOK0OzQamXfNNjHR79FWL46gOEn7IrdB99ryZdOionCd1vKJXqbodtPOC/DALniiIYHIbQ9pZiulsJulNpjngX6KaMNyun4pBMf+cmTgF5M1YqlrvYCTu9M69/Toftv3QibdnT0uJii3xjjFPHJl5z6y0734AfewOtBvM/Ro5z9DgcYNGL05geKaFQO4Rg2VWiNAuSmPGaWskg+4rhGR2SiT/vxPrXN1VaFSV0xqxjIg7P+wSvGJLw6f8i40Fp4MK33H+WiF+H2K8XSL3zEgpaAjFLD0kAOtkE4ZppbpQUK1Zbbr4L8NOL86qg0PS3/ircF17Jlpg0OJXPNqQDeuvy0Rh+gCXc+eT0RHiqUlqWS9jwKhYoxJgdLp1E5U66L2nCmwOIQg46J+uuXqieBaU/oFs0RaJtk/Hpko/JtiEohCEbARHZwIauQ5XV1fX9Apr+IGWsLH+PHXKQ9ps95ueYwl9aDZTW/YRpNu457Ms1I3D5TNp8GU/r0+NmLbTDDpRQYVGboidiG87ZRWp7zU37Hy+V8MZbtT0q1uAazyvrtJPY5CK+LTSucZeCgyv+9LAxGP09EBWK05p338J4zjr8TfT/YDY3QEFVoJG9ktP2u9kIy5yya1VaB97pye0f4s7eJ3hIEmurh254h7qS0L1S6MP5wMbI+eXoOC/hxMdfR/SuYBn1SuBD28nCEbBcohvqk4DklVtVD5NCBzzUmvklWeSHrVi8Daj6Mgh4B+S36GnDKtmHfVyw+Z9sCzg6M4zAlmFBRSgLWGeVWqsezRaaCagtyvdKp8q5XvpqZ6x7oOjDyn4M6T2TTP9EMQnchmpQK2J9oro6D0vE+34vlmvaTnBB38N79LaiUxpe+FTe/wgi7gr/jY1xNZ+2h6OQzOlLSMUK8JpexLxL7zLoCsbnW1hqXI54dhP7PRqTh6tQgDi6PV7FNflOAWU+02u/5rumeNFr3qRUjUUzRWpi02ESd7sz/mvvx2wTyV6QyNNTXc5JMy2kr6XxA9ssG1w9EcgZJu7B1umliHOd5aTtYIFNlqTr8SAN1YW6lfjoLfc+a9NRyKWK40wIL05AcGwXxotWQOvGQFZFFy2oGTNajrkf77YKaF4cx4BbWSsUHO X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e06dae3-63a4-4ba9-58ec-08d93aa19069 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2021 01:59:43.9913 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HaatrJB3MnmJR+WtNcl0g7NRZGFBMbF86tOpgLNRhyOcz92092VaoBRhpo67A7k5rYVaerWGG4zoXl8SyboRRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4633 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Support i.MX8ULP in fec_mxc Signed-off-by: Peng Fan Reviewed-by: Ramon Fried --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.30.0 diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 382639044b..7af6da3b68 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -330,7 +330,7 @@ config FEC_MXC_MDIO_BASE config FEC_MXC bool "FEC Ethernet controller" - depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || VF610 + depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || VF610 help This driver supports the 10/100 Fast Ethernet controller for NXP i.MX processors. diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 4fd5c01b4a..d970261ec1 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -628,7 +628,7 @@ static int fec_init(struct eth_device *dev, struct bd_info *bd) writel(0x00000000, &fec->eth->gaddr2); /* Do not access reserved register */ - if (!is_mx6ul() && !is_mx6ull() && !is_imx8() && !is_imx8m()) { + if (!is_mx6ul() && !is_mx6ull() && !is_imx8() && !is_imx8m() && !is_imx8ulp()) { /* clear MIB RAM */ for (i = mib_ptr; i <= mib_ptr + 0xfc; i += 4) writel(0, i);