Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2638337yba; Fri, 10 May 2019 15:41:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWpphy2go1WXMfV4rLDphSHqoN9q6IKmaUnVhL76OpDE9xqz8IcRZCPNkAwuiinMF9kdPz X-Received: by 2002:a65:478a:: with SMTP id e10mr16764403pgs.310.1557528098947; Fri, 10 May 2019 15:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557528098; cv=none; d=google.com; s=arc-20160816; b=QuJ/ZUSFfphgdUaQCrqrcNLcRdnH5EZ+8vLkYJJXRWxtIzin0XHuY961l+o6QKcOFZ IhLcffMMQJkAWqA2ElwLodLuRlpetXAYVHPMkrNvAr29mfpZ36MQlaitdCF/I4hf9VrN YqCZZtJQMXAHPxZwWJcoYxYc0FIn6VDF51pNhDtmX3LWGSKZZOj/j7JUzDS8wYmDQ+mS Ijul1/Fn3IzuW8Wechru75WdfLa+OazG9Bv4/T1FzuAXySUu/PvqLD1vxKNNygpz0LTp BSuZ00DHtKmq1BbEguNi8YwVHkEHSWcXOAekiPc2fGrZ7GDGfSJ3qBFcrXwQWc1Ywuwi u/IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9SfaLLvXepQRjPBSTX7ofFVM9xFaCs9uEAd6y7Vf/jI=; b=TBOnFIh+MSjPG1eCH091jUmZ2PY7gmawOTNvxwI2/0dlW4Kf/qT8bPP/tPjzkuJ3BC 08OkZMe+gLmJnOw8J0IHDHd6E7PQOhzBNIBjRv+dtaqyw7QlYakmsq7Cib4LddG5KSxI lf5IIKQrbRBdipsu+lYUrWOkNFUG9ldqQ2L8Nzxn4kJ60oDJK8ekkqV62jZgGCSLh3A0 jq1aPnhR0jpE+LKK6+rWbIjz8xyKJ7r6C4PpOgik8Y5jhtIDyR1ff3NfS95qeE2p0C0n uhAyu0PNoiKg1mv+QeLA7RJYgZrICNdaoyUOZ0CfZk7wcJXXz1k8UPaCIux1neAYU+HA VMBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CW3FW1Qa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16si8613982plr.369.2019.05.10.15.41.23; Fri, 10 May 2019 15:41:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CW3FW1Qa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728251AbfEJWju (ORCPT + 99 others); Fri, 10 May 2019 18:39:50 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43244 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727961AbfEJWjs (ORCPT ); Fri, 10 May 2019 18:39:48 -0400 Received: by mail-pf1-f195.google.com with SMTP id c6so3923161pfa.10 for ; Fri, 10 May 2019 15:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9SfaLLvXepQRjPBSTX7ofFVM9xFaCs9uEAd6y7Vf/jI=; b=CW3FW1QaMndV6cwwyiyNA8R53BhYSKmW1OSkoFcainmLy819+8sTqcbkORQZyJkm+j Xv2ZITvIK9F7I695Ipiy4gQ1xDUxh0NYNr8Kjztz40o19XH6MbspMyOdaQVO0Y1twGp7 hRTBhLibmNvg9nBN/yrN6K3nY6blDcUvKTMQM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9SfaLLvXepQRjPBSTX7ofFVM9xFaCs9uEAd6y7Vf/jI=; b=A78dcjeYJ69tJSj5RT6zIPzaQP1XiBrhDI5XhrkB2pUoz1jWoRRnmuKO6B6xEl8H4C uQ6Ywb046GHQTzgmPDo/Xp8Ax4YQJaVyfGXHNP/XHxL4wWnkeecRDuyIMO3tRxvJsv/K 7F6oaqgq9nmn47YzS/bZS6LsyfOYRFRO57E5AZFWUYM2r4IecrRsYfM5L49EQnBe8l0e wAW9BKImuBjTJvXLoeXs7gQuMXbsGU01xkPbC4RjhmVG7PoEycbWBbsJTlZpHv363NqF JiK+fKx0rsvRHFqDS735Agr9ftazuoJNs4GiCWA4InPdsjQFZCJg4EuP0scd/6h8tZcI 33QQ== X-Gm-Message-State: APjAAAUBESPKlJHFEhx63gOXyDP8rQWgBmrYVcUzzqU0h0/vUo2AFpWB 3deYCnvnJf0RUS5Wv2PohGbUiA== X-Received: by 2002:aa7:8a53:: with SMTP id n19mr17229422pfa.11.1557527988266; Fri, 10 May 2019 15:39:48 -0700 (PDT) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id u66sm13300540pfa.36.2019.05.10.15.39.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 May 2019 15:39:47 -0700 (PDT) From: Evan Green To: Liam Girdwood , Mark Brown Cc: Pierre-Louis Bossart , Naveen M , Sathya Prakash , Ben Zhang , Rajat Jain , Evan Green , Jaroslav Kysela , alsa-devel@alsa-project.org, Rakesh Ughreja , Guenter Roeck , Yu Zhao , linux-kernel@vger.kernel.org, Takashi Iwai , Jie Yang Subject: [PATCH v3 2/2] ASoC: Intel: Skylake: Add Cometlake PCI IDs Date: Fri, 10 May 2019 15:39:29 -0700 Message-Id: <20190510223929.165569-3-evgreen@chromium.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190510223929.165569-1-evgreen@chromium.org> References: <20190510223929.165569-1-evgreen@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PCI IDs for Intel CometLake platforms, which from a software point of view are extremely similar to Cannonlake platforms. Signed-off-by: Evan Green --- Changes in v3: - Don't select CML_* in SND_SOC_INTEL_SKYLAKE (Pierre-Louis) Changes in v2: - Add 0x06c8 for CML-H (Pierre-Louis) sound/soc/intel/Kconfig | 16 ++++++++++++++++ sound/soc/intel/skylake/skl-messages.c | 16 ++++++++++++++++ sound/soc/intel/skylake/skl.c | 10 ++++++++++ 3 files changed, 42 insertions(+) diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig index fc1396adde71..b089ed3bf77f 100644 --- a/sound/soc/intel/Kconfig +++ b/sound/soc/intel/Kconfig @@ -165,6 +165,22 @@ config SND_SOC_INTEL_CFL If you have a Intel CoffeeLake platform with the DSP enabled in the BIOS then enable this option by saying Y or m. +config SND_SOC_INTEL_CML_H + tristate "CometLake-H Platforms" + depends on PCI && ACPI + select SND_SOC_INTEL_SKYLAKE_FAMILY + help + If you have a Intel CometLake-H platform with the DSP + enabled in the BIOS then enable this option by saying Y or m. + +config SND_SOC_INTEL_CML_LP + tristate "CometLake-LP Platforms" + depends on PCI && ACPI + select SND_SOC_INTEL_SKYLAKE_FAMILY + help + If you have a Intel CometLake-LP platform with the DSP + enabled in the BIOS then enable this option by saying Y or m. + config SND_SOC_INTEL_SKYLAKE_FAMILY tristate select SND_SOC_INTEL_SKYLAKE_COMMON diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c index 4bf70b4429f0..df01dc952521 100644 --- a/sound/soc/intel/skylake/skl-messages.c +++ b/sound/soc/intel/skylake/skl-messages.c @@ -255,6 +255,22 @@ static const struct skl_dsp_ops dsp_ops[] = { .init_fw = cnl_sst_init_fw, .cleanup = cnl_sst_dsp_cleanup }, + { + .id = 0x02c8, + .num_cores = 4, + .loader_ops = bxt_get_loader_ops, + .init = cnl_sst_dsp_init, + .init_fw = cnl_sst_init_fw, + .cleanup = cnl_sst_dsp_cleanup + }, + { + .id = 0x06c8, + .num_cores = 4, + .loader_ops = bxt_get_loader_ops, + .init = cnl_sst_dsp_init, + .init_fw = cnl_sst_init_fw, + .cleanup = cnl_sst_dsp_cleanup + }, }; const struct skl_dsp_ops *skl_get_dsp_ops(int pci_id) diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index 4ed5b7e17d44..f864f7b3df3a 100644 --- a/sound/soc/intel/skylake/skl.c +++ b/sound/soc/intel/skylake/skl.c @@ -1166,6 +1166,16 @@ static const struct pci_device_id skl_ids[] = { /* CFL */ { PCI_DEVICE(0x8086, 0xa348), .driver_data = (unsigned long)&snd_soc_acpi_intel_cnl_machines}, +#endif +#if IS_ENABLED(CONFIG_SND_SOC_INTEL_CML_LP) + /* CML-LP */ + { PCI_DEVICE(0x8086, 0x02c8), + .driver_data = (unsigned long)&snd_soc_acpi_intel_cnl_machines}, +#endif +#if IS_ENABLED(CONFIG_SND_SOC_INTEL_CML_H) + /* CML-H */ + { PCI_DEVICE(0x8086, 0x06c8), + .driver_data = (unsigned long)&snd_soc_acpi_intel_cnl_machines}, #endif { 0, } }; -- 2.20.1