Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2331793pxt; Sun, 8 Aug 2021 20:12:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxwXRBQaBOlpau5JFufsdboMQ1ip62HlfSAHmGY+G0yOvhb4YkUDUu1IyuBRoeNkK2iFYy X-Received: by 2002:aa7:de05:: with SMTP id h5mr10620068edv.174.1628478727548; Sun, 08 Aug 2021 20:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628478727; cv=none; d=google.com; s=arc-20160816; b=o51ffsJ910tAE8Jj5ysQG+s5Pw8XLdJOkXlzaTzhrZVc9HJ6EzQJB3cGXAEMHGLXJ8 VtT6AOdC5ly0lQ7DifmNdhvsRdeMFv96xbTLYqUU/dMSnubsfS/WbNr2x5R/wYR1X1h9 uDpJXb2ggUejHIpU40Xr8Anfd8szVztCnzCEqpFLEeBy19J+BS5g7BIrjoJnkl7I/UcM Ldavd/966K/wJXTKmSTXeZXRMAs3GJGlt+7SKQrZo+YJRdmPJoLQX9hRy/EdrIeaAMBJ 9yFrxc+HhY8779xRVcU/cOvU8Aqj7bZ6CqqSg6k2xz441wrKAxMGb8Rr9i5OjgRMrfUl R/+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:references:in-reply-to :message-id:date:subject:cc:from; bh=ZFKAgg0gky5wc27Koo7BaJ1qvYSvdASk1+hpnlXnUtw=; b=cOfQzdYswbNluUiEWcvNM8lLS8MDfpiAf6vNeG59Y1JM7HaoiBsxHPXK8VSJrrREUC ZVLQ4S8Eey3zBnZuzNApsw2YQrrbYo0QuEpZ6hrOLH43W9/6RCcTJz/9c4pvXxHwmLyT nyI2nehqeYZOHxoB+7XlN8YUnVMfJ0GPprr+1l+ForCHOdEcuh7fi9Cx4WELfH2GBbE6 xPtPKIS5u1T6YhXro4jeLeMEb3rP3AgfhjG5Vfy0meoqDgD/Qz381ZImOL/jEc8IiO6H 8s4EKwwrhKU2dYRuom7qDloJEBibyVReqvUhY3GFz9HqgZpxMKJ7G+yjfRhoNDSoLG8M nKrw== 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 l21si16675914edw.523.2021.08.08.20.11.44; Sun, 08 Aug 2021 20:12:07 -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 S232858AbhHIDJN (ORCPT + 99 others); Sun, 8 Aug 2021 23:09:13 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:54272 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232796AbhHIDJF (ORCPT ); Sun, 8 Aug 2021 23:09:05 -0400 X-UUID: 0aa2ddc9243540ef93b7e9a7fa71a0a0-20210809 X-UUID: 0aa2ddc9243540ef93b7e9a7fa71a0a0-20210809 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2120419045; Mon, 09 Aug 2021 11:08:40 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 9 Aug 2021 11:08:39 +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; Mon, 9 Aug 2021 11:08:39 +0800 From: Nina Wu CC: Rob Herring , Matthias Brugger , Nina Wu , Neal Liu , Zhen Lei , , , , , , , Subject: [v4 6/7] soc: mediatek: devapc: support mt8192 Date: Mon, 9 Aug 2021 11:08:18 +0800 Message-ID: <1628478499-29460-6-git-send-email-nina-cm.wu@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1628478499-29460-1-git-send-email-nina-cm.wu@mediatek.com> References: <1628478499-29460-1-git-send-email-nina-cm.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N To: unlisted-recipients:; (no To-header on input) 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 42d3be5..c857678 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, + }, { }, }; MODULE_DEVICE_TABLE(of, mtk_devapc_dt_match); -- 2.6.4