Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3801238rwb; Fri, 30 Sep 2022 08:29:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55wh5KDgrwPJbpAzdrCl8Qm+RT6zsh08Y8p7bd5aB2LgKJ/RsygnUvuX8DEVt1IeE+zczh X-Received: by 2002:a17:906:dac3:b0:780:a242:2f14 with SMTP id xi3-20020a170906dac300b00780a2422f14mr6707230ejb.668.1664551792462; Fri, 30 Sep 2022 08:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664551792; cv=none; d=google.com; s=arc-20160816; b=w+1Vm/LRWLg6SlRDdmr6oV/KHPN3TURHB8HC/krirQCOHvds9NxpjbZ1KoTNR/Oms1 R488BtICZjBEfxYJPP2EBnhnNof3XCEVq8288buF4Q3Qtn5HQ5fGgKBzJGQtVvnFRdhu dNbYcfYZ1p1jM5eiUfOBji7HsPLD66z/WLz+lFj/D/pKrTf8dIK04oFCCjX6UiUBXBS4 pfbRYYkzjixMjw/1BcjpVNIl+cmmFXyDKOKyY1ZxM2Vo5+4tAIOQ62CnwhghTkbkKq/Q HgZzNKA4JGn10gJYdu/ZF1kfc9T8cOGEBKtBesGdIOOg6kw1eP+GCenHXjyhzktGWzxO cKEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1KsVmcC21V3+tfYOHCRgEq/NGum7kC4ACYWLIN7w6HM=; b=NJBmnWt6t4zy58mf7zI/dkpdV+1hGSyvN5VduBQqZormNBb1PaWXmpfuG25F1WpdR6 Frpy//vebhEhuyemvMPleA32ZLBF8RHs5VVZctnxjUfQn/2uk1EJPIDMoWDcfPK0mDP4 EewUzPWPzIH+pkdpZpDdfXWOWfr8fZjApBNvrMj41swUFkWdCtKuhqoFCRnuU80Qu4hO Jo6nLZlWjFVYtYKhRpd/MmMfzK1Kbtqk6uDrQioSg71PBb3X2JqG7mJfpzNs15zyTLFH wCO1KgQ18S/uK8sWjGwfu6hlUvPJj+uZa1VqViNx9d3E06XlTxl71D8lHxZVZLsuCFsf SadA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rdMFW+uU; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q25-20020aa7d459000000b004587cd5a5bdsi1783132edr.81.2022.09.30.08.29.27; Fri, 30 Sep 2022 08:29:52 -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=@mediatek.com header.s=dk header.b=rdMFW+uU; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231701AbiI3O5c (ORCPT + 99 others); Fri, 30 Sep 2022 10:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbiI3O5V (ORCPT ); Fri, 30 Sep 2022 10:57:21 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24E9C8A1FB; Fri, 30 Sep 2022 07:57:16 -0700 (PDT) X-UUID: e300753390f04e6b87c20ae6c7f92468-20220930 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=1KsVmcC21V3+tfYOHCRgEq/NGum7kC4ACYWLIN7w6HM=; b=rdMFW+uUAmp2hF84G5kvREZ+KRehK/Jy4PR3xInDxtqLWEMgfTCQ5vcBE0rDnWcvD+0jlR6Bp3zpLTKa3obotS1ExlTCujruabnh5jPa2j9VshGq/OCOyh0jQ5qe4MtsDEvpXf6qaXS1gbjzlUcO8tGXmWFsdNPFe/DkKdODzRU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:d06da9fb-3797-496d-9b31-a465b5b1dee5,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.11,REQID:d06da9fb-3797-496d-9b31-a465b5b1dee5,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:39a5ff1,CLOUDID:ee0bcde4-87f9-4bb0-97b6-34957dc0fbbe,B ulkID:220930225711QLY7OQ5I,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48|823| 824,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil, COL:0 X-UUID: e300753390f04e6b87c20ae6c7f92468-20220930 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1542263875; Fri, 30 Sep 2022 22:57:09 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 30 Sep 2022 22:57:08 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 30 Sep 2022 22:57:07 +0800 From: Trevor Wu To: , , , , CC: , , , , , Subject: [PATCH 01/12] ASoC: mediatek: common: add SMC ops ID Date: Fri, 30 Sep 2022 22:56:50 +0800 Message-ID: <20220930145701.18790-2-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220930145701.18790-1-trevor.wu@mediatek.com> References: <20220930145701.18790-1-trevor.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_CSS 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 SMC call is required to communicate with ATF for some secure operations, so we add SMC ops IDs to common header. Signed-off-by: Trevor Wu --- sound/soc/mediatek/common/mtk-base-afe.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sound/soc/mediatek/common/mtk-base-afe.h b/sound/soc/mediatek/common/mtk-base-afe.h index ef83e78c22a8..d33c2a3f54a9 100644 --- a/sound/soc/mediatek/common/mtk-base-afe.h +++ b/sound/soc/mediatek/common/mtk-base-afe.h @@ -11,6 +11,22 @@ #define MTK_STREAM_NUM (SNDRV_PCM_STREAM_LAST + 1) +/* SMC CALL Operations */ +enum mtk_audio_smc_call_op { + MTK_AUDIO_SMC_OP_INIT = 0, + MTK_AUDIO_SMC_OP_DRAM_REQUEST, + MTK_AUDIO_SMC_OP_DRAM_RELEASE, + MTK_AUDIO_SMC_OP_SRAM_REQUEST, + MTK_AUDIO_SMC_OP_SRAM_RELEASE, + MTK_AUDIO_SMC_OP_ADSP_REQUEST, + MTK_AUDIO_SMC_OP_ADSP_RELEASE, + MTK_AUDIO_SMC_OP_DOMAIN_SIDEBANDS, + MTK_AUDIO_SMC_OP_BTCVSD_WRITE, + MTK_AUDIO_SMC_OP_BTCVSD_UPDATE_CTRL_CLEAR, + MTK_AUDIO_SMC_OP_BTCVSD_UPDATE_CTRL_UNDERFLOW, + MTK_AUDIO_SMC_OP_NUM +}; + struct mtk_base_memif_data { int id; const char *name; -- 2.18.0