Skip to content

Commit 6865ed7

Browse files
committed
Merge tag 'imx-fixes-6.17-2' of https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
i.MX fixes for 6.17, round 2: - Fix mach-imx Kconfig to select the correct PIT timer option (Lukas Bulwahn) - Correct thermal sensor index for i.MX8MP device tree (Peng Fan) - Fix i.MX SCMI build error by adding stub API functions (Peng Fan) * tag 'imx-fixes-6.17-2' of https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: arm64: dts: imx8mp: Correct thermal sensor index ARM: imx: Kconfig: Adjust select after renamed config option firmware: imx: Add stub functions for SCMI CPU API firmware: imx: Add stub functions for SCMI LMM API firmware: imx: Add stub functions for SCMI MISC API Link: https://lore.kernel.org/r/aMQs2zr4fYl2DYVr@dragon Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 32687c0 + a50342f commit 6865ed7

3 files changed

Lines changed: 50 additions & 3 deletions

File tree

arch/arm/mach-imx/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ choice
242242

243243
config VF_USE_PIT_TIMER
244244
bool "Use PIT timer"
245-
select VF_PIT_TIMER
245+
select NXP_PIT_TIMER
246246
help
247247
Use SoC Periodic Interrupt Timer (PIT) as clocksource
248248

arch/arm64/boot/dts/freescale/imx8mp.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
cpu-thermal {
299299
polling-delay-passive = <250>;
300300
polling-delay = <2000>;
301-
thermal-sensors = <&tmu 0>;
301+
thermal-sensors = <&tmu 1>;
302302
trips {
303303
cpu_alert0: trip0 {
304304
temperature = <85000>;
@@ -331,7 +331,7 @@
331331
soc-thermal {
332332
polling-delay-passive = <250>;
333333
polling-delay = <2000>;
334-
thermal-sensors = <&tmu 1>;
334+
thermal-sensors = <&tmu 0>;
335335
trips {
336336
soc_alert0: trip0 {
337337
temperature = <85000>;

include/linux/firmware/imx/sm.h

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,43 @@
2626
#define SCMI_IMX94_CTRL_SAI3_MCLK 5U /*!< WAKE SAI3 MCLK */
2727
#define SCMI_IMX94_CTRL_SAI4_MCLK 6U /*!< WAKE SAI4 MCLK */
2828

29+
#if IS_ENABLED(CONFIG_IMX_SCMI_MISC_DRV)
2930
int scmi_imx_misc_ctrl_get(u32 id, u32 *num, u32 *val);
3031
int scmi_imx_misc_ctrl_set(u32 id, u32 val);
32+
#else
33+
static inline int scmi_imx_misc_ctrl_get(u32 id, u32 *num, u32 *val)
34+
{
35+
return -EOPNOTSUPP;
36+
}
3137

38+
static inline int scmi_imx_misc_ctrl_set(u32 id, u32 val)
39+
{
40+
return -EOPNOTSUPP;
41+
}
42+
#endif
43+
44+
#if IS_ENABLED(CONFIG_IMX_SCMI_CPU_DRV)
3245
int scmi_imx_cpu_start(u32 cpuid, bool start);
3346
int scmi_imx_cpu_started(u32 cpuid, bool *started);
3447
int scmi_imx_cpu_reset_vector_set(u32 cpuid, u64 vector, bool start, bool boot,
3548
bool resume);
49+
#else
50+
static inline int scmi_imx_cpu_start(u32 cpuid, bool start)
51+
{
52+
return -EOPNOTSUPP;
53+
}
54+
55+
static inline int scmi_imx_cpu_started(u32 cpuid, bool *started)
56+
{
57+
return -EOPNOTSUPP;
58+
}
59+
60+
static inline int scmi_imx_cpu_reset_vector_set(u32 cpuid, u64 vector, bool start,
61+
bool boot, bool resume)
62+
{
63+
return -EOPNOTSUPP;
64+
}
65+
#endif
3666

3767
enum scmi_imx_lmm_op {
3868
SCMI_IMX_LMM_BOOT,
@@ -44,7 +74,24 @@ enum scmi_imx_lmm_op {
4474
#define SCMI_IMX_LMM_OP_FORCEFUL 0
4575
#define SCMI_IMX_LMM_OP_GRACEFUL BIT(0)
4676

77+
#if IS_ENABLED(CONFIG_IMX_SCMI_LMM_DRV)
4778
int scmi_imx_lmm_operation(u32 lmid, enum scmi_imx_lmm_op op, u32 flags);
4879
int scmi_imx_lmm_info(u32 lmid, struct scmi_imx_lmm_info *info);
4980
int scmi_imx_lmm_reset_vector_set(u32 lmid, u32 cpuid, u32 flags, u64 vector);
81+
#else
82+
static inline int scmi_imx_lmm_operation(u32 lmid, enum scmi_imx_lmm_op op, u32 flags)
83+
{
84+
return -EOPNOTSUPP;
85+
}
86+
87+
static inline int scmi_imx_lmm_info(u32 lmid, struct scmi_imx_lmm_info *info)
88+
{
89+
return -EOPNOTSUPP;
90+
}
91+
92+
static inline int scmi_imx_lmm_reset_vector_set(u32 lmid, u32 cpuid, u32 flags, u64 vector)
93+
{
94+
return -EOPNOTSUPP;
95+
}
96+
#endif
5097
#endif

0 commit comments

Comments
 (0)