From patchwork Sat Jan 31 09:29:23 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: 44074 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 1DFA32359E for ; Sat, 31 Jan 2015 09:31:04 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id h11sf6585381wiw.1 for ; Sat, 31 Jan 2015 01:31:03 -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=wCkH5cCguOYE/Sc2rUoqQCB2BUdhDK+xVB9nlXto/3c=; b=Mv4WIVmf3/sg0OrVU0f2JmRo+v3cZw+VAYUz7PHzkvG3SMEAMOIl76DVyxHRp4TvwZ aZ2EdYxCQDE9Z4YutAWN5TQRA588DXwXK/dZlfyqn0jHZDYwoL66cbxbUFR/QQdfcUNU PQRnDlvTiW8U2hsO6ErXoGoqn1Pbkjvuwntr2orhSPh6R1eYMwhhjlovfrGgAWfNyqQ6 4qsKoJOtebMM2/IzEDL87DybFMzCdBrPSmXm4Hh9A2zhWVqagIOmUQbXEY2bVQa87VFr guGRONCirOTvcTRQ/TLAr4xc1JZR8hg0KZr4mh7l1oftlGbV0Il7rEAQZ/HqTlD262PT BMMg== X-Gm-Message-State: ALoCoQnbYgHgM9RdV+9JnyBplGoMsbMEAHgf/kKqaLdO1qGQlr9Inq8nIllBFN8xSd31ZMR4Ww1H X-Received: by 10.180.93.165 with SMTP id cv5mr133626wib.6.1422696663352; Sat, 31 Jan 2015 01:31:03 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.116.106 with SMTP id jv10ls512594lab.93.gmail; Sat, 31 Jan 2015 01:31:03 -0800 (PST) X-Received: by 10.152.9.41 with SMTP id w9mr10190197laa.17.1422696663027; Sat, 31 Jan 2015 01:31:03 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id mt5si11996504lbb.59.2015.01.31.01.31.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 31 Jan 2015 01:31:02 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id ge10so28018523lab.11 for ; Sat, 31 Jan 2015 01:31:02 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr10378939lal.29.1422696662893; Sat, 31 Jan 2015 01:31:02 -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 h5csp177397lbj; Sat, 31 Jan 2015 01:31:02 -0800 (PST) X-Received: by 10.107.41.212 with SMTP id p203mr12162871iop.54.1422696660227; Sat, 31 Jan 2015 01:31:00 -0800 (PST) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id g3si3386954icm.47.2015.01.31.01.30.59 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 31 Jan 2015 01:31:00 -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-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YHUO8-0005NO-Bt; Sat, 31 Jan 2015 09:30:48 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YHUO1-0005Mw-SA for edk2-devel@lists.sourceforge.net; Sat, 31 Jan 2015 09:30:41 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.220.45 as permitted sender) client-ip=209.85.220.45; envelope-from=fu.wei@linaro.org; helo=mail-pa0-f45.google.com; Received: from mail-pa0-f45.google.com ([209.85.220.45]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YHUNy-0004kL-LH for edk2-devel@lists.sourceforge.net; Sat, 31 Jan 2015 09:30:41 +0000 Received: by mail-pa0-f45.google.com with SMTP id et14so62027248pad.4 for ; Sat, 31 Jan 2015 01:30:33 -0800 (PST) X-Received: by 10.70.101.4 with SMTP id fc4mr10157393pdb.92.1422696633022; Sat, 31 Jan 2015 01:30:33 -0800 (PST) Received: from localhost.localdomain ([203.175.172.123]) by mx.google.com with ESMTPSA id pp6sm13030773pdb.92.2015.01.31.01.30.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Jan 2015 01:30:32 -0800 (PST) From: fu.wei@linaro.org To: edk2-devel@lists.sourceforge.net, linaro-uefi@lists.linaro.org Date: Sat, 31 Jan 2015 17:29:23 +0800 Message-Id: <1422696566-21807-3-git-send-email-fu.wei@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1422696566-21807-1-git-send-email-fu.wei@linaro.org> References: <=fu.wei@linaro.org> <1422696566-21807-1-git-send-email-fu.wei@linaro.org> X-Spam-Score: -0.3 (/) 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 -1.2 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1YHUNy-0004kL-LH Subject: [edk2] [PATCH v3 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.52 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). If specify "-D EDK2_ENABLE_SMSC_91X=0" build variable or do not specify EDK2_ENABLE_SMSC_91X build variable, the SMSC LAN 91C111 driver will be disabled. 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..486dbe1 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) != 0 + # 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) != 0 +# SMSC LAN 91C111 + EmbeddedPkg/Drivers/Lan91xDxe/Lan91xDxe.inf +!endif # ISP1761 USB OTG Controller EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf