Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4061670pxj; Mon, 24 May 2021 22:56:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHIHlOjRCMy75ESDYKosMJAZY9+M0hkGh1zp48rzoK8zOzONSB2LwpmYtqNX0q7mb+dDg4 X-Received: by 2002:a05:6402:5188:: with SMTP id q8mr7502719edd.166.1621922183549; Mon, 24 May 2021 22:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621922183; cv=none; d=google.com; s=arc-20160816; b=HpVI8yB3M5CvZeEbnw9vcEaRu2a+ufs1VA9KeNcI6qybsitsvY6UVpXkkuvekrJUhi hFxf9IHP//cFpztVgr00juysprf7XLVIyy64N2Qttr3LdwvpZ/6MGOgVEVilE9zcf1E2 sv1K3jLJl2kQfikUZRGRgAu5+SpoMm8KahumEqivOqP5uNcfybbJSJTTCyHmAW+RN0w3 Elrgh+q/Xzqkvm2thwErgTdc4mA3uUVBgqUUMp9zAjyEQWWvbtrLdP7DAfs9ncm3FbQc FWQ+ukaoS6BOn7GzUU6J+NV/7C7hiqiDdvgm6o4NiIdFSGpex/SYZ/dKFdT2Vnu/lv8S x48g== 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=HO2J4XC3G0jJ9oLl6CRzwEAWDwKGSS4PaBB8AM5qssU=; b=WI18RKHxl3OHHuCrpTwWRHxOvGRFtMJc7fbGaKJZAhJCOqtsYIR7UAdZQNmEssPCbr sMZd/V8wUgKcp9e0hq222q4/yRuheRih2o7moBHoX/oXkIlMAUHoaTmmqDSoJuJA7vLj 0iIqO+4CFF/NUAsPM4QEVpLlh21ha1SWj9aNeQTUhTBTWrNMS96F+g0ZxmDMEKTMC7S+ BfXzqK6FXTtz9YRDeX5069OOGxbsLH1G+/S/fehftlRDk6x4ZblazSOH1V6Fs1qBoAAw C7ml//FtJ2dXos/cvput1ONp22MFOGdYS4YtQZ1bU7Pj7OlMiLRL+08ZHHBMxBvopcn7 lDvA== 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 t14si14487834ejb.624.2021.05.24.22.56.01; Mon, 24 May 2021 22:56:23 -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 S231304AbhEYFzb (ORCPT + 99 others); Tue, 25 May 2021 01:55:31 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:55963 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231259AbhEYFz1 (ORCPT ); Tue, 25 May 2021 01:55:27 -0400 X-UUID: c35b3814703c46de9e695d8502608858-20210525 X-UUID: c35b3814703c46de9e695d8502608858-20210525 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1301475935; Tue, 25 May 2021 13:53:56 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 May 2021 13:53:53 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 25 May 2021 13:53:53 +0800 From: Nina Wu To: Rob Herring , Matthias Brugger CC: Zhen Lei , Nina Wu , , , , , , , Subject: [PATCH v4 6/7] soc: mediatek: devapc: support mt8192 Date: Tue, 25 May 2021 13:53:05 +0800 Message-ID: <1621921986-20578-6-git-send-email-nina-cm.wu@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1621921986-20578-1-git-send-email-nina-cm.wu@mediatek.com> References: <1621921986-20578-1-git-send-email-nina-cm.wu@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 From: Nina Wu Add compatible to support mt8192. Signed-off-by: Nina Wu --- drivers/soc/mediatek/mtk-devapc.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/soc/mediatek/mtk-devapc.c b/drivers/soc/mediatek/mtk-devapc.c index bdc8fe9..84dd6a2 100644 --- a/drivers/soc/mediatek/mtk-devapc.c +++ b/drivers/soc/mediatek/mtk-devapc.c @@ -265,11 +265,27 @@ static const struct mtk_devapc_data devapc_mt6779 = { .vio_shift_con_offset = 0xF20, }; +static const struct mtk_devapc_data devapc_mt8192 = { + .version = 2, + .vio_mask_offset = 0x0, + .vio_sta_offset = 0x400, + .vio_dbg0_offset = 0x900, + .vio_dbg1_offset = 0x904, + .vio_dbg2_offset = 0x908, + .apc_con_offset = 0xF00, + .vio_shift_sta_offset = 0xF20, + .vio_shift_sel_offset = 0xF30, + .vio_shift_con_offset = 0xF10, +}; + static const struct of_device_id mtk_devapc_dt_match[] = { { .compatible = "mediatek,mt6779-devapc", .data = &devapc_mt6779, }, { + .compatible = "mediatek,mt8192-devapc", + .data = &devapc_mt8192, + }, { }, }; -- 2.6.4