From patchwork Wed Oct 26 07:14:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent Lu X-Patchwork-Id: 11088 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp106546wru; Wed, 26 Oct 2022 00:25:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Iq5YdTNpUzobXZMg2aqpITRZV8F19wrpT4VWhwBtANSwvq+v4Yf3kZy4CrwV/Ik+z/NkF X-Received: by 2002:a05:6402:42cf:b0:457:ae6f:e443 with SMTP id i15-20020a05640242cf00b00457ae6fe443mr40069351edc.299.1666769125169; Wed, 26 Oct 2022 00:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666769125; cv=none; d=google.com; s=arc-20160816; b=Z1SfNbta816sDQB1JuXfUhbSs6ecZgjrubpVq5P3YGSAtJ3P8jCZ8+aWMmGwk0RX50 +zoyMNsM88Mvw7n1nxj1WMp4lFvEx9rWtODpLW11Ubu6jfryJ2idKaFfxoptCIVPb9+i K63dfzOthIZ/AbOd78xcvpEjgY1OvilDMnF4fvKvZtnRlBfFaHUdEvFxmuQCWSc0qMh9 swLoqsI7jqRwd7bd75FXLJ51jwnZpLlIBPCzPtF5rgGFIuZP7fWnjWFwVBx/El8P53t7 mfBPKhIyDmjwJvsrKL1xfrX7FCp7rxSbbcOiwmZrSwu+KDjzKrV2k/fusiK345WDswrA ttIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YPnoQY1Ek59a3b0LGUr7IgX036gnL4mAmxzFJBNRHj0=; b=hOKev1Eh+rauAVSwW+B8ua2ZdPktkkRQQmau6zDMvrUJi8giv64ZuVqzUONFp0ZSAc nl/5RjHAxNebViS/Vrp9BGX8TqPKyGoXwjzNej0aKrdg0djScWMU4JY7n/FwO88lP9yB uRb3FdOGdue5GBydN9yb6H8fNo+GEsQjp0HxgN7nvn6gIFIfPAI504Kflis4NJ3+7INF 9GjdrP0x5Bt34g7MREepPoi794D5CuGtO04xej7xH1VLHNZJsOEYwFydYJ5LEsHS9SZh phBRRt0ckTjubJQizc1DJfSOKZzHKZTcPnIUvgS5oKN6oXj9eQYGxbOuGxBaOdfSynA6 QXEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Syj4QcVB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p20-20020a170906785400b007835897050esi3748655ejm.404.2022.10.26.00.25.00; Wed, 26 Oct 2022 00:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Syj4QcVB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233066AbiJZHRH (ORCPT + 99 others); Wed, 26 Oct 2022 03:17:07 -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 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747734102388557749?= X-GMAIL-MSGID: =?utf-8?q?1747734102388557749?= 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); #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 */