summaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2017-09-11 12:48:16 +0800
committerAbel Vesa <abel.vesa@nxp.com>2018-06-11 10:08:39 +0300
commita7452f263dd020886dc7c85e172b7cebcd2c3e16 (patch)
treeda4b20f25d11af5bf712217366b7fe8e7895ba72 /plat
parent446a2c253433549a454dfd7b9944225ea1c6ea5a (diff)
imx: cpufreq: fix build error using poky tool chain
Fix below build error on i.MX8QXP when using poky tool chain: CC plat/imx/common/cpufreq.c plat/imx/common/cpufreq.c:27:18: error: "ap_cluster_index" defined but not used [-Werror=unused-const-variable=] Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/imx/common/cpufreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/imx/common/cpufreq.c b/plat/imx/common/cpufreq.c
index 75f005dd..5a53e1ce 100644
--- a/plat/imx/common/cpufreq.c
+++ b/plat/imx/common/cpufreq.c
@@ -24,9 +24,11 @@
extern sc_ipc_t ipc_handle;
+#ifdef PLAT_IMX8QM
const static int ap_cluster_index[2] = {
SC_R_A53, SC_R_A72,
};
+#endif
static void imx_cpufreq_set_target(uint32_t cluster_id, unsigned long freq)
{