Commit 37205e51 authored by Pratham Patel's avatar Pratham Patel Committed by K900
Browse files

arm-trusted-firmware: add RK3588

parent fbc6f1e6
Loading
Loading
Loading
Loading
+20 −1
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, openssl, pkgsCross, buildPackages
{ lib, stdenv, fetchFromGitHub, fetchFromGitLab, openssl, pkgsCross, buildPackages

# Warning: this blob (hdcp.bin) runs on the main CPU (not the GPU) at
# privilege level EL3, which is above both the kernel and the
@@ -151,6 +151,25 @@ in {
    platformCanUseHDCPBlob = true;
  };

  armTrustedFirmwareRK3588 = buildArmTrustedFirmware rec {
    extraMakeFlags = [ "bl31" ];
    platform = "rk3588";
    extraMeta.platforms = ["aarch64-linux"];
    filesToInstall = [ "build/${platform}/release/bl31/bl31.elf"];
    platformCanUseHDCPBlob = true;

    # TODO: remove this once the following get merged:
    # 1: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/21840
    # 2: https://review.trustedfirmware.org/c/ci/tf-a-ci-scripts/+/21833
    src = fetchFromGitLab {
      domain = "gitlab.collabora.com";
      owner = "hardware-enablement/rockchip-3588";
      repo = "trusted-firmware-a";
      rev = "002d8e85ce5f4f06ebc2c2c52b4923a514bfa701";
      hash = "sha256-1XOG7ILIgWa3uXUmAh9WTfSGLD/76OsmWrUhIxm/zTg=";
    };
  };

  armTrustedFirmwareS905 = buildArmTrustedFirmware rec {
    extraMakeFlags = [ "bl31" ];
    platform = "gxbb";
+1 −0
Original line number Diff line number Diff line
@@ -27155,6 +27155,7 @@ with pkgs;
    armTrustedFirmwareQemu
    armTrustedFirmwareRK3328
    armTrustedFirmwareRK3399
    armTrustedFirmwareRK3588
    armTrustedFirmwareS905
    ;