From patchwork Tue Jun 27 13:21:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 106427 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp1199396qge; Tue, 27 Jun 2017 06:24:10 -0700 (PDT) X-Received: by 10.237.48.229 with SMTP id 92mr6028800qtf.156.1498569850649; Tue, 27 Jun 2017 06:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498569850; cv=none; d=google.com; s=arc-20160816; b=eIaPWlLy/QnAGogIJ6P+TyfgTIAIUPVZ1TMy0Gpsr+tOeKqbsrT1IDZCEMATYL4O92 ucONjPdiDSWKJfrypeWzFVpYIWG1vpwY2v05Dd9G1bSjkWf2WUBziYLouR7Xyhq3MxgE 26DZqkbFrQ5+6xHgki1tlhUngI8/pgFTV5dhiaG2gRusDoRU2LX5PFqZNV7ZKF/du3QI heGJNW7DXkG/EoykiPIY7/m37mjQliXAAk8bgZXOvDSlv4CLMMcgUtn5MonolOOzO4nd LdVswOZhUHO5nbI30jjX+26T/5xu2748aulSTvibccxCowb+DcnEsmBy/TYXwgs4Oy6M 6iPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=THGzIkNGT8oI4g3prbErWgAroEf/ROyWzcooTA+pyq0=; b=TLZdpphNB6gyMbuedUfsup3rKv9eAbYfQVPYAOGr4wrRPH3rw67W5Hfq8raSbhIgHy WAVtu02Q5G8S410PndsJN6S8Z/ubA+NtRVuqFrD4EVZ7f6sJFH5o9zAdl+5ja7rVbIPa IdiK9gSGvqLEJ1EtRFLmkfILocBg9mMVo2qZvUECGtwcPBocJZDIg8l3w+YSDQhKlh73 qlcqIPPdPAfV4wOKM2BLw7Z/uEWCtfeutHHRZcWE+CumQD1ojE9bLz9jHADtCAw9cBov ax6jVJyyC/v8A8dTplVulDy0bo6AFod3KjEI0TS2BDPd/phTceCTzJCntTFc7wA2obqt PjCg== ARC-Authentication-Results: i=1; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x34si1602820qte.54.2017.06.27.06.24.10; Tue, 27 Jun 2017 06:24:10 -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 sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 50C5B60D48; Tue, 27 Jun 2017 13:24:10 +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.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM 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 68A1260D58; Tue, 27 Jun 2017 13:22:47 +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 0544E60C20; Tue, 27 Jun 2017 13:22:36 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by lists.linaro.org (Postfix) with ESMTPS id 30B5260CBA for ; Tue, 27 Jun 2017 13:22:08 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id b184so26524887wme.1 for ; Tue, 27 Jun 2017 06:22:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IWPrgtFVuoa0WoJjSBaA3ntQva6zSVPl7i26lhvQwDA=; b=FcZmVd9U4xWUj5ivJaobSYaB0KQ+B37hDS9BCx6sv60EXjGWQRhH/XGAVtp7t2jDVm 9BHr3ARqPTS4y4bg+oTluDn9Zn8mlii9VsHrl9cVvik0Zmg0TCIbpWxTvwHsvcZnZlZ2 sFI4oqK+M4pynawYraTTsngkLol7YA3Qu4PVQj68sZ/9189cv+U6W7V9449Oqvbk7Axe WVUkgsmpz3xATejP4CL81FuGNuIcynqTgTvCUMYAe7lPAfLrxuFXC4XwnSX7BpM7Op6U pel7vj1uy6A+NpQq1/RuJ1Qkr2k/LcBfMuecP5k9VE4FSV27RSTYxxzCjeDvvWMPO9DP ICFw== X-Gm-Message-State: AKS2vOwURnquwOarR67zJ8CrsRtaHlRJSz7rlOgPCKE8k7WkdZvOcNIA 6gCC/WuB3K9jxGn8kS8gfhCO X-Received: by 10.28.203.137 with SMTP id b131mr3633894wmg.50.1498569727046; Tue, 27 Jun 2017 06:22:07 -0700 (PDT) Received: from localhost.localdomain ([105.133.250.69]) by smtp.gmail.com with ESMTPSA id p99sm18801062wrb.6.2017.06.27.06.22.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 06:22:06 -0700 (PDT) From: Ard Biesheuvel To: linaro-uefi@lists.linaro.org Date: Tue, 27 Jun 2017 13:21:41 +0000 Message-Id: <20170627132145.28159-7-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170627132145.28159-1-ard.biesheuvel@linaro.org> References: <20170627132145.28159-1-ard.biesheuvel@linaro.org> Cc: rfranz@cavium.com, alan@softiron.co.uk Subject: [Linaro-uefi] [PATCH v2 06/10] Platforms/AMD/Cello: add device tree support X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "For discussions about Linaro-related UEFI development. Not a substitute for edk2-devel." 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" Now that we have the ability to switch between ACPI and DT support in the UEFI setup menu, let's add DT support to Cello as well. The change is trivial, and it improves the utility of this board for development. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc | 15 ++++++++++++++- Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf | 9 +++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc index 2eec9131a8a8..2b041192c887 100644 --- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc +++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc @@ -558,6 +558,15 @@ DEFINE DO_KCS = 0 AmdModulePkg/Iscp/IscpDxe.inf # + # FDT support + # + EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf { + + FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf + DtPlatformDtbLoaderLib|OpenPlatformPkg/Platforms/AMD/Styx/Library/StyxDtbLoaderLib/StyxDtbLoaderLib.inf + } + + # # PCI support # AmdModulePkg/Gionb/Gionb.inf @@ -610,7 +619,11 @@ DEFINE DO_KCS = 0 # # ACPI Support # - MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf + MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf { + + NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf + } + OpenPlatformPkg/Platforms/AMD/Styx/AcpiTables/AcpiAml.inf OpenPlatformPkg/Platforms/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.inf diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf b/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf index 29103531a224..6f7428f0c4ca 100644 --- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf +++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf @@ -139,6 +139,15 @@ READ_LOCK_STATUS = TRUE INF AmdModulePkg/Iscp/IscpDxe.inf # + # FDT support + # + INF EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf + + FILE FREEFORM = 25462CDA-221F-47DF-AC1D-259CFAA4E326 { + SECTION RAW = OpenPlatformPkg/Platforms/AMD/Styx/OverdriveBoard/FdtBlob/styx-overdrive.dtb + } + + # # PCI support # INF AmdModulePkg/Gionb/Gionb.inf