pine64-pinephone: use patches from crust-firmware's ATF
@@ -23,6 +23,12 @@ let
url = "https://gitlab.com/pine64-org/u-boot/-/commit/${rev}.patch";
};
+ crustATFPatch = rev: sha256: fetchpatch {
+ inherit sha256;
+ name = "arm-trusted-firmware-patch-${rev}.patch";
+ url = "https://github.com/crust-firmware/arm-trusted-firmware/commit/${rev}.patch";
+ };
+
atf = armTrustedFirmwareAllwinner.overrideAttrs(old: rec {
version = "2.5";
src = fetchFromGitHub {
@@ -31,6 +37,14 @@ let
rev = "v${version}";
sha256 = "0w3blkqgmyb5bahlp04hmh8abrflbzy0qg83kmj1x9nv4mw66f3b";
};
+ patches = [
+ # "allwinner: Choose PSCI states to avoid translation"
+ # https://github.com/crust-firmware/arm-trusted-firmware/commit/981a0f37f9c2d8e9cdff5bf34c80c3dd7e1128ae
+ (crustATFPatch "981a0f37f9c2d8e9cdff5bf34c80c3dd7e1128ae" "1d6xq22bgr5w8v1zhr94c0zymizkz20wxicgf469jl7vspirj6pb")
+ # "allwinner: Simplify CPU_SUSPEND power state encoding"
+ # https://github.com/crust-firmware/arm-trusted-firmware/commit/d6ebf5dab2daab8d94c5505704473f3bab3ec4ff
+ (crustATFPatch "d6ebf5dab2daab8d94c5505704473f3bab3ec4ff" "043gxv0s0nx0g9099s0hbijwcjyjbsdf50nakwhs6ndcmrcc6k67")
+ ];
});
in
(buildUBoot {
