Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1163180pxf; Fri, 9 Apr 2021 01:22:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPIe1c0uEEwXLt+Qt6cmAFe+8Ar4fIRDpnLVLo8h8KxZHob2wb+6mwfFflU+aV2zG3VeUz X-Received: by 2002:a63:925a:: with SMTP id s26mr11483174pgn.216.1617956564732; Fri, 09 Apr 2021 01:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617956564; cv=none; d=google.com; s=arc-20160816; b=VRD44tmL07d+kEYhc0lXg6xb4nkcI8xfjnzt831XPJU9QgFBaN5/P7ItVBFIRk7l2e xdIwdEEUGMO66csJL9Dq5ZSgUm0swWQrL+WaD0EfOM3lJSKLBowHq/ZXpDvBv4/vM9Vn EI1NBortzBnic1t4Kp5F8Wxuo65bIWdcGHuaf0gObYtoasIJyWAfHNQ9zHeo7qITxP47 +tIefsqgm+C8GgvAmfYld0Rjk02K/lutmwcOjDT9WbOqJ5mg9DGg6se9aYc9owzFSFqr h5HuOjtGdY5oeebUjK8khNAAm1Ja7so/P64np1Qm3+peXsSZXMbGzalZbRR2HI5AHoGg Gy/Q== 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=0fs1EpwIZzwA5q5LXgkjFb11RC7JNeJSEFswcCJEHMJOiB9tVKbwhiNJlVebVUOH9x Lll7VlvOlbh6+XCMJPLBtE5GurbLx/X8I8Tij79z/5kzWF/W9ln68Gx+ORT7jyLSiewF +UQde1Hh7CObnc8soLWFeeS/BgU82esnnwN0IMhx/k1z5UQAv4uEmswjQ9n9XVSOV3jp dnaxHOm+2i2uzFXWlOy5cBtaxCdN4nHEKg4MtCXwTxiWDwRlAa9Wo0L2UsSKrVdBynIl PqXn9J1KNwGTp9JIRgaABEot3nDBxLolnx++2QfIgzDstldGasZ5scPFKTwVKKBDgryh 5Vkw== 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 j23si2309999pji.27.2021.04.09.01.22.32; Fri, 09 Apr 2021 01:22:44 -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 S232766AbhDIIVr (ORCPT + 99 others); Fri, 9 Apr 2021 04:21:47 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40352 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232373AbhDIIVo (ORCPT ); Fri, 9 Apr 2021 04:21:44 -0400 X-UUID: 18e40afcb43e41b290d0fd2f94b82b14-20210409 X-UUID: 18e40afcb43e41b290d0fd2f94b82b14-20210409 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1752416080; Fri, 09 Apr 2021 16:21:30 +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; Fri, 9 Apr 2021 16:21:28 +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; Fri, 9 Apr 2021 16:21:28 +0800 From: Nina Wu To: Rob Herring , Matthias Brugger CC: Nina Wu , Zhen Lei , Neal Liu , , , , , , Subject: [PATCH v3 6/7] soc: mediatek: devapc: support mt8192 Date: Fri, 9 Apr 2021 16:19:36 +0800 Message-ID: <1617956377-4075-6-git-send-email-nina-cm.wu@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1617956377-4075-1-git-send-email-nina-cm.wu@mediatek.com> References: <1617956377-4075-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