Received: by 10.213.65.68 with SMTP id h4csp1194525imn; Wed, 21 Mar 2018 05:10:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELvFTk6yGCNghIEcqUw6iKFbps0y5C4dF+i/u4JsZCOKS8YajPqTxteli9Bb1tikbL6azPkN X-Received: by 10.101.90.203 with SMTP id d11mr14370378pgt.20.1521634211296; Wed, 21 Mar 2018 05:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521634211; cv=none; d=google.com; s=arc-20160816; b=y3PWEGOJ8C3QC4te5YkviDc6wWGdvowLtCpsiBVc1qx4VDM+Q+/U1rGtQGiXv5gxaU MrrfAvd1e0kUh2Dy6FxGGC2cXxxz8lMjq1RS5eXaDmueJOLP4R/F7RyFMXs/ZO9WiEDv gPPq9PE3ofOB+SoEptkREhOivb4ErvN+l3eS4qY2reJg0VVN1XJFpbAEdSJIUZ4Y/icw SCjqB/wKh5QxQqcgi6/OJqqWnBZVZBJsTj5F9BXJoaPkWeA1hwExDIvY10sDq2tu+EVh bTlnDJJCKEqb7PRGdr4PDHE8nR52dOf2ndHaqJ7+tDNyND8XzyvrlkB9J/tmNxNgD2sm Ix1A== 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=fyl2kH/w05MmkZOpuh/W2JizBemAH5UgkWhupUIPKmA=; b=JBKNvZT7m4O6wIYgtmvxOxtfBwBqQ3HwcLOolMdyx9cTOn9bnxEZnvJp6SzbUMm4/B 6NeV4HhsAYA163xHKygVDG3aJ6e7DTY1lXh/mtal2zpp13xjv9zo4d+QJ/rOoQdwGaDv y/0veHGEMlRn/b5E8F6llx81dBK6yMgD+mf9VCh04UCMqRv8hm0xtNQMXa3R1OPq2/vr kuer3tQgrh9PIHordGi3Z4q9NawoQr0R3iHc/8xvvi10iryMN9atVYsnKaz3YFaFHR6n bgYqHkTS4h81w6eIARlgxRsSWtdOd6W4Mumwl1OHZDQiyLZBvxwFYkII6YhLAMo2k42F xItA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ticCCuv2; 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 r3-v6si3634984plb.666.2018.03.21.05.09.57; Wed, 21 Mar 2018 05:10:11 -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=ticCCuv2; 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 S1751938AbeCUMIo (ORCPT + 99 others); Wed, 21 Mar 2018 08:08:44 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40239 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751864AbeCUMIc (ORCPT ); Wed, 21 Mar 2018 08:08:32 -0400 Received: by mail-wm0-f65.google.com with SMTP id t6so9368187wmt.5 for ; Wed, 21 Mar 2018 05:08:31 -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=fyl2kH/w05MmkZOpuh/W2JizBemAH5UgkWhupUIPKmA=; b=ticCCuv2eueXzvk8BDvYUGHZ+rPcDASjhlt8pFm+CI3mPUZ3rtHzPmnAD4Wavb5qTl TdgQrl1idbNfjGEsLwOT6elPDqsyXDTeePphzTLKdiJkajk+fE059LQ6cfJmKEspTrNj ALOmINQ6J1uQp2KCc3+sCXvv3hHnyyHZCdJqoKD72RRs4GaYTMXXVczjH5hdIBkOLM33 6/hzanOeffjAhmtDwSX0uydGR7ACZ+H57Loft/IOs9ymvw5TjLFvwuhzZZ+OOWg6BW7+ g2EvLNTA+Ayl3uPtz5ltdF7448MQQ3MDYDihRhWhvN8sRcWG2KQmn5k7FI/mXaTm+WAI poFg== 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=fyl2kH/w05MmkZOpuh/W2JizBemAH5UgkWhupUIPKmA=; b=pcP+/QRysPAUIPPz8dLwUzB2Tc3FP6HRpm9kIX775aTXaFgOytb5I5HQtcp5zL3rjh GVAjgaTXq6pkzd4DTdP5TQBDdjYCyNJhDFHnjHDap7T1FjoqeZsxgiatNlYziCeI/kcu KO6EdoimYlESxQVo8Em8karJxv99F9V91rUmaxgBy0A4jwqUJGxXObpuy5MLbgE7qy53 rqRwSg5qnyQFzwWlLTqYBzq5jT6KGKqdE9kVgJRALNqcolMT2nqZfuNvEDGVXPVZa65y VhTtNT2kiPcTDMEdequ3qBv1lYPjHnoUeE4rA9TrFm7W6O74IT1FxiNmgT0zmL2+FTmU vmdA== X-Gm-Message-State: AElRT7FbpKqxlsShYFDFW6HoAQkIW6QeVVHctNHZnYTTV2ETNgLB1QD0 GJVN9qdZHaiZ7jJL3But5rcpOA== X-Received: by 10.28.145.4 with SMTP id t4mr2388438wmd.14.1521634110648; Wed, 21 Mar 2018 05:08:30 -0700 (PDT) Received: from brgl-bgdev.lan (LFbn-NIC-1-208-99.w2-15.abo.wanadoo.fr. [2.15.55.99]) by smtp.gmail.com with ESMTPSA id 69sm3871018wmp.36.2018.03.21.05.08.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Mar 2018 05:08:30 -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 4/8] clk: davinci: add a reset lookup table for psc0 Date: Wed, 21 Mar 2018 13:08:03 +0100 Message-Id: <20180321120807.18032-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180321120807.18032-1-brgl@bgdev.pl> References: <20180321120807.18032-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 | 8 ++++++++ drivers/clk/davinci/psc.c | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/clk/davinci/psc-da850.c b/drivers/clk/davinci/psc-da850.c index ccc7eb17bf3a..395db4b2c0ee 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,15 @@ 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("davinci-rproc.0", NULL, 15), +}; + static int da850_psc0_init(struct device *dev, void __iomem *base) { + reset_controller_add_lookup("da850-psc0", + 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.1