diff --git a/src/platform/imx8/include/platform/lib/clk.h b/src/platform/imx8/include/platform/lib/clk.h index d581aa1c5..6d52972da 100644 --- a/src/platform/imx8/include/platform/lib/clk.h +++ b/src/platform/imx8/include/platform/lib/clk.h @@ -18,8 +18,13 @@ struct sof; #define CPU_DEFAULT_IDX 0 +#ifdef CONFIG_IMX8 #define CLK_DEFAULT_CPU_HZ 666000000 #define CLK_MAX_CPU_HZ 666000000 +#else /* CONFIG_IMX8X */ +#define CLK_DEFAULT_CPU_HZ 640000000 +#define CLK_MAX_CPU_HZ 640000000 +#endif #define NUM_CLOCKS 1 diff --git a/src/platform/imx8/lib/clk.c b/src/platform/imx8/lib/clk.c index ab133fe63..6a2f4773e 100644 --- a/src/platform/imx8/lib/clk.c +++ b/src/platform/imx8/lib/clk.c @@ -14,7 +14,11 @@ #include const struct freq_table platform_cpu_freq[] = { +#ifdef CONFIG_IMX8 { 666000000, 666000 }, +#else /* CONFIG_IMX8X */ + { 640000000, 640000 }, +#endif }; STATIC_ASSERT(NUM_CPU_FREQ == ARRAY_SIZE(platform_cpu_freq),