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
10 - ".pushsection .text.hdcp_handler, \"ax\", %progbits\n"
11 - ".global hdcp_handler\n"
14 - ".incbin \"" HDCPFW "\"\n"
15 - ".type hdcp_handler, %function\n"
16 - ".size hdcp_handler, .- hdcp_handler\n"
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)
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;
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)\"))
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)
47 # CCACHE_EXTRAFILES is needed because ccache doesn't handle .incbin