Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp2352279qtg; Wed, 22 Mar 2023 22:31:59 -0700 (PDT) X-Google-Smtp-Source: AK7set/Khmvslz6y0jAvfc1nZAnX730E+L5Pvm/YVm+n07o0nVKzR5Zjs46cAwj9W9kPsvUVqlhS X-Received: by 2002:a17:903:280d:b0:1a1:9ff6:ca9 with SMTP id kp13-20020a170903280d00b001a19ff60ca9mr4188757plb.28.1679549519562; Wed, 22 Mar 2023 22:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679549519; cv=none; d=google.com; s=arc-20160816; b=yTQR3vLA3iEKDXK8koZugfwdyaD7FRW6gtSHjzhh5D7ksOBdHTnwhjsI8P6Lz0Ecy5 vLTVAZvFkrYKoJ6G1tj07dg16mVk3UE1ry8XL772Gejl0XimqabM+Fj1ebLxFk7O2w+H OUkoqG5qc1L5EoRosXQ/iNo0EfWRUrSbfOeTetMsx1Q/Mz+FRvjKavdYU9X2i4i85GzV ts4s/lcTHTOPSQSw13ZbXq0+PPLxhfHtYc3hFyshpu+k19rks87pMTN1G29Sao4trI/o yuJ5Bfqq9M6h6McNB0im+i1nXuXC0gNBlX4FfWoZ6tAsGhVne32FeVDkL87UN1cVp6MB zpWQ== 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=5xPRb4PqyxsgK4bcewCF6mD1VdCY80DDzSsl52jtUAo=; b=nYzYg6C2dzIlayI1/Aom+jFn3n9bqg56c8T7SD/y7Eq3B2q0Qo1DFurtixyYIcrTwc Y6QHQg+qmMThaWjAvumOcZTwqXTxz+SPrMCDu6r4rgPMYQErqpDuhg7kT819fQcDHmmM zmVPWOg7bXB1V94qPds5DM6TDL9wSo0AWMrI8ztp71BgsWFhOA4VuHAsIHz+t7KaGeDM /SVqRJY0e1n3+lw/qOzf4381Qn7Oez59Tg+j4oZNGDvRGr2/pkCYkbrUQMWEO1NxTIM2 K6CQ7F8maHHRfBo71Far5flEurVJq0kF0gdkqhAFrIbH/WFi2clrrU1e+GTFD0vMiRma 3o5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SRy8m4Pn; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a17090341ca00b001a0505a442esi7874260ple.322.2023.03.22.22.31.47; Wed, 22 Mar 2023 22:31:59 -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=SRy8m4Pn; 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 S229489AbjCWFas (ORCPT + 99 others); Thu, 23 Mar 2023 01:30:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjCWFag (ORCPT ); Thu, 23 Mar 2023 01:30:36 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 538F12211B for ; Wed, 22 Mar 2023 22:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679549417; x=1711085417; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QfbLjJIQPJg7lVSuxR7cbrpfZiSh+vhV76tbkAhqcic=; b=SRy8m4PnMQEK2DDZm2PqgXuaQOU5QDBGmlXNj+E0+Uf9hyKmfZV4wsRN TCyBj603elTq48KKGwS5pIqHdU5uQeqhuHRvIkp67NXtsWTO+KbdkrS40 VEbNi0ImdV7U3M4EhTeFJbnJ9+syX6N+O/EFCp3quv8yV2T5nV7Heau6X 0ndEyi/ve6Vuq6A72ZpLGPeGbLfM/h5BhZ5livPLXRE1A89BsekO0Zs8X etoi9NZ5M2NspReiMrjXEfLkiKNqbkWxRnxwwyDelFwTUVnmSKHQVvzIv kitxk3HUyH9ZSj0uOVxJ2BnrOJo2n+mcWchTG0fIYMHTcnA/VflIIT/T0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="327779297" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="327779297" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 22:29:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="675566992" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="675566992" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 22:29:55 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org, broonie@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com, tiwai@suse.de Subject: [PATCH 03/20] soundwire: intel_ace2x: add empty new ops for LunarLake Date: Thu, 23 Mar 2023 13:44:35 +0800 Message-Id: <20230323054452.1543233-4-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230323054452.1543233-1-yung-chuan.liao@linux.intel.com> References: <20230323054452.1543233-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 From: Pierre-Louis Bossart The register map and programming sequences for the ACE2.x IP are completely different and need to be abstracted with a different set of callbacks. This initial patch adds a new file, follow-up patches will add each required callback. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Reviewed-by: Péter Ujfalusi Reviewed-by: Ranjani Sridharan Signed-off-by: Bard Liao --- drivers/soundwire/Makefile | 2 +- drivers/soundwire/intel_ace2x.c | 19 +++++++++++++++++++ include/linux/soundwire/sdw_intel.h | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 drivers/soundwire/intel_ace2x.c diff --git a/drivers/soundwire/Makefile b/drivers/soundwire/Makefile index 8038e840ac5b..d7212777a927 100644 --- a/drivers/soundwire/Makefile +++ b/drivers/soundwire/Makefile @@ -20,7 +20,7 @@ soundwire-cadence-y := cadence_master.o obj-$(CONFIG_SOUNDWIRE_CADENCE) += soundwire-cadence.o #Intel driver -soundwire-intel-y := intel.o intel_auxdevice.o intel_init.o dmi-quirks.o \ +soundwire-intel-y := intel.o intel_ace2x.o intel_auxdevice.o intel_init.o dmi-quirks.o \ intel_bus_common.o obj-$(CONFIG_SOUNDWIRE_INTEL) += soundwire-intel.o diff --git a/drivers/soundwire/intel_ace2x.c b/drivers/soundwire/intel_ace2x.c new file mode 100644 index 000000000000..623e4fd7db91 --- /dev/null +++ b/drivers/soundwire/intel_ace2x.c @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) +// Copyright(c) 2023 Intel Corporation. All rights reserved. + +/* + * Soundwire Intel ops for LunarLake + */ + +#include +#include +#include +#include +#include +#include "cadence_master.h" +#include "bus.h" +#include "intel.h" + +const struct sdw_intel_hw_ops sdw_intel_lnl_hw_ops = { +}; +EXPORT_SYMBOL_NS(sdw_intel_lnl_hw_ops, SOUNDWIRE_INTEL); diff --git a/include/linux/soundwire/sdw_intel.h b/include/linux/soundwire/sdw_intel.h index 8e6183e029fa..66687e83a94f 100644 --- a/include/linux/soundwire/sdw_intel.h +++ b/include/linux/soundwire/sdw_intel.h @@ -419,5 +419,6 @@ struct sdw_intel_hw_ops { }; extern const struct sdw_intel_hw_ops sdw_intel_cnl_hw_ops; +extern const struct sdw_intel_hw_ops sdw_intel_lnl_hw_ops; #endif -- 2.25.1