Commit 781adff2 authored by Mika Westerberg's avatar Mika Westerberg Committed by Lee Jones

x86/platform/intel-mid: Add empty stubs for intel_scu_devices_[create|destroy]()

This allows to call the functions even when CONFIG_X86_INTEL_MID is not
enabled.
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 7713f918
...@@ -88,11 +88,17 @@ static inline bool intel_mid_has_msic(void) ...@@ -88,11 +88,17 @@ static inline bool intel_mid_has_msic(void)
return (intel_mid_identify_cpu() == INTEL_MID_CPU_CHIP_PENWELL); return (intel_mid_identify_cpu() == INTEL_MID_CPU_CHIP_PENWELL);
} }
extern void intel_scu_devices_create(void);
extern void intel_scu_devices_destroy(void);
#else /* !CONFIG_X86_INTEL_MID */ #else /* !CONFIG_X86_INTEL_MID */
#define intel_mid_identify_cpu() 0 #define intel_mid_identify_cpu() 0
#define intel_mid_has_msic() 0 #define intel_mid_has_msic() 0
static inline void intel_scu_devices_create(void) { }
static inline void intel_scu_devices_destroy(void) { }
#endif /* !CONFIG_X86_INTEL_MID */ #endif /* !CONFIG_X86_INTEL_MID */
enum intel_mid_timer_options { enum intel_mid_timer_options {
...@@ -115,9 +121,6 @@ extern enum intel_mid_timer_options intel_mid_timer_options; ...@@ -115,9 +121,6 @@ extern enum intel_mid_timer_options intel_mid_timer_options;
#define SFI_MTMR_MAX_NUM 8 #define SFI_MTMR_MAX_NUM 8
#define SFI_MRTC_MAX 8 #define SFI_MRTC_MAX 8
extern void intel_scu_devices_create(void);
extern void intel_scu_devices_destroy(void);
/* VRTC timer */ /* VRTC timer */
#define MRST_VRTC_MAP_SZ 1024 #define MRST_VRTC_MAP_SZ 1024
/* #define MRST_VRTC_PGOFFSET 0xc00 */ /* #define MRST_VRTC_PGOFFSET 0xc00 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment