python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / misc / arm-trusted-firmware / remove-hdcp-blob.patch
blob7f99fbdcabfdc3ba532e0e4aaf97261b5aa36904
1 diff --git a/plat/rockchip/rk3399/drivers/dp/cdn_dp.c b/plat/rockchip/rk3399/drivers/dp/cdn_dp.c
2 index a8773f4f6..8e28c4830 100644
3 --- a/plat/rockchip/rk3399/drivers/dp/cdn_dp.c
4 +++ b/plat/rockchip/rk3399/drivers/dp/cdn_dp.c
5 @@ -13,17 +13,6 @@
7 #include <cdn_dp.h>
9 -__asm__(
10 - ".pushsection .text.hdcp_handler, \"ax\", %progbits\n"
11 - ".global hdcp_handler\n"
12 - ".balign 4\n"
13 - "hdcp_handler:\n"
14 - ".incbin \"" HDCPFW "\"\n"
15 - ".type hdcp_handler, %function\n"
16 - ".size hdcp_handler, .- hdcp_handler\n"
17 - ".popsection\n"
18 -);
20 static uint64_t *hdcp_key_pdata;
21 static struct cdn_dp_hdcp_key_1x key;
23 @@ -38,7 +27,7 @@ uint64_t dp_hdcp_ctrl(uint64_t type)
24 return 0;
25 case HDCP_KEY_DATA_START_DECRYPT:
26 if (hdcp_key_pdata == (uint64_t *)(&key + 1))
27 - return hdcp_handler(&key);
28 + return PSCI_E_DISABLED;
29 else
30 return PSCI_E_INVALID_PARAMS;
31 assert(0); /* Unreachable */
32 diff --git a/plat/rockchip/rk3399/platform.mk b/plat/rockchip/rk3399/platform.mk
33 index a658fb286..5edb6a25b 100644
34 --- a/plat/rockchip/rk3399/platform.mk
35 +++ b/plat/rockchip/rk3399/platform.mk
36 @@ -88,11 +88,6 @@ $(eval $(call add_define_val,RK3399M0PMUFW,\"$(RK3399M0PMUFW)\"))
37 ifdef PLAT_RK_DP_HDCP
38 BL31_SOURCES += ${RK_PLAT_SOC}/drivers/dp/cdn_dp.c
40 -HDCPFW=${RK_PLAT_SOC}/drivers/dp/hdcp.bin
41 -$(eval $(call add_define_val,HDCPFW,\"$(HDCPFW)\"))
43 -${BUILD_PLAT}/bl31/cdn_dp.o: CCACHE_EXTRAFILES=$(HDCPFW)
44 -${RK_PLAT_SOC}/drivers/dp/cdn_dp.c: $(HDCPFW)
45 endif
47 # CCACHE_EXTRAFILES is needed because ccache doesn't handle .incbin