diff mbox

[Linaro-uefi,2/2] Platforms/AMD/CelloBoard: add Renesas PD720202 firmware downloader

Message ID 1472555890-29179-3-git-send-email-ard.biesheuvel@linaro.org
State Superseded
Headers show

Commit Message

Ard Biesheuvel Aug. 30, 2016, 11:18 a.m. UTC
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc |  4 ++++
 Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf | 10 ++++++++++
 2 files changed, 14 insertions(+)

Comments

Ard Biesheuvel Sept. 1, 2016, 4:23 p.m. UTC | #1
On 30 August 2016 at 12:18, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> ---
>  Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc |  4 ++++
>  Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf | 10 ++++++++++
>  2 files changed, 14 insertions(+)
>
> diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
> index 01ad69708237..36d675a9939b 100644
> --- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
> +++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
> @@ -654,3 +654,7 @@ DEFINE DO_KCS    = 0
>        gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
>        gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
>    }
> +
> +!ifdef $(RENESAS_XHCI_FW_DIR)
> +  OpenPlatformPkg/Drivers/Xhci/RenesasFirmwarePD720202/RenesasFirmwarePD720202.inf
> +!endif
> diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf b/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf
> index 3b2116756439..436e445389f2 100644
> --- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf
> +++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf
> @@ -217,6 +217,16 @@ READ_LOCK_STATUS   = TRUE
>    #
>    INF OpenPlatformPkg/Platforms/AMD/Styx/Drivers/StyxRngDxe/StyxRngDxe.inf
>
> +  #
> +  # Renesas PD720202 XHCI firmware uploader, requires firmware image
> +  # in directory $(RENESAS_XHCI_FW_DIR)
> +  #
> +!ifdef $(RENESAS_XHCI_FW_DIR)
> +  INF OpenPlatformPkg/Drivers/Xhci/RenesasFirmwarePD720202/RenesasFirmwarePD720202.inf
> +  FILE FREEFORM = A059EBC4-D73D-4279-81BF-E4A89308B923 {

I may have fudged the GUID here ^^^^

> +    SECTION RAW = $(RENESAS_XHCI_FW_DIR)/K2013080.mem
> +  }
> +!endif
>
>  [FV.STYX_EFI]
>  FvAlignment        = 16
> --
> 2.7.4
>
diff mbox

Patch

diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
index 01ad69708237..36d675a9939b 100644
--- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
+++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
@@ -654,3 +654,7 @@  DEFINE DO_KCS    = 0
       gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
       gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
   }
+
+!ifdef $(RENESAS_XHCI_FW_DIR)
+  OpenPlatformPkg/Drivers/Xhci/RenesasFirmwarePD720202/RenesasFirmwarePD720202.inf
+!endif
diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf b/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf
index 3b2116756439..436e445389f2 100644
--- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf
+++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.fdf
@@ -217,6 +217,16 @@  READ_LOCK_STATUS   = TRUE
   #
   INF OpenPlatformPkg/Platforms/AMD/Styx/Drivers/StyxRngDxe/StyxRngDxe.inf
 
+  #
+  # Renesas PD720202 XHCI firmware uploader, requires firmware image
+  # in directory $(RENESAS_XHCI_FW_DIR)
+  #
+!ifdef $(RENESAS_XHCI_FW_DIR)
+  INF OpenPlatformPkg/Drivers/Xhci/RenesasFirmwarePD720202/RenesasFirmwarePD720202.inf
+  FILE FREEFORM = A059EBC4-D73D-4279-81BF-E4A89308B923 {
+    SECTION RAW = $(RENESAS_XHCI_FW_DIR)/K2013080.mem
+  }
+!endif
 
 [FV.STYX_EFI]
 FvAlignment        = 16