1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
5 #include "hfi_platform.h"
7 const struct hfi_platform *hfi_platform_get(enum hfi_version version)
22 hfi_platform_get_codec_vpp_freq(enum hfi_version version, u32 codec, u32 session_type)
24 const struct hfi_platform *plat;
25 unsigned long freq = 0;
27 plat = hfi_platform_get(version);
31 if (plat->codec_vpp_freq)
32 freq = plat->codec_vpp_freq(session_type, codec);
38 hfi_platform_get_codec_vsp_freq(enum hfi_version version, u32 codec, u32 session_type)
40 const struct hfi_platform *plat;
41 unsigned long freq = 0;
43 plat = hfi_platform_get(version);
47 if (plat->codec_vpp_freq)
48 freq = plat->codec_vsp_freq(session_type, codec);
54 hfi_platform_get_codec_lp_freq(enum hfi_version version, u32 codec, u32 session_type)
56 const struct hfi_platform *plat;
57 unsigned long freq = 0;
59 plat = hfi_platform_get(version);
63 if (plat->codec_lp_freq)
64 freq = plat->codec_lp_freq(session_type, codec);