Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6532503rdb; Fri, 15 Dec 2023 00:51:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMl8Gv+nlX4bY6GnFDHfHwJdjO6aPmqVwE6Dr3TKxzvlxOiRPYQ58KD8UVRmF8R/N1Xsk9 X-Received: by 2002:a05:6e02:1c46:b0:35d:6034:8652 with SMTP id d6-20020a056e021c4600b0035d60348652mr11590674ilg.15.1702630312224; Fri, 15 Dec 2023 00:51:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702630312; cv=none; d=google.com; s=arc-20160816; b=y6Qj3ZGUoKuibSxuDkfGII/267TEs6KKVRWKdXucVlleiax7hIysOEbuSeOCER7ose 2zhZGP2Io+Fq5LB+Y46v+XzRNMLPFBqC3eM86e3vANHBSH7i37YgTANlE/F5JrtVl6S/ GMWjEQdfr5j/2YBYKk++4gVclynXXBv21PXoiA1nc4pACyBCG5APhlVhlw0n3LkC9gw+ CezjY/HQCiExqEwSYrnQwf/VLuFGYivpY7zVg78oJrMJnqTy121WdsfMzmiLIRT132DK do6FLAL/w37LWRpu8FAdUXX+Z6jnpLka+IVslU/WBPGLBjKLvbEXqub/AU6MX/jY84Cv utlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AlZ0yPfCWfY4IbaYSapJItZdweXdHbguc8/fHrMzHwk=; fh=5rBzpZn7PAT0VYiaX9jN9uCj/NAgDMXFSHxeShf7eek=; b=LKSnSd24giZ0J8fq2MbLbmvtC0ZmSPJiw+Kw/RFnoms9/88HesX/9AdS2JdHoRw4Dv kPwD4oI2L3XmdZFdc1EBoIMh3H+MImuKXzlLhg8BCUXUm1uXSLrR6oKsGSO1jWfo/m1k THVJcykk5itZrwjlL1QfgTmjNCI3NkInsWItmQTJByOsXeguG+wEy63v5S6excdHoZnm dCH9JwYEny3iile3oZqMX+x2vPuKcr0HzT4pOjk4PHq2Lj0j5+Ef9UXyqj7dY2jffGXF 65xfMR28MtVHbkKSsUYejhEmf3BFMW519cvk1A74Gr3sFaHp7j3gTcCZmDBd6MSlXpy6 MALw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fLSbannm; spf=pass (google.com: domain of linux-kernel+bounces-641-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b13-20020a630c0d000000b005bd0432d9b0si12453576pgl.100.2023.12.15.00.51.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 00:51:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-641-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fLSbannm; spf=pass (google.com: domain of linux-kernel+bounces-641-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1694DB228B3 for ; Fri, 15 Dec 2023 08:51:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F21018C1B; Fri, 15 Dec 2023 08:51:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="fLSbannm" X-Original-To: linux-kernel@vger.kernel.org Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DCFF18B0E for ; Fri, 15 Dec 2023 08:51:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 14e647749b2711eeba30773df0976c77-20231215 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=AlZ0yPfCWfY4IbaYSapJItZdweXdHbguc8/fHrMzHwk=; b=fLSbannml/4NB7YBfdgD4rc81DMwMngfcqwFZTn2xltRjqNnswKSkwinm7K6eqRloVDKvISFAaxFsT64cjduSM6ybz6Mlcla6kcfjFxSppu5JJEtxnaM8xA31pHG45XM0dsDyDtPmpmLlDWedkQKsOILpls1bHUSrgrVQgLYQzA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:11087e7d-a555-492b-8055-fe1d17f1d630,IP:0,U RL:0,TC:0,Content:0,EDM:-30,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-30 X-CID-META: VersionHash:5d391d7,CLOUDID:abe236bd-2ac7-4da2-9f94-677a477649d9,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:2,IP:nil,UR L:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,D KR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 14e647749b2711eeba30773df0976c77-20231215 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 191140931; Fri, 15 Dec 2023 16:51:05 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) 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.1118.26; Fri, 15 Dec 2023 16:51:03 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 15 Dec 2023 16:51:03 +0800 From: Jason-JH.Lin To: Jassi Brar , Chun-Kuang Hu , AngeloGioacchino Del Regno CC: Matthias Brugger , , , , , Jeffrey Kardatzke , Jason-ch Chen , Johnson Wang , "Jason-JH . Lin" , Singo Chang , Nancy Lin , Shawn Sung Subject: [PATCH v2 3/3] mailbox: mtk-cmdq: Add CMDQ driver support for mt8188 Date: Fri, 15 Dec 2023 15:00:26 +0800 Message-ID: <20231215070026.2507-4-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231215070026.2507-1-jason-jh.lin@mediatek.com> References: <20231215070026.2507-1-jason-jh.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Add CMDQ driver support for mt8188 by adding its compatible and driver data in CMDQ driver. Signed-off-by: Jason-JH.Lin --- drivers/mailbox/mtk-cmdq-mailbox.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 39bf066d376e..27ff3a3ccf2f 100644 --- a/drivers/mailbox/mtk-cmdq-mailbox.c +++ b/drivers/mailbox/mtk-cmdq-mailbox.c @@ -735,6 +735,13 @@ static const struct gce_plat gce_plat_mt8186 = { .gce_num = 1 }; +static const struct gce_plat gce_plat_mt8188 = { + .thread_nr = 32, + .shift = 3, + .control_by_sw = true, + .gce_num = 2 +}; + static const struct gce_plat gce_plat_mt8192 = { .thread_nr = 24, .shift = 3, @@ -754,6 +761,7 @@ static const struct of_device_id cmdq_of_ids[] = { {.compatible = "mediatek,mt8173-gce", .data = (void *)&gce_plat_mt8173}, {.compatible = "mediatek,mt8183-gce", .data = (void *)&gce_plat_mt8183}, {.compatible = "mediatek,mt8186-gce", .data = (void *)&gce_plat_mt8186}, + {.compatible = "mediatek,mt8188-gce", .data = (void *)&gce_plat_mt8188}, {.compatible = "mediatek,mt8192-gce", .data = (void *)&gce_plat_mt8192}, {.compatible = "mediatek,mt8195-gce", .data = (void *)&gce_plat_mt8195}, {} -- 2.18.0