Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4206587rwb; Mon, 16 Jan 2023 20:08:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXv1zi1bkXvjpTLbqWbO/tHa9OD0l+03tfCon9NyaKsfT9UKku9jn2cLMZurX+8GTtJSUHO4 X-Received: by 2002:a17:90b:3c0d:b0:226:e0da:fcc2 with SMTP id pb13-20020a17090b3c0d00b00226e0dafcc2mr1536394pjb.47.1673928501604; Mon, 16 Jan 2023 20:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673928501; cv=none; d=google.com; s=arc-20160816; b=cLIusQad/uwJAhpwGGxige4HeuRMPlUBCz21GndqrcZO+98FNrPQ2qSre9I0EjNcHU MNmV0h8w3SNY4wz8OD4s2LLJduUd8z9rAo4Lv3aokyJoPzPk4qCnGRWO9ip+UStipXTN WWYxG2oBbsDUftG9kkFHQGOuZ0rWLdjXPQmA5vog2NtSg+TvD0mcFIEkDIwrWCdlRpUy kVjOU5hrL6Ol62nAu4T8OELf2FKGxWDyVHwsy9udP2gJni+4WPlY4Y+o7IdsJxkXtMC9 HIZBruPt2qq5K/A+TNTPn/mun6Qxm/MS8++c1roBXh4/oCA4gvZbY50j2xuS40d0sY1J l1pg== 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:dkim-signature; bh=khGtf/yFaQhuUYw3+sDq4AMQJejakM42FizGJgu2Vp4=; b=aYdEeO7zXZn/7r7At38vQplCwjMVF/J0nKfUKjxSCXepxnmfXAvfbSxMPCiAfjGLUC SIl3GnemN/xCGI7eic/VhSIAWA9iVaJnFTLazl5HqlgGwNQzUdYCQzR4j+jn7LRnTVj4 uJNmdb+ZE1NUujSD5TVuOrY2OThrg82nKGHALCrEbdrg7KG3zLuERcsjakH3BFE0TBNC Px/krrCf/JzkxzHDpR4KjZDCxRpSEB+/fYjSC8cRHb2xOTDq7XbFttp6H8GN1ZFS2zER ed9LRarpoKJKtLrMrHUZfv50lIhXT61kfHJbJ732i/xayZ8lQeBeRbyazHwDx+R0VO+0 Kl2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="PTIQZV/M"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fz7-20020a17090b024700b00225f3c4288bsi29918438pjb.160.2023.01.16.20.08.15; Mon, 16 Jan 2023 20:08:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="PTIQZV/M"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235323AbjAQD1J (ORCPT + 50 others); Mon, 16 Jan 2023 22:27:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235308AbjAQD06 (ORCPT ); Mon, 16 Jan 2023 22:26:58 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 621AE227AD for ; Mon, 16 Jan 2023 19:26:51 -0800 (PST) X-UUID: c60cfd16961611ed945fc101203acc17-20230117 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=khGtf/yFaQhuUYw3+sDq4AMQJejakM42FizGJgu2Vp4=; b=PTIQZV/MFy3R8b9uI1mOJWsKeHEp8ajs5VZdtvHrzDwMvK/BP555eLmOo6vhECPrhPn+B3+DhaFUA0hsJM5FwvuFNsGbST8LDsqhO3myD83k49rozuqbrmMoIgCuLof52rBjVuc1bVfOWhC6nc06b7DJPFtdYyXUIaxTKXJH2j8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.18,REQID:543f5605-56ed-4f55-80df-3ce434bee6e1,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.18,REQID:543f5605-56ed-4f55-80df-3ce434bee6e1,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:3ca2d6b,CLOUDID:1769738c-8530-4eff-9f77-222cf6e2895b,B ulkID:23011711264751LS0397,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-BVR: 0 X-UUID: c60cfd16961611ed945fc101203acc17-20230117 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 925848481; Tue, 17 Jan 2023 11:26:47 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 17 Jan 2023 11:26:46 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 17 Jan 2023 11:26:46 +0800 From: Allen-KH Cheng To: Matthias Brugger , Enric Balletbo i Serra CC: , , , , , Allen-KH Cheng Subject: [PATCH 1/2] soc: mediatek: pm-domains: Add buck isolation offset and mask to power domain data Date: Tue, 17 Jan 2023 11:26:39 +0800 Message-ID: <20230117032640.13504-2-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230117032640.13504-1-allen-kh.cheng@mediatek.com> References: <20230117032640.13504-1-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAY_BE_FORGED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add buck isolation offset and mask to power domain data. Signed-off-by: Allen-KH Cheng Reviewed-by: AngeloGioacchino Del Regno --- drivers/soc/mediatek/mtk-pm-domains.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/soc/mediatek/mtk-pm-domains.h index 7d3c0c36316c..a5f24c58e35a 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.h +++ b/drivers/soc/mediatek/mtk-pm-domains.h @@ -81,6 +81,8 @@ struct scpsys_bus_prot_data { * @ctl_offs: The offset for main power control register. * @sram_pdn_bits: The mask for sram power control bits. * @sram_pdn_ack_bits: The mask for sram power control acked bits. + * @ext_buck_iso_offs: The offset for external buck isolation + * @ext_buck_iso_mask: The mask for external buck isolation * @caps: The flag for active wake-up action. * @bp_infracfg: bus protection for infracfg subsystem * @bp_smi: bus protection for smi subsystem @@ -91,6 +93,8 @@ struct scpsys_domain_data { int ctl_offs; u32 sram_pdn_bits; u32 sram_pdn_ack_bits; + int ext_buck_iso_offs; + u32 ext_buck_iso_mask; u8 caps; const struct scpsys_bus_prot_data bp_infracfg[SPM_MAX_BUS_PROT_DATA]; const struct scpsys_bus_prot_data bp_smi[SPM_MAX_BUS_PROT_DATA]; -- 2.18.0