From patchwork Tue Jan 27 02:08:16 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: 43806 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E8B2423FFF for ; Tue, 27 Jan 2015 02:09:11 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id h11sf903266wiw.1 for ; Mon, 26 Jan 2015 18:09:11 -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=uBSPIEeQnIDQfuUMN61AA6I6Wu46GEaAGVe9nSHZmQ8=; b=gtwv3ybylgqDe9jra3I8/bXot62Y3CE4+ZAHEah23vu2E3hDYR1xfsB1R6OQWV1S1D kwqXPLYI7Tft71GRcSbb69k1VS0AchIFzqThStbwGeogvj0RXhCYMLMdp0kXB3vKQ3Px dw+rMNP2zBKGha4GlHdawt0cwxg/RYYkUcKIezP+g+IJfyX4dhI65aYkVjrWYcXSaQuJ cw5oRrvW70ePP2HybcxVb5vOMrQ28nlUjvGKdjMeG/ztc+gYOSKCDdxY5KbHhITFddCd AJVfWATNozgP5yxQyrUMWWCeEZt97HLgMd2PMPqxGpBA457+4cH6gcuU7G+3Tjl0zae8 5E4A== X-Gm-Message-State: ALoCoQkHq+TLGVnwJCE7nlVwjwjE1CBQFgGloHcc01ApHiiuDNFNySUg5gR4J/xaWKIE0BUA3ys2 X-Received: by 10.112.163.42 with SMTP id yf10mr138916lbb.8.1422324551147; Mon, 26 Jan 2015 18:09:11 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.232 with SMTP id h8ls619744lam.3.gmail; Mon, 26 Jan 2015 18:09:11 -0800 (PST) X-Received: by 10.152.244.163 with SMTP id xh3mr1355459lac.25.1422324550999; Mon, 26 Jan 2015 18:09:10 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id t9si10587845laj.101.2015.01.26.18.09.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Jan 2015 18:09:10 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id gf13so10847849lab.8 for ; Mon, 26 Jan 2015 18:09:10 -0800 (PST) X-Received: by 10.112.84.225 with SMTP id c1mr1375849lbz.22.1422324550551; Mon, 26 Jan 2015 18:09:10 -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 h5csp954112lbj; Mon, 26 Jan 2015 18:09:09 -0800 (PST) X-Received: by 10.42.200.136 with SMTP id ew8mr419536icb.59.1422324548645; Mon, 26 Jan 2015 18:09:08 -0800 (PST) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id rv8si8492475igb.30.2015.01.26.18.09.07 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 26 Jan 2015 18:09:08 -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 1YFvaK-0006Rk-TK; Tue, 27 Jan 2015 02:08:56 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YFvaI-0006Rf-WB for edk2-devel@lists.sourceforge.net; Tue, 27 Jan 2015 02:08:55 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.192.171 as permitted sender) client-ip=209.85.192.171; envelope-from=fu.wei@linaro.org; helo=mail-pd0-f171.google.com; Received: from mail-pd0-f171.google.com ([209.85.192.171]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YFvaH-00072S-36 for edk2-devel@lists.sourceforge.net; Tue, 27 Jan 2015 02:08:55 +0000 Received: by mail-pd0-f171.google.com with SMTP id fp1so15777762pdb.2 for ; Mon, 26 Jan 2015 18:08:48 -0800 (PST) X-Received: by 10.66.124.225 with SMTP id ml1mr38739767pab.142.1422324528457; Mon, 26 Jan 2015 18:08:48 -0800 (PST) Received: from localhost.localdomain ([103.6.85.74]) by mx.google.com with ESMTPSA id wy1sm10932361pbc.5.2015.01.26.18.08.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jan 2015 18:08:47 -0800 (PST) From: fu.wei@linaro.org To: edk2-devel@lists.sourceforge.net, linaro-uefi@lists.linaro.org Date: Tue, 27 Jan 2015 10:08:16 +0800 Message-Id: <1422324499-8587-3-git-send-email-fu.wei@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1422324499-8587-1-git-send-email-fu.wei@linaro.org> References: <=fu.wei@linaro.org> <1422324499-8587-1-git-send-email-fu.wei@linaro.org> X-Spam-Score: 0.8 (/) 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 -0.2 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1YFvaH-00072S-36 Subject: [edk2] [PATCH 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.215.49 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. 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..17b6f93 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc @@ -377,6 +377,11 @@ # Shell. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE +!ifdef EDK2_ENABLE_SMSC_91X + # 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 +!ifdef EDK2_ENABLE_SMSC_91X +# SMSC LAN 91C111 + EmbeddedPkg/Drivers/Lan91xDxe/Lan91xDxe.inf +!endif # ISP1761 USB OTG Controller EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf