From: Brent Lu <brent.lu@intel.com>
To: alsa-devel@alsa-project.org
Cc: Brent Lu <brent.lu@intel.com>,
linux-kernel@vger.kernel.org,
Cezary Rojewski <cezary.rojewski@intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
Liam Girdwood <liam.r.girdwood@linux.intel.com>,
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Ranjani Sridharan <ranjani.sridharan@linux.intel.com>,
Kai Vehmanen <kai.vehmanen@linux.intel.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>, Yong Zhi <yong.zhi@intel.com>,
Ajye Huang <ajye.huang@gmail.com>,
Mac Chiang <mac.chiang@intel.com>,
Vamshi Krishna <vamshi.krishna.gopal@intel.com>,
Rander Wang <rander.wang@intel.com>,
Gongjun Song <gongjun.song@intel.com>,
Muralidhar Reddy <muralidhar.reddy@intel.com>,
"balamurugan . c" <balamurugan.c@intel.com>,
Chao Song <chao.song@linux.intel.com>
Subject: [PATCH 1/2] ASoC: Intel: add helpers to detect SoCs
Date: Wed, 26 Oct 2022 15:14:08 +0800 [thread overview]
Message-ID: <20221026071409.3235144-2-brent.lu@intel.com> (raw)
In-Reply-To: <20221026071409.3235144-1-brent.lu@intel.com>
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(+)
diff --git a/include/linux/platform_data/x86/soc.h b/include/linux/platform_data/x86/soc.h
index da05f425587a..08d08c91d57b 100644
--- a/include/linux/platform_data/x86/soc.h
+++ b/include/linux/platform_data/x86/soc.h
@@ -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 */
--
2.25.1
next prev parent reply other threads:[~2022-10-26 7:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 7:14 [PATCH 0/2] ASoC: Intel: sof_rt5682: quirk auto detection Brent Lu
2022-10-26 7:14 ` Brent Lu [this message]
2022-10-26 7:14 ` [PATCH 2/2] " Brent Lu
2022-10-26 20:34 ` Pierre-Louis Bossart
2022-10-27 0:13 ` Lu, Brent
2022-10-27 1:30 ` Pierre-Louis Bossart
2022-10-27 4:33 ` Lu, Brent
2022-10-27 13:36 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221026071409.3235144-2-brent.lu@intel.com \
--to=brent.lu@intel.com \
--cc=ajye.huang@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=balamurugan.c@intel.com \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=chao.song@linux.intel.com \
--cc=gongjun.song@intel.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mac.chiang@intel.com \
--cc=muralidhar.reddy@intel.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=rander.wang@intel.com \
--cc=ranjani.sridharan@linux.intel.com \
--cc=tiwai@suse.com \
--cc=vamshi.krishna.gopal@intel.com \
--cc=yong.zhi@intel.com \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox