Received: by 10.213.65.68 with SMTP id h4csp445842imn; Fri, 30 Mar 2018 08:31:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/pVriTldKdxHdTro1vj/3pWSDT2XtmlsgxRsSEQ/XuWL6SHnCFiWrgS+NJJoVdhn3po/Mq X-Received: by 2002:a17:902:b707:: with SMTP id d7-v6mr11716011pls.188.1522423860526; Fri, 30 Mar 2018 08:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522423860; cv=none; d=google.com; s=arc-20160816; b=aLQSfJH+zHcU/Aqc+htfe+2o/Q4JbtRl1zDPDJo6OxgnmDsxsHZnCz2xzpArjEbUU/ 2H391KHqM8qrembB8sVPRwKqTUoJG7vL/tzne2KnSpmuN33swED+LWNl6l1K/QObHqe2 TE9DXsmXwS4siVqzO54bP9InnzpOpvxIZk3imNxyJSfz6eZ2UgacN+HWbRaGcWrnnrgM ko6wD+qCBqy+l0Wla31LGs3+rnPn928098fA/aGgzzHZvjARxZF7FmDNt02fmX+qzxhG /5sOWImH7kEQ9oJKQIDw5xPnpEFexw7/C5XadZ/oCd72RRfZYcdXTO3LdOazzyXtysMz bdCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=9GsS7QxYWPuUZ2HHLfQ5+LXK8fUGR2ZX5SpIXYGTM1o=; b=MrA/v9zfruw6F9MorA8/9d1vK1GgBSLflWXWu2DkBcNhTVmq56uT60KaEBy+kIi8Rm GypnwAeIY2+KYThvo1kfIv587LhlYZTgRDYLN2BOURQ/ieNu/23FCyVFehG8+0QVCQ07 CvtlLC/G8V91S5KDvO1E0NywntqZAVHfvCTxPXfnXV3zcc+6sCyFeMebr4ua47iBbcm9 MmOOxa3ghx2qHprmNRljomihO2S91swVNc7w4Cvdl4KgOImYmfdYWOTMhSwVaUrlzxzZ JfwFbzc0D1Lljf3BNVj3YRcKJ/+ba4YUs5qzHvauq5J3Y0ShCJkJ/bCutql8zez6zeKX e3zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=FRMguGFc; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si5811846pgn.210.2018.03.30.08.30.42; Fri, 30 Mar 2018 08:31:00 -0700 (PDT) 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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=FRMguGFc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752364AbeC3P3Q (ORCPT + 99 others); Fri, 30 Mar 2018 11:29:16 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:56113 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752021AbeC3P3F (ORCPT ); Fri, 30 Mar 2018 11:29:05 -0400 Received: by mail-wm0-f68.google.com with SMTP id b127so15318528wmf.5 for ; Fri, 30 Mar 2018 08:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9GsS7QxYWPuUZ2HHLfQ5+LXK8fUGR2ZX5SpIXYGTM1o=; b=FRMguGFcAqR+qh84aHjoBqkWDGJBrXQppPe7dz/CaTt1LmnoIWOtXumLtc/1uc2B27 7s+ssvmoHpAd2uHSVNid10D1p6/qxz12/nLIGxC+TWLM6J9i1NE0IgcHcNwurZxe+v0f Ox8vwRrQ18+49EYFz0V04nvgdgtiPoumwxyrLeSnyCDBX1WCelPurFRxFU8xDHGubpdN faY0gzrg4WmW+l+mh99aMEEY1i7Z0qNXD/Dbz96N03oS2zpgCaODLem+srld0wQr2s5S EObHhmiAZ/nTCFMzi8Z/venvvx7Fs3zWhoZMPm3U4pfjXSImkMY1MXf/C+MZZG0fhGxp L2YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9GsS7QxYWPuUZ2HHLfQ5+LXK8fUGR2ZX5SpIXYGTM1o=; b=XBGNR+vYjMHWoAgTQFGWAkLPBQSQD0mbUCrdVX8fxofszHPkdamhe4T103DcCB7NUM XtanqutOMXnN+vMOPaH87KPo6EhW5h8dqwnwaIxYPQQyYC2Nsqg46+EMI4pXT+ZG7g3L iHH77dkiMV/9XnZpFLmdUlSnSzz00Pqf4m3E6OO2SbENpkMLCb+vJPWV6wVRPyb8q9Rh uVHhEveLubuH6ZXlWVGe65C5bGkCnl5zhTP7KglZzKi1iWKaBiMzjoCpVegttKU9l+h2 /KxBZ1WVrYtkZ1s1eonAGeQMw0L3L+issrAI06EU9XplaqAeCRbQO3+KaMLHjxNKsSMh Dg3A== X-Gm-Message-State: ALQs6tC+kOp/CE7TBKxSINIiLSb7OBkiaJsX8C8wam8/oVb2TRXa8S3L 0R3FcT+FNk2eqDup5PUP6zuNLw== X-Received: by 10.28.160.9 with SMTP id j9mr2746587wme.50.1522423744494; Fri, 30 Mar 2018 08:29:04 -0700 (PDT) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n49sm14429881wrn.90.2018.03.30.08.29.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Mar 2018 08:29:03 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland , Russell King , David Lechner , Michael Turquette , Stephen Boyd , Ohad Ben-Cohen , Bjorn Andersson , Philipp Zabel Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-remoteproc@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v5 3/8] clk: davinci: add a reset lookup table for psc0 Date: Fri, 30 Mar 2018 17:28:51 +0200 Message-Id: <20180330152856.12297-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180330152856.12297-1-brgl@bgdev.pl> References: <20180330152856.12297-1-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski In order to be able to use the reset framework in legacy boot mode as well, add the reset lookup table to the psc driver for da850 variant. Signed-off-by: Bartosz Golaszewski --- drivers/clk/davinci/psc-da850.c | 7 +++++++ drivers/clk/davinci/psc.c | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/clk/davinci/psc-da850.c b/drivers/clk/davinci/psc-da850.c index ccc7eb17bf3a..d196dcbed560 100644 --- a/drivers/clk/davinci/psc-da850.c +++ b/drivers/clk/davinci/psc-da850.c @@ -6,6 +6,7 @@ */ #include +#include #include #include #include @@ -66,8 +67,14 @@ LPSC_CLKDEV3(ecap_clkdev, "fck", "ecap.0", "fck", "ecap.1", "fck", "ecap.2"); +static struct reset_control_lookup da850_psc0_reset_lookup_table[] = { + RESET_LOOKUP("da850-psc0", 15, "davinci-rproc.0", NULL), +}; + static int da850_psc0_init(struct device *dev, void __iomem *base) { + reset_controller_add_lookup(da850_psc0_reset_lookup_table, + ARRAY_SIZE(da850_psc0_reset_lookup_table)); return davinci_psc_register_clocks(dev, da850_psc0_info, 16, base); } diff --git a/drivers/clk/davinci/psc.c b/drivers/clk/davinci/psc.c index 3b0e59dfbdd7..063df62381ea 100644 --- a/drivers/clk/davinci/psc.c +++ b/drivers/clk/davinci/psc.c @@ -425,6 +425,7 @@ __davinci_psc_register_clocks(struct device *dev, psc->rcdev.ops = &davinci_psc_reset_ops; psc->rcdev.owner = THIS_MODULE; + psc->rcdev.dev = dev; psc->rcdev.of_node = dev->of_node; psc->rcdev.of_reset_n_cells = 1; psc->rcdev.of_xlate = davinci_psc_reset_of_xlate; -- 2.16.3