From patchwork Tue Nov 1 17:25:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 80394 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp739113qge; Tue, 1 Nov 2016 10:28:05 -0700 (PDT) X-Received: by 10.176.2.110 with SMTP id 101mr7798557uas.8.1478021285906; Tue, 01 Nov 2016 10:28:05 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o5si14101715vkd.84.2016.11.01.10.28.05; Tue, 01 Nov 2016 10:28:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0CE5F60C15; Tue, 1 Nov 2016 17:28:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6539460E1D; Tue, 1 Nov 2016 17:26:32 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4028760C15; Tue, 1 Nov 2016 17:26:15 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by lists.linaro.org (Postfix) with ESMTPS id 8703360DE7 for ; Tue, 1 Nov 2016 17:25:43 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id n67so299136297wme.1 for ; Tue, 01 Nov 2016 10:25:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ypP9jK56Vre4vLGnyKXhvm2QJ0VjUD/hnDdrQDqcgv8=; b=HafPU48gn/U015gjPdM9av88+zTWHc24OXKpQ8654odCdmgC/MjZrKTaBqCoax/SF2 J+UadI9dsIVXIyT9nIy0JH3/GZaubjTDU9gwR3WmRLWkOAtVQZo6FxxZC4zHAM4PQ4Bh 2OTw+Qx7EbXcEzSmf/Qew9tqXSLsCsW0qAcbJFYs52cMlK2RyXqo25rvoCKk0ii5SBLw oCwtjq6CTMTRjMASKRC3858HoybdYYBI1/ULNguedSsR2unXKQThvuJJuTtAHLTG7dnS CNq55yC2hmce6qRN560BrIczktSqONTnr5BH1da7q9GVpeyDnQsYxmiCXkfivnb8xhRx zUoQ== X-Gm-Message-State: ABUngveDjPEzWuHfZtDG/nQD9hfBORHI7HjRIDN2QdMO68hIx+QYwy5BN9OgtqwJzAI/JIgvSoo= X-Received: by 10.194.235.103 with SMTP id ul7mr32727126wjc.201.1478021142615; Tue, 01 Nov 2016 10:25:42 -0700 (PDT) Received: from localhost.localdomain ([105.151.153.127]) by smtp.gmail.com with ESMTPSA id za1sm36816240wjb.8.2016.11.01.10.25.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Nov 2016 10:25:41 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org, leo.duran@amd.com, leif.lindholm@linaro.org, alan@softiron.co.uk Date: Tue, 1 Nov 2016 17:25:12 +0000 Message-Id: <1478021115-22781-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478021115-22781-1-git-send-email-ard.biesheuvel@linaro.org> References: <1478021115-22781-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [Linaro-uefi] [PATCH 5/8] Platforms/AMD/Overdrive1000: switch to generic AHCI driver X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" Switch to the new Styx platform SATA driver, which allows the generic platform PCI I/O emulation driver and the generic AHCI driver to be used. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc | 12 +++++------- Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.fdf | 4 +++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc b/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc index 5fd6d841072d..71b60e2789c4 100644 --- a/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc +++ b/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc @@ -216,6 +216,7 @@ DEFINE DO_KCS = 1 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf + PlatformPciIoDeviceRegistrationLib|EmbeddedPkg/Library/PlatformPciIoDeviceRegistrationLib/PlatformPciIoDeviceRegistrationLib.inf [LibraryClasses.common.DXE_RUNTIME_DRIVER] HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf @@ -407,13 +408,8 @@ DEFINE DO_KCS = 1 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|187500000 # - # Bitmask for ports implemented on the SATA controller - # (2 ports active on Overdrive 1000: 0b00000011 = 0x03) + # 2 ports active on Overdrive 1000 # - gAmdStyxTokenSpaceGuid.PcdSataPi|0x03 - - # Only PcdSataPortCount or PcdSata1PortCount are used. The selection is - # made by #define in Drivers/SataControllerDxe/InitController.c gAmdStyxTokenSpaceGuid.PcdSataPortCount|2 gAmdStyxTokenSpaceGuid.PcdSata1PortCount|0 @@ -592,7 +588,9 @@ DEFINE DO_KCS = 1 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf - OpenPlatformPkg/Platforms/AMD/Styx/Drivers/SataControllerDxe/SataControllerDxe.inf + MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf + EmbeddedPkg/Drivers/PlatformPciIoDxe/PlatformPciIoDxe.inf + OpenPlatformPkg/Platforms/AMD/Styx/Drivers/StyxSataPlatformDxe/StyxSataPlatformDxe.inf # # USB Support diff --git a/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.fdf b/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.fdf index 95fd8356cbe2..774d69ce6ea9 100644 --- a/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.fdf +++ b/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.fdf @@ -162,7 +162,9 @@ READ_LOCK_STATUS = TRUE INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf - INF OpenPlatformPkg/Platforms/AMD/Styx/Drivers/SataControllerDxe/SataControllerDxe.inf + INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf + INF EmbeddedPkg/Drivers/PlatformPciIoDxe/PlatformPciIoDxe.inf + INF OpenPlatformPkg/Platforms/AMD/Styx/Drivers/StyxSataPlatformDxe/StyxSataPlatformDxe.inf # # USB Support