Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp255770pxf; Wed, 31 Mar 2021 23:44:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxpmGy8o6WVEpFWyMvZ3Ob8Ur7Wvx/bcXJ/1lOfdr2kmdJo03qVc8mqnPwZuNSRRYWEWa6 X-Received: by 2002:a17:907:50a1:: with SMTP id fv33mr7491128ejc.14.1617259474002; Wed, 31 Mar 2021 23:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617259473; cv=none; d=google.com; s=arc-20160816; b=EtKanG3Y9RXhpEHx2IlJqy45Sd7bRSUdWn9PRQzskUyITpqroBh+rTZVe9/sJ0qroO 5w+PhdviYZr+wxUYNGZ8dCeadra3n2d3gwShrREyoT1Ozqm9Zn5O2F/Oi8/rLM7KAbzD mzyseHeeC0mf9c0JN1arCmwmz8NQ2tQIz/EvUkScJ1vlLaeh/Jn+AcVgS0UO8B1yVlEl bDN3vtaydbwxpVWfRYqkm943cSZduTtYrbYfLwZ1O5VW6L1cLGQxbhCIgAjOQhW+Z1gu ApUP3B796YFbs1Mo+wIZ5S+B58orlr/gPe9ZbPHrLWuleWvIkk1933tSgwjRJQNCwZIB P0TA== 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=M5puxUN4kQZ72VP+T6oS43QA8dq5kNvt5P2Vwaml/Mc=; b=e7kmTTuFI6By93B2WswGf5rHTK32o9J4+8xFW84BDt646AwRs7bqO0xTJE9tB1GDVi QLEKL+uWRTCGhMQKlXHDxWaVl+NNvOsAR8poAzj+nL8bQqcRmwlSa1kEj3p/mhg6m6wy 3FpR9E50BVfcRVu6kHCYcnUmMdfzrzd4w0ZYGg6ZnzSAdnVrRZV05kGyteBY/6+gGuag 1jTOxDB/MENZLIVECR5izNR/60TFZZBJn7EHX7P531sF12ce/w3etRKk2uA3ghN5dzuS 21TzbagE7HTy2PnAixr7+TBkvsXf66Bb/6SSA271vrQV6QTq/f6iFPHgA30oEP2Cg3js xlXA== 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 n15si3437171edc.19.2021.03.31.23.44.11; Wed, 31 Mar 2021 23:44:33 -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 S233482AbhDAGk5 (ORCPT + 99 others); Thu, 1 Apr 2021 02:40:57 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:49169 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233513AbhDAGkd (ORCPT ); Thu, 1 Apr 2021 02:40:33 -0400 X-UUID: b6187f31c8b5475b9d71140e010e6792-20210401 X-UUID: b6187f31c8b5475b9d71140e010e6792-20210401 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 484400245; Thu, 01 Apr 2021 14:40:30 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 1 Apr 2021 14:40:28 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 1 Apr 2021 14:40:29 +0800 From: Nina Wu To: Rob Herring , Matthias Brugger CC: Nina Wu , Zhen Lei , Neal Liu , , , , , , Subject: [PATCH v2 6/6] soc: mediatek: devapc: support mt8192 Date: Thu, 1 Apr 2021 14:38:07 +0800 Message-ID: <1617259087-5502-6-git-send-email-nina-cm.wu@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1617259087-5502-1-git-send-email-nina-cm.wu@mediatek.com> References: <1617259087-5502-1-git-send-email-nina-cm.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: EBA15B3D3A41FD19CDF67EE541EC17DFB527CD8A22555DDCB36B0413C99423022000:8 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/soc/mediatek/mtk-devapc.c b/drivers/soc/mediatek/mtk-devapc.c index af55c01..a5c15b5 100644 --- a/drivers/soc/mediatek/mtk-devapc.c +++ b/drivers/soc/mediatek/mtk-devapc.c @@ -251,11 +251,26 @@ static const struct mtk_devapc_data devapc_mt6779 = { .vio_shift_con_offset = 0xF20, }; +static const struct mtk_devapc_data devapc_mt8192 = { + .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