[1/2] ASoC: Intel: add helpers to detect SoCs
Commit Message
Add helpers to detect JSL, TGL, ADL, and ADL-N SoCs.
Signed-off-by: Brent Lu <brent.lu@intel.com>
---
include/linux/platform_data/x86/soc.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
@@ -33,6 +33,10 @@ SOC_INTEL_IS_CPU(cht, ATOM_AIRMONT);
SOC_INTEL_IS_CPU(apl, ATOM_GOLDMONT);
SOC_INTEL_IS_CPU(glk, ATOM_GOLDMONT_PLUS);
SOC_INTEL_IS_CPU(cml, KABYLAKE_L);
+SOC_INTEL_IS_CPU(jsl, ATOM_TREMONT_L);
+SOC_INTEL_IS_CPU(tgl, TIGERLAKE_L);
+SOC_INTEL_IS_CPU(adl, ALDERLAKE_L);
+SOC_INTEL_IS_CPU(adl_n, ALDERLAKE_N);
#else /* IS_ENABLED(CONFIG_X86) */
@@ -60,6 +64,26 @@ static inline bool soc_intel_is_cml(void)
{
return false;
}
+
+static inline bool soc_intel_is_jsl(void)
+{
+ return false;
+}
+
+static inline bool soc_intel_is_tgl(void)
+{
+ return false;
+}
+
+static inline bool soc_intel_is_adl(void)
+{
+ return false;
+}
+
+static inline bool soc_intel_is_adl_n(void)
+{
+ return false;
+}
#endif /* IS_ENABLED(CONFIG_X86) */
#endif /* __PLATFORM_DATA_X86_SOC_H */