From patchwork Mon Apr 12 12:12:42 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: 419549 Delivered-To: patch@linaro.org Received: by 2002:a02:c4d2:0:0:0:0:0 with SMTP id h18csp1665392jaj; Mon, 12 Apr 2021 04:53:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9CvqTPay+96CCVaLs47xiKWTPa9ZJztGvzL1Xz7gk7w8cjzxaXTQgy21CTd8eUbZcLA/J X-Received: by 2002:a05:6402:6c2:: with SMTP id n2mr29043219edy.110.1618228386135; Mon, 12 Apr 2021 04:53:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618228386; cv=pass; d=google.com; s=arc-20160816; b=cYPUpADJ5FjhvQ3MyBrgIu+ccTxw1V0n5gpIsGigSE03Rsi+G4FnphscgUGkktqu3n qhJP5RhnIPo+WPyZUHem/VMY+EeKrZdfveDo4cUAHVpzTpBk9hm9tIDGjGume74V0dpE aWgoXCoP7LX05TF02nbkcz0moRwPzt00USulnEruIobS5ZTOGHKu2B6qRPjWhAMa6h5J GW6FzhCtfoJrimv3gWB4uNDzm93yvcKAUQwmYmIW2E1xRNrngFZOXznyY5fCjsheSV01 sHs6nm59w6ydMfyU8RVaFUs0TLX//SE15tJqFlyLoJ4a45bNUzBhoMgMX3Fk20aE2J4d cQ0Q== 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=GKlBHmGbTziVdM/cywAUGSY2XM6NmXhpPbWtgVNQDyk=; b=QuY/Lx/hXIzxBFdO+St7Y0Lq+zoFdzFnBNr+pguDzJCy0PHDuyDU1SucqSGwCZJ6b9 8oy/iujP8V9UnVN6sPP/i1y/i9LxX5kduwaGFemWM4S9RuKgP3d8HA7GHI4QDZ7l5v4g N+vnoTwA6+8afCmaFCdPi9jW9VHm/H646BhQB5C/svUwmEKooT120IVn7o6n2BnSSWqC oii5u9VAsOF8j1FHj8o1dxDeDuhJBJv9k8mzs1XXF8gBkeuZbH2ivWqOpXybMfBC4Byi 7Ps+dajc/Wpe/3NCaePD/WRiKgVpzb5CNhR8wHhihXIoraHQiSvbqZdb4SpH5w/9hzFu VCRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=WMebJYYF; 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 i25si7511798edt.491.2021.04.12.04.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 04:53:06 -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=WMebJYYF; 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 2CBC881FE0; Mon, 12 Apr 2021 13:52:38 +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="WMebJYYF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B65EC82046; Mon, 12 Apr 2021 13:42:43 +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.0 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 EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20601.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::601]) (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 E865B81FBC for ; Mon, 12 Apr 2021 13:42:00 +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=nn5dLi/GHMpyCW3gSWIA5nupgPSuGRR/wGyNS3O68fYIZUKshDCZmP8MA1F+zR4ETmJGki6Bmp08tddSLu/OhuT7FkGIcWFt9TNL8xmlRuvRTySOec7dZRatFBf00NrFoIarBhIsh6zWzv4i/dWUwDBOjEeubxRCTM2tM/qw4Hvc/qkKuhVZUKQYulF4zFQpA9mDbaE2MHOgElI/vHuHbNWmUN/3OD5WJZaiwYQXpFmvEMiqvcGn0c7i9elJNHGjfIbxKCe7dWsU7uYXOdh828IDI8YrIimVIwpseDVi7s2pH1O/fhNRDOcQLuSoNk57FywGGcuex5BxgNIjkPfILw== 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=GKlBHmGbTziVdM/cywAUGSY2XM6NmXhpPbWtgVNQDyk=; b=RsNqoKP10lmfuXsZxdS84BDacMo/61Q+tetUdbpngJkK4rlwWDSXU6FGlapkP02vP0NNlczm4IyaCtyUTi+fKey4G7f+CsYzD3akxK4agCP+AbUcFvf8+99jXsqleCTCPgnOwfOlZtm3Ft/hzD/TGC+MH+R4bFE4ZUttDMdsiAjOmyBR+aH/Y6APWe5HrEy5NrLAIC1+lAnxREK70WKUyoXDOhnewOQ73mc6QxkpKUaHy5bhT5ALvzmZGWsTKKrvHxBdzjQESa4ilmJ3pNP2c+S6uPXWuUFhwo+BCFPJFMRAsFMRjurg9ej27S1MD11qQnA6faftfb8N+zYlQtEwiw== 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=GKlBHmGbTziVdM/cywAUGSY2XM6NmXhpPbWtgVNQDyk=; b=WMebJYYFLEJIZ91TUKB9haWKYY++wX6UI8HpjnhE5mOETuBQcQCQsDtLVfbPBM7GyFf3q++v3Nf4GTfaZtUZNZWe0q0ObJhN2t/3Z8M8plr/guaNwopVyPkLMIlTlALMH/SdLZ/xm01M1qlNa18r2Qq8usxOBCS1TBuo+HPG4gI= 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 DB7PR04MB5244.eurprd04.prod.outlook.com (2603:10a6:10:21::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.18; Mon, 12 Apr 2021 11:41:59 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c57a:6964:f72c:21cf%11]) with mapi id 15.20.3999.032; Mon, 12 Apr 2021 11:41:59 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan Subject: [PATCH 13/37] net: fec_mxc: support i.MX8ULP Date: Mon, 12 Apr 2021 20:12:42 +0800 Message-Id: <20210412121306.11484-14-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210412121306.11484-1-peng.fan@oss.nxp.com> References: <20210412121306.11484-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: HK2PR0401CA0009.apcprd04.prod.outlook.com (2603:1096:202:2::19) 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 HK2PR0401CA0009.apcprd04.prod.outlook.com (2603:1096:202:2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.16 via Frontend Transport; Mon, 12 Apr 2021 11:41:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 35a47b3e-b8b3-4b86-8dc7-08d8fda7fb17 X-MS-TrafficTypeDiagnostic: DB7PR04MB5244: 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: j2hX2eB4qCX3XWrQ6+h6js7zNAeTIMhJE1IOVMyoLlVDZspfUVh1BHpAoGB+4d7Ov56E1VsfTRXkObo3kO1KLYdjaHKeVsZ/l63MW0Py11/PGknb+/8o7K50QxuZ8W6qQhd7pVeP1LaMRKOMyoOBpWWxqprd2RPfFwlTR2PqF+Wr2PjbXWf76EhFDfxqNbdF22CrGDu8/Y87+HYNUthglbPoHNwRUq70hohTVibk6yLL5pqSjAHOy2Ks+uhPB4iwEw5HRL20qU7oiS4NDRBT0RjSqyTSLnX1SvevkAd/TV440pvt/Frg5q03F//EXiMSt4z6QCmpGY4osJyMxsZsBNMtqKEA+W23ogpzjx46y8B8tcNIpLkaXvK//P/Ckzfz9nCSGj8bXqdkpyPMfmH5qNnaQkLX+p6zn/rcCTf6sitcalTBIEYcgrzZrf894DSNUsnr8qHCzZDinUC4CbMxdrqIqUPEpFNApg+zCep+CqkKnCiV4bVs5T7bOVLHOuMkszWLuMplYXSPYMPPkNZUhtBKbJfogZ0oz02dxMa3B0R14c71P7FxZQfWqb2XedgZPLHod/hGrfM++B+pJ7AOps2FY3fQvh5pJbzehrY/CIQNcISW/AQijANTSUwMbN/rZlAGiZUMo9ozCPJ8TN4oShTYj0aTk1ErT3BISgTIimE= 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)(376002)(346002)(136003)(366004)(39860400002)(396003)(16526019)(26005)(186003)(6506007)(38100700002)(66946007)(66556008)(66476007)(316002)(8936002)(38350700002)(4326008)(956004)(478600001)(6486002)(5660300002)(6666004)(86362001)(6512007)(2616005)(2906002)(8676002)(52116002)(83380400001)(1076003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: UcZaEB/69O1y4zgLkxCQhCENjEjM1scflM2UufyIp/XeWemQli1YBBG6dLvHYFYiD/nLdHEQvg+jxHApThX3KTOZXzX497rSJuybe80GlJJSCM3PNb+PgDXsXkkRBMCJWRo6FvTkluPRTiWBHoiNwYqXYFXBreft16G/f5yg6Cv16gxAFtalGo95pT1FqsbqQ/nqI57lLwAHEtDSag+2fJJ0RFQ6WGfhAgT4YVvROX6YbKcgu4nDdNVn8yOzOV+bl0VY6fxM8qVAtEFFRtt6eEDfcUvQU4jXEB6/Cmgce4YGbY5RXSj17bw5JbAoDdsqFRmZ8qkRE8krgZhZa3iZchNxCuk6UtI3F8Ref0n5E0qweipYwbVz8WH4VZpJE72VRt7Bm/VH5r4ZhUBnI2CGU9XFO0Rbe5qAVs9X1sSGZGgVag2muslKioZnVNOe2x4TsbEnc8p0SCNraHGyEZ2egbzyJsMFDwp7Grn/Ur69rQIa6/ELAWdMYd/Il4zuT+vhQbX8kxxX5iZRD1Pjav2MdkPPb6SORRY2Ho50ZYT4lKHw494zcdnm3sZ3bdZypc/Kf6Xz07XmSVWv7yyOD9tEFnH3J+IGfygjnKvoqtAMfXYvYyd3YmRoqWPU9QECQfmPYayh7TG876TtTGWRGjpz/76giXETW5Wd3+4CnukAaIl4nZnqp+q/UrHfwEVsOvELxOIrCnkbUmqqq88DfRcOQg5/PxwhdgJEolVEGA3Y88tIfPEP6eTYGr5y6CLWW2L9E/oS6Lo1QyxlEkHQdxzIXUdn1dPIFmdOieSSmuMtzHJBX7i1Ofssl4idkF0VEnzXv+hGZfuNJCJD3n6TzV/bbSdHndpeqolvLJx+GoSiKWt2diPceJRcrBsFwhb8lwSv1SnzXSwZYAGcSAZaTHYsBK0J0oPWOjMSClBzRI/rTC+84nhYc9JrgSgz/NVnf9ILWGRaaYL6FK2IbxbwM6gBrTeaY36ZoH6A/uiEpa390VDK5dYgSlV465x4GY+oNG6UCGePLLNjuF0zeShgGkma1MHa8LctAg9k87beAxa3hmTR2cShx+pVJn/yowqYT2RtWgoeAV8gpgsV1vrma4X8P2ohjsKfJiNG511o9s7fV2z5Hou9U/Dz99faxfDCNq/rdVykZe2GwylYHmxGUCTvyFdpUYLuIAPjfjkHnHC+5csMpVrDWtPkzDhCvLt4RITh56KztkyXo6UU+G8LTymFoXA0xCQYCpE9JZ2niUMxuC98+5IV0vo5ACSyXAW3cy5QNzn6eJafKTdC4E0PvMYtSQ2Q8iGuPLurZ92K4sVDOY0z+qt1NQIJHwMuH/lambyN9fUguWfIpT9PHScFyD+Xmg== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35a47b3e-b8b3-4b86-8dc7-08d8fda7fb17 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2021 11:41:59.0044 (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: +UuyjhCcYNpVmRLF32xSOL/oEbdgqXROfRb5K02b1n9nxk7OFVRE62PDNtEJwBNg8/xt1fZrBaRjaSWcAOru8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5244 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.4 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Support i.MX8ULP in fec_mxc Signed-off-by: Peng Fan --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.30.0 Reviewed-by: Ramon Fried diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index cf062fad4d..a443b499ba 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -314,7 +314,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 ec21157d71..57ba856915 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);