From patchwork Mon Oct 26 10:56:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 55529 Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1129738lbq; Mon, 26 Oct 2015 03:58:39 -0700 (PDT) X-Received: by 10.107.26.194 with SMTP id a185mr34846121ioa.5.1445857119155; Mon, 26 Oct 2015 03:58:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si3082137igc.14.2015.10.26.03.58.38; Mon, 26 Oct 2015 03:58:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753597AbbJZK6i (ORCPT + 6 others); Mon, 26 Oct 2015 06:58:38 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:34640 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753219AbbJZK6Q (ORCPT ); Mon, 26 Oct 2015 06:58:16 -0400 Received: by wikq8 with SMTP id q8so158674059wik.1 for ; Mon, 26 Oct 2015 03:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uuguAlUf3SRfQVfoho84cgMKvg5PsIzCL3vfqxSFaCg=; b=i5pBoobpRh0ulPRI/bP7m1EFx9+NkvaLwpI4yBeTXqtLgTvRti6QVBVztmN2wtxlDA SIlC4oZqTdyhBEM4meb9751CWQKr2FLysirTO5A27R+H1Yk3AVcNa+4+Vr223EAMML2T ZDhva6MP9enwdLjwb3yPYxSr8wjs1PPE3JJL58VFMEkF7CV788QlLx99sBG+wDWHGDuA ImDB4YJWvKyyBvSfjluZeDDGIvvJhItjBkNsPTmf2DF21nJPkr3IhtM9KXRTAGpuvv80 Pgzja4wQERu7k68mjSoEs3Apf8kJ9rGT/v9TooMsPTlc4rArxnlKf2Eas03MWfvboKBR nuiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uuguAlUf3SRfQVfoho84cgMKvg5PsIzCL3vfqxSFaCg=; b=XpPOr/BFhyz3xbyOzMbH7rysfdT8uKzwIFl+PXn2iOwlEdlHWOLZajUljflhp2d1p1 Qii8HuTy8WHFEkMgymScdIU2L4pYBbqKd6Kwp7Cy42AZcI6MZ2H+49eZXw56ipMXU7gi I/uZxnhtpGM6a2dXZ3lr1qwjglZiS9lUVXqceNY+lSVbq4PZ2xIxWUGfpKnJ0QNiRlpl KxOnYPQ1vPF4OzojQQ4Hu8zo9Z6emqgaR1mW5gVAOKfL+kSP6FFTJYcVBN9ku4sZ/jYA gmLeYQDkU0X5CjynD/IIYm28TowfJbNYd3atBVt0d6d6kWYOBCZS2sue97rYamMDGFfl vScg== X-Gm-Message-State: ALoCoQlAv9HALjHStfwBdbkhmZgJ7pJhJw2PTJX8GHjK0enOMUbBeafxGvWCu4kLkUaFHHYGYUsv X-Received: by 10.180.208.9 with SMTP id ma9mr17634616wic.47.1445857094743; Mon, 26 Oct 2015 03:58:14 -0700 (PDT) Received: from localhost.localdomain (host81-129-172-135.range81-129.btcentralplus.com. [81.129.172.135]) by smtp.gmail.com with ESMTPSA id he3sm38390779wjc.48.2015.10.26.03.58.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Oct 2015 03:58:14 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com, devicetree@vger.kernel.org, p.zabel@pengutronix.de, Lee Jones Subject: [PATCH 2/3] reset: sti: Add support for resetting co-processors Date: Mon, 26 Oct 2015 10:56:08 +0000 Message-Id: <1445856969-19424-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445856969-19424-1-git-send-email-lee.jones@linaro.org> References: <1445856969-19424-1-git-send-email-lee.jones@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Lee Jones --- drivers/reset/sti/reset-stih407.c | 5 +++++ 1 file changed, 5 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/reset/sti/reset-stih407.c b/drivers/reset/sti/reset-stih407.c index d83db5d7..5c2d68a 100644 --- a/drivers/reset/sti/reset-stih407.c +++ b/drivers/reset/sti/reset-stih407.c @@ -52,6 +52,7 @@ static const struct syscfg_reset_channel_data stih407_powerdowns[] = { }; /* Reset Generator control 0/1 */ +#define SYSCFG_5128 0x200 #define SYSCFG_5131 0x20c #define SYSCFG_5132 0x210 @@ -96,6 +97,10 @@ static const struct syscfg_reset_channel_data stih407_softresets[] = { [STIH407_ERAM_HVA_SOFTRESET] = STIH407_SRST_CORE(SYSCFG_5132, 1), [STIH407_LPM_SOFTRESET] = STIH407_SRST_SBC(SYSCFG_4002, 2), [STIH407_KEYSCAN_SOFTRESET] = STIH407_SRST_LPM(LPM_SYSCFG_1, 8), + [STIH407_ST231_AUD_SOFTRESET] = STIH407_SRST_CORE(SYSCFG_5131, 26), + [STIH407_ST231_DMU_SOFTRESET] = STIH407_SRST_CORE(SYSCFG_5131, 27), + [STIH407_ST231_GP0_SOFTRESET] = STIH407_SRST_CORE(SYSCFG_5131, 28), + [STIH407_ST231_GP1_SOFTRESET] = STIH407_SRST_CORE(SYSCFG_5128, 2), }; /* PicoPHY reset/control */