From patchwork Thu Jan 29 18:44:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fu Wei Fu X-Patchwork-Id: 43971 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BB98624128 for ; Thu, 29 Jan 2015 18:45:47 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf23061373lbv.1 for ; Thu, 29 Jan 2015 10:45:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=gdrObnG8frPPqS3ctUYv3pv3rTh347k3lYB6VIQwno4=; b=HIZ1Af/ElyTU4LZiQE0bgw2EUZ+vtz2MH7fBgKx4MgLUzGx9uXA1xbz9+VwStkZiQK ncU9O6aUSofjRRu0/mGDF9iJi0HM4A7yq+gKvtPdqt487MZgWA2wBbgQltCLRtzX7Y8p neNeaLjtdWP9T8o2Sji5VyFtO2fwTNpxKvtPX+E55flFMw60I6V5OzQBO2N06PPDe6Wy oJ0CcvgUZ2tw1fLg1kHllaWVXt3ffv3hRmcFkW1IKlf/CaTPEyAR8VuC+kXSWZpnc2/Z cuN9ek983T7hGgld9blTFIOy8Sa+SMtxmZtf8JJbM2xRhqQfJL6T65PMgeKBao4oIEAc GyBA== X-Gm-Message-State: ALoCoQk7PFdHPu2P781GKmyyfLJ2vVlb6U2UVY+6zPpYPWQ7A5QJPaJJEmZBDSCC6JhPgmwtMPdy X-Received: by 10.112.133.98 with SMTP id pb2mr326121lbb.2.1422557146645; Thu, 29 Jan 2015 10:45:46 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.170 with SMTP id d10ls306679lad.37.gmail; Thu, 29 Jan 2015 10:45:46 -0800 (PST) X-Received: by 10.112.218.8 with SMTP id pc8mr2716380lbc.16.1422557146491; Thu, 29 Jan 2015 10:45:46 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id xk2si8185090lac.117.2015.01.29.10.45.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 10:45:46 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id z12so31346234lbi.7 for ; Thu, 29 Jan 2015 10:45:46 -0800 (PST) X-Received: by 10.112.180.135 with SMTP id do7mr2569853lbc.23.1422557146310; Thu, 29 Jan 2015 10:45:46 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp38568lbj; Thu, 29 Jan 2015 10:45:45 -0800 (PST) X-Received: by 10.107.7.153 with SMTP id g25mr2438202ioi.47.1422557144729; Thu, 29 Jan 2015 10:45:44 -0800 (PST) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id e82si3618056iod.43.2015.01.29.10.45.44 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 29 Jan 2015 10:45:44 -0800 (PST) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YGu5t-0000oW-2S; Thu, 29 Jan 2015 18:45:33 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YGu5r-0000oL-Os for edk2-devel@lists.sourceforge.net; Thu, 29 Jan 2015 18:45:31 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.220.52 as permitted sender) client-ip=209.85.220.52; envelope-from=fu.wei@linaro.org; helo=mail-pa0-f52.google.com; Received: from mail-pa0-f52.google.com ([209.85.220.52]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YGu5q-0007vv-EX for edk2-devel@lists.sourceforge.net; Thu, 29 Jan 2015 18:45:31 +0000 Received: by mail-pa0-f52.google.com with SMTP id kx10so42239979pab.11 for ; Thu, 29 Jan 2015 10:45:25 -0800 (PST) X-Received: by 10.68.68.235 with SMTP id z11mr2973997pbt.60.1422557125822; Thu, 29 Jan 2015 10:45:25 -0800 (PST) Received: from localhost.localdomain ([116.251.221.227]) by mx.google.com with ESMTPSA id tn2sm706164pbc.15.2015.01.29.10.45.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jan 2015 10:45:25 -0800 (PST) From: fu.wei@linaro.org To: edk2-devel@lists.sourceforge.net, linaro-uefi@lists.linaro.org Date: Fri, 30 Jan 2015 02:44:59 +0800 Message-Id: <1422557102-2921-3-git-send-email-fu.wei@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422557102-2921-1-git-send-email-fu.wei@linaro.org> References: <=fu.wei@linaro.org> <1422557102-2921-1-git-send-email-fu.wei@linaro.org> X-Spam-Score: 1.0 (+) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record 2.5 SUSPICIOUS_RECIPS Similar addresses in recipient list X-Headers-End: 1YGu5q-0007vv-EX Subject: [edk2] [PATCHv2 2/5] ArmPlatformPkg: Add conditional inclusion of Lan91x ethernet support X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: fu.wei@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Leif Lindholm This patch adds support for including the SMSC LAN 91C111 driver support (as provided by the ARM Ltd. software models) by specifying the EDK2_ENABLE_SMSC_91X build variable. If build with "-D EDK2_ENABLE_SMSC_91X=1" , the driver will be added. A per-platform addition to the .fdf is also required to actually include the driver, and network protocol support, in the produced image. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm Signed-off-by: Ryan Harkin [submitting patch upstream] Signed-off-by: Fu Wei --- .../ArmVExpressPkg/ArmVExpress-networking.fdf.inc | 28 ++++++++++++++++++++++ ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc | 9 +++++++ 2 files changed, 37 insertions(+) diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-networking.fdf.inc b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-networking.fdf.inc new file mode 100644 index 0000000..3b6d161 --- /dev/null +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-networking.fdf.inc @@ -0,0 +1,28 @@ +# +# Copyright (c) 2012-2014, ARM Limited. All rights reserved. +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions +# of the BSD License which accompanies this distribution. +# The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# + + # + # Networking stack + # + INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf + INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf + INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf + INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf + INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf + INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf + INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf + INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf + INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf + INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf + INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf + INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc index ddc796d..e2e5d7d 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc @@ -377,6 +377,11 @@ # Shell. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE +!if $(EDK2_ENABLE_SMSC_91X) == 1 + # Ethernet (SMSC 91C111) + gEmbeddedTokenSpaceGuid.PcdLan91xDxeBaseAddress|0x1A000000 +!endif + [Components.common] # Versatile Express FileSystem ArmPlatformPkg/FileSystem/BootMonFs/BootMonFs.inf @@ -396,6 +401,10 @@ MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf +!if $(EDK2_ENABLE_SMSC_91X) == 1 +# SMSC LAN 91C111 + EmbeddedPkg/Drivers/Lan91xDxe/Lan91xDxe.inf +!endif # ISP1761 USB OTG Controller EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf