Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4906687pxv; Tue, 27 Jul 2021 21:01:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK1uo2jE7HJq7j9ABk69LBAg/SEL5TNF0iZtPWE5/4TNSwPmQd1g/1KTLbLcDzQ3EdUY9f X-Received: by 2002:a05:6402:48f:: with SMTP id k15mr31093615edv.262.1627444907240; Tue, 27 Jul 2021 21:01:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627444907; cv=none; d=google.com; s=arc-20160816; b=pRFm3zKtgVv3wF4TmgEG1UETilogoEZZetyeK3OY64KFN62B38AMCeBosNnse9AV/M D5R54YJUieSRWGtcGg+O2uIHORXMuxQo0DeRHSlSi5xF1s2jRM5hUbFIREYM14MHvmHB qt1GMJ+AFMvguR/fVfz5xHfovboK/+YcWDoT5U4679hpM7U5UMyZI4/+HUIwuNSK0kuv h4+1cR5JwY9SyzP9aQiznPsJW55mLVWAHM8QIGStcqpYnPYRT5bLtMr0ZmEmTkn4GluV PBfinOSg/oA+TI6zSZmB3wAkQRVCzWVNATRPXreu0GzHQNrUIDnAk75cw5tAbn+AIKxf bwNg== 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; bh=4JatMUqRVf4IW9iMHhD+Cs3tm8jlvmSIQvtOsfbT5/o=; b=bwBMibvNcHfqtnFh3EE6pQG1LdTQ+QU2J3re3ccKjcrFPQOUzIN4BMYCm3tS5KrsE0 3qhmBH96O18ps1JFkMddGTubfg01xKD0Oimb3Fy1K11kSTznoi8A1u4M4E97TC35BmWX 3PDSt0kfAn1DuqvSBjuDFEKVb8EsIrfoBRLRPh1pBpbJtpQ+7Vi3STT96ZcRMhePlBta 6oDS3IT6iPcE5/FtweShVnPnmdL/M22I2iARUoiD6dQLWl3iJ7d9nMB/8PHlJ770YdAE 8P0YszjVnmkHijHF2nAlPDECwUqYyu+xdtULoSEuiS3jHkHcyHYKz/FUKAdaruxHu6Cb CbOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k23si4360969ejc.709.2021.07.27.21.01.24; Tue, 27 Jul 2021 21:01:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234561AbhG1D7W (ORCPT + 99 others); Tue, 27 Jul 2021 23:59:22 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:46476 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234065AbhG1D7L (ORCPT ); Tue, 27 Jul 2021 23:59:11 -0400 X-UUID: 5790b32f5a7f4f759bb6f822d7365577-20210728 X-UUID: 5790b32f5a7f4f759bb6f822d7365577-20210728 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1283641764; Wed, 28 Jul 2021 11:59:05 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 28 Jul 2021 11:59:03 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 28 Jul 2021 11:59:04 +0800 From: Tinghan Shen To: , , , , CC: , , , , , , , , Tinghan Shen Subject: [PATCH v4 4/4] remoteproc: mediatek: Support mt8195 scp Date: Wed, 28 Jul 2021 11:58:59 +0800 Message-ID: <20210728035859.5405-5-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.15.GIT In-Reply-To: <20210728035859.5405-1-tinghan.shen@mediatek.com> References: <20210728035859.5405-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SCP clock design is changed on mt8195 that doesn't need to control SCP clock on kernel side. Signed-off-by: Tinghan Shen --- drivers/remoteproc/mtk_scp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c index 9679cc26895e..250cb946ea37 100644 --- a/drivers/remoteproc/mtk_scp.c +++ b/drivers/remoteproc/mtk_scp.c @@ -785,7 +785,7 @@ static int scp_probe(struct platform_device *pdev) if (ret) goto destroy_mutex; - scp->clk = devm_clk_get(dev, "main"); + scp->clk = devm_clk_get_optional(dev, "main"); if (IS_ERR(scp->clk)) { dev_err(dev, "Failed to get clock\n"); ret = PTR_ERR(scp->clk); @@ -877,6 +877,7 @@ static const struct mtk_scp_of_data mt8192_of_data = { static const struct of_device_id mtk_scp_of_match[] = { { .compatible = "mediatek,mt8183-scp", .data = &mt8183_of_data }, { .compatible = "mediatek,mt8192-scp", .data = &mt8192_of_data }, + { .compatible = "mediatek,mt8195-scp", .data = &mt8192_of_data }, {}, }; MODULE_DEVICE_TABLE(of, mtk_scp_of_match); -- 2.18.0