From nobody Wed Apr 8 14:23:04 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2093C38A2D for ; Wed, 26 Oct 2022 07:17:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233068AbiJZHRI (ORCPT ); Wed, 26 Oct 2022 03:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbiJZHRB (ORCPT ); Wed, 26 Oct 2022 03:17:01 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D35ABBF0C for ; Wed, 26 Oct 2022 00:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666768621; x=1698304621; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8/eH7Gu81CNmTsHwbaGvDjXLn8pW44OxlFiYMaTQxsk=; b=Syj4QcVBODkR1P8Wvp8U7KKvUFTlfMF/6quq82PZMcbC3jkU5Yl3ip8T p1C+wJLbUoaKQOVYGB1U568JXh9RgzDeMM7QuCT93ASfxdWPo5FSaynmD tNWYbTNuQSCmiVAawhAwYKtnd8OUXb0ikrUO8qPug9x+L5wrT9fM53d6u WAcbLpnlZXcXhPbRBV9o+cPH9FgK7H5CEjznaReDq99EmyVZ8GwaKoLpR wVvasm30e1Di9937a65WESp4ibBrEpJkRgyc30FxtcMgqpGRbrmJfmO5j EuyjN+sqWXBxzD1vAz8fG6V+ysVAjjYPpea7L4CiJ0L41GscmYr1cjmnY g==; X-IronPort-AV: E=McAfee;i="6500,9779,10511"; a="309568977" X-IronPort-AV: E=Sophos;i="5.95,213,1661842800"; d="scan'208";a="309568977" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2022 00:17:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10511"; a="663096914" X-IronPort-AV: E=Sophos;i="5.95,213,1661842800"; d="scan'208";a="663096914" Received: from brentlu-brix.itwn.intel.com ([10.5.253.25]) by orsmga008.jf.intel.com with ESMTP; 26 Oct 2022 00:16:57 -0700 From: Brent Lu To: alsa-devel@alsa-project.org Cc: Brent Lu , linux-kernel@vger.kernel.org, Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , Jaroslav Kysela , Takashi Iwai , Yong Zhi , Ajye Huang , Mac Chiang , Vamshi Krishna , Rander Wang , Gongjun Song , Muralidhar Reddy , "balamurugan . c" , Chao Song Subject: [PATCH 1/2] ASoC: Intel: add helpers to detect SoCs Date: Wed, 26 Oct 2022 15:14:08 +0800 Message-Id: <20221026071409.3235144-2-brent.lu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221026071409.3235144-1-brent.lu@intel.com> References: <20221026071409.3235144-1-brent.lu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add helpers to detect JSL, TGL, ADL, and ADL-N SoCs. Signed-off-by: Brent Lu --- 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); =20 #else /* IS_ENABLED(CONFIG_X86) */ =20 @@ -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) */ =20 #endif /* __PLATFORM_DATA_X86_SOC_H */ --=20 2.25.1