Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5046937ybl; Mon, 9 Dec 2019 22:48:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwuAIKtm0IiLxkBGar1c+oCciRQ5EgWKecaTZhDXFfxGcjy+LJFWPEJ5G0FrqvdhNAM4exl X-Received: by 2002:aca:48cf:: with SMTP id v198mr2706738oia.35.1575960480711; Mon, 09 Dec 2019 22:48:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575960480; cv=none; d=google.com; s=arc-20160816; b=QbnfdJ4VI+7olCbZnGAzO9nPgtwIxZhKn5auAH1shZJkhI+uePb1khSqdQiGfzNB+5 7Td5IvjNzk5UosoueeUJbayhJRkUWb/weOSsLT7N8TVgiG461taiJUCZ5zOzkk/WDqOZ +vFDCu97s97aN9jLSqgWwuhnV8TkfPqV6QeQCyRc5bqVJM+Ovo3pDn0fHI7pDzyBTL4A JtX+baiu8e7dzI/LoVR+EXz9o0Bvw+oGNbSJ6xe6zRMAH0adl0D112b6GALrmUeI/kOV wR/ZHnpA7tFuFwd8Br50AVxSJulQ+maaZO1hwt6uDOTasp3JgzqcHQDd678wm+bi7HNk 1uEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bjEwZOajHRTsCwlXnYQg/z3J8I+P+Fu/Wqga7go7+kg=; b=qmlwPkjRkePEhGbwewMEUPICGtmDuXKz4bA8cBH8aVpxc53eputggnIsFwCY+/l50M UIKqoBq1eb0i52Df5/4hojMdYQlrdqIkzc4GNhcjsjl2K/Sb9RQkWelLBJRoeeCuP30w Yg1CPtsbGTRejW1pbA4b/3x+f7qeXJ4iOGtnOwWGjE8K4aVxAjAFG2rYZIYxjIjDR5Cv pYD654udjzzWPn+AfnY+NTaPOPzmSz1UMtwPqLiJfT5otO2KGeHUZXa+gp8mlS19OlUB SKq7kRGqHakKswRBXjqIA4af+qj+XzqM8Eyvdqbk9igdSQnPPwNQR3Zn1VjOWd4yMOwy NhPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FFXQvowq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si1281087otf.125.2019.12.09.22.47.47; Mon, 09 Dec 2019 22:48:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FFXQvowq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727314AbfLJGrU (ORCPT + 99 others); Tue, 10 Dec 2019 01:47:20 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:5886 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726950AbfLJGrS (ORCPT ); Tue, 10 Dec 2019 01:47:18 -0500 X-UUID: cc3bf6704016451f8bc3d60938d051ea-20191210 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=bjEwZOajHRTsCwlXnYQg/z3J8I+P+Fu/Wqga7go7+kg=; b=FFXQvowqVtxKe+s63RiU2f0kzyz/vsdpxcgkKxq7tgFK+35w4bNqsD0v+MEHK8nurpECiHWaFRso1/l8Rd80WS7JjdnmoOETofUhOM6aqiJaHlebVVIYqIlw9B4no3x8mCC91gyOQgMeDgiA5MpKvESjd2OSG8M8gINBnn6loBw=; X-UUID: cc3bf6704016451f8bc3d60938d051ea-20191210 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1191030409; Tue, 10 Dec 2019 14:47:13 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 10 Dec 2019 14:47:04 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 10 Dec 2019 14:47:17 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Rob Herring CC: James Liao , Fan Chen , , , , , Weiyi Lu , Yong Wu Subject: [PATCH v9 3/9] soc: mediatek: Add basic_clk_id to scp_power_data Date: Tue, 10 Dec 2019 14:46:47 +0800 Message-ID: <1575960413-6900-4-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1575960413-6900-1-git-send-email-weiyi.lu@mediatek.com> References: <1575960413-6900-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VHJ5IHRvIHN0b3AgZXh0ZW5kaW5nIHRoZSBjbGtfaWQgb3IgY2xrX25hbWVzIGlmIHRoZXJlIGFy ZQ0KbW9yZSBhbmQgbW9yZSBuZXcgQkFTSUMgY2xvY2tzLiBUbyBnZXQgaXRzIG93biBjb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