From patchwork Thu Dec 15 12:05:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dwivedi, Avaneesh Kumar (avani)" X-Patchwork-Id: 9475931 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 062DF60827 for ; Thu, 15 Dec 2016 12:09:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E57B22875E for ; Thu, 15 Dec 2016 12:09:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAAD928760; Thu, 15 Dec 2016 12:09:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80AAC28761 for ; Thu, 15 Dec 2016 12:09:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935507AbcLOMJD (ORCPT ); Thu, 15 Dec 2016 07:09:03 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:52164 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754786AbcLOMIs (ORCPT ); Thu, 15 Dec 2016 07:08:48 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2F5E46162C; Thu, 15 Dec 2016 12:06:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1481803595; bh=GGjxgVf6BtV0yTsk2l/Z/XcR3xtJcbfRq+yu1c22t/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kIahg4cY/vbrV5vT/3/8exLzp6i1r7kB+ydfh62EaNYej5yAU8KN6DybZ5oO88gP0 1mNCV85HmOPW1IrZ5gsBCKuAW6AdUZPlWinZ+UlD+DmfeEi3m8Mh4ycRhxfbpoQpGY 3i2HY5aN5TMYr+JdxMXYx4VRe4fahm77MJTAOFmY= Received: from akdwived-linux.qualcomm.com (unknown [202.46.23.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akdwived@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 663AF6161F; Thu, 15 Dec 2016 12:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1481803594; bh=GGjxgVf6BtV0yTsk2l/Z/XcR3xtJcbfRq+yu1c22t/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HYt4TfLN2p8oy0zD9uTg3j7luzD5NvUqILZGKrzV0USLAo4PUF61QnM3oM1aaOPHv 7qP1G8/G5VmttiJO0TdmLIYcji1Wn7mLiIqn/Z99UUjeSRulDD2Wu8taTTVbEWgc/M 166Bl+HZ3k2KMYYqg9aU9idxUezUG7+iOY8n6sHQ= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 663AF6161F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=akdwived@codeaurora.org From: Avaneesh Kumar Dwivedi To: bjorn.andersson@linaro.org Cc: sboyd@codeaurora.org, agross@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, Avaneesh Kumar Dwivedi Subject: [PATCH v5 7/7] clk: qcom: Add GCC_MSS_RESET support Date: Thu, 15 Dec 2016 17:35:46 +0530 Message-Id: <1481803546-31592-8-git-send-email-akdwived@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481803546-31592-1-git-send-email-akdwived@codeaurora.org> References: <1481803546-31592-1-git-send-email-akdwived@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support to use reset control framework for resetting MSS with hexagon v56 1.5.0. Signed-off-by: Avaneesh Kumar Dwivedi Reviewed-by: Bjorn Andersson --- drivers/clk/qcom/gcc-msm8996.c | 1 + include/dt-bindings/clock/qcom,gcc-msm8996.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c index fe03e6f..fd4bf6f 100644 --- a/drivers/clk/qcom/gcc-msm8996.c +++ b/drivers/clk/qcom/gcc-msm8996.c @@ -3423,6 +3423,7 @@ enum { [GCC_MSMPU_BCR] = { 0x8d000 }, [GCC_MSS_Q6_BCR] = { 0x8e000 }, [GCC_QREFS_VBG_CAL_BCR] = { 0x88020 }, + [GCC_MSS_RESTART] = { 0x8f008 }, }; static const struct regmap_config gcc_msm8996_regmap_config = { diff --git a/include/dt-bindings/clock/qcom,gcc-msm8996.h b/include/dt-bindings/clock/qcom,gcc-msm8996.h index 1828723..1f5c422 100644 --- a/include/dt-bindings/clock/qcom,gcc-msm8996.h +++ b/include/dt-bindings/clock/qcom,gcc-msm8996.h @@ -339,6 +339,7 @@ #define GCC_PCIE_PHY_COM_NOCSR_BCR 102 #define GCC_USB3_PHY_BCR 103 #define GCC_USB3PHY_PHY_BCR 104 +#define GCC_MSS_RESTART 105 /* Indexes for GDSCs */