From patchwork Fri Aug 23 16:35:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parthiban Nallathambi X-Patchwork-Id: 1152296 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46FRqF3VHKz9sDQ for ; Sat, 24 Aug 2019 02:36:09 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 0B5B1C22125; Fri, 23 Aug 2019 16:35:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 306F6C220E8; Fri, 23 Aug 2019 16:35:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3ACFFC21C38; Fri, 23 Aug 2019 16:35:22 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by lists.denx.de (Postfix) with ESMTPS id 0EA03C21C29 for ; Fri, 23 Aug 2019 16:35:22 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46FRpK5wckz1rJhk; Fri, 23 Aug 2019 18:35:21 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46FRpK57gDz1qqkq; Fri, 23 Aug 2019 18:35:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id QbRmgULFefwY; Fri, 23 Aug 2019 18:35:20 +0200 (CEST) X-Auth-Info: etJirg2eh+DAUbcpgJH9YqOQ/wdbw+nyDDKoUPD7yEU= Received: from xpert.denx.de (unknown [62.91.23.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 23 Aug 2019 18:35:20 +0200 (CEST) From: Parthiban Nallathambi To: sbabic@denx.de, shyam@amarulasolutions.com, festevam@gmail.com Date: Fri, 23 Aug 2019 18:35:09 +0200 Message-Id: <20190823163510.748006-2-pn@denx.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190823163510.748006-1-pn@denx.de> References: <20190823163510.748006-1-pn@denx.de> MIME-Version: 1.0 Cc: martyn.welch@collabora.com, uboot-imx@nxp.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/3] imx: initialize fec only when enabled X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" board early initialize fec ethernet controller pinmux only when FEC is enabled Signed-off-by: Parthiban Nallathambi Reviewed-by: Peng Fan --- board/phytec/pcl063/pcl063.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/phytec/pcl063/pcl063.c b/board/phytec/pcl063/pcl063.c index f8cbd1c11e..96dd9e38f3 100644 --- a/board/phytec/pcl063/pcl063.c +++ b/board/phytec/pcl063/pcl063.c @@ -178,7 +178,9 @@ int board_phy_config(struct phy_device *phydev) int board_early_init_f(void) { setup_iomux_uart(); +#ifdef CONFIG_FEC_MXC setup_iomux_fec(); +#endif return 0; }