From patchwork Thu Jun 28 09:57:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10493413 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 F083A601BE for ; Thu, 28 Jun 2018 09:58:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBC6A298BB for ; Thu, 28 Jun 2018 09:58:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFCE8298D0; Thu, 28 Jun 2018 09:58: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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, 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 BBD60298C9 for ; Thu, 28 Jun 2018 09:58:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935209AbeF1J6E (ORCPT ); Thu, 28 Jun 2018 05:58:04 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:47012 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935132AbeF1J6B (ORCPT ); Thu, 28 Jun 2018 05:58:01 -0400 Received: by mail-wr0-f173.google.com with SMTP id t6-v6so4838414wrq.13 for ; Thu, 28 Jun 2018 02:58:00 -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=ORUO3Jx0NIj7th+JdFndVgsL+HT7OGuaxBq0lYbXpQ0=; b=AzgYwwiUBsaJJG5jhWimHMd+dA717lf+Q5QdvNeV9BpI518nTdZ6LR9+lyBQuu6pw6 fOTclI4mbreClt0vjk2f/HFTpKWzizjYWsPM4Zcp2bKbRcYRgqHDW5Sfp2/b6nbS43Rr xeA1tkaqdvQnc+XWz8WAlQzCWluWEvXNaPLBZmJ3zDCoo27PVnLXz/dMdXgA/TQbR9Gf S/uIN7TvydNXnU9wR4h61WWw+iXQv72nWBV9lf5BI3xuYMPR3ZbIkxL3yikLwgSjWBox 3YDNyTlmK0E/mXZPEi+gzbze4Nv0dijpfgQO2RUXIsByk7hH7osvm4ecA5xEFB8xDICU QNwQ== 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=ORUO3Jx0NIj7th+JdFndVgsL+HT7OGuaxBq0lYbXpQ0=; b=J8vgUkyl5Hq7tnsc7W2GR0hLFr/fs/Q20MxUL2jyii/8/ED47lq0XWwySMY0oTJiYc XvvwkFFjdjhWQulpNYgWg4ywSR1yMQBoR7zHSQ8nS44XAYEfUaeeap9P6hh0d2T5Lux4 BnyTsWTnNNKWzN/NcKs1viqu2K8Eygz+Foqa4vE0Cleau0mtSEvCtKrscYmv39S+YuOt Q88Pg3Cp+4KTPKG9JlVElLJju7X+4B7zOAF0gAY7uP6LHvAITzaFqlfXU+7SVdWQqnJh vPG+IgMTLAwlnLbNLShBlgrSNV42CRbzEzJGbnOlhJc+mOtbVuTdCNt3eXHAiedGpN8C OFGw== X-Gm-Message-State: APt69E3q24Al+ocKL5s23ldb06Qn1xOVfprgikTptiHPf06qKbl43Wyr sJYeCNBOZTCRdXv9EG8pIx70Dw== X-Google-Smtp-Source: AAOMgpeBJbVuqgC0qe+W55C+o09SmvzWyA+xTuxHuA0iIAjob/qldD7RHLTerZHpBvRnnKi4b8qeOg== X-Received: by 2002:adf:a706:: with SMTP id c6-v6mr8374033wrd.61.1530179880353; Thu, 28 Jun 2018 02:58:00 -0700 (PDT) Received: from brgl-bgdev.baylibre.local (AStLambert-681-1-87-41.w90-86.abo.wanadoo.fr. [90.86.29.41]) by smtp.gmail.com with ESMTPSA id s8-v6sm1550352wrm.84.2018.06.28.02.57.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 02:57:59 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King , David Lechner , Michael Turquette , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 04/13] clk: davinci: psc-dm646x: use two lookup entries for the aemif clock Date: Thu, 28 Jun 2018 11:57:39 +0200 Message-Id: <20180628095748.4462-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180628095748.4462-1-brgl@bgdev.pl> References: <20180628095748.4462-1-brgl@bgdev.pl> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski We want to be able to get the clock both from the board file by its con_id and from the aemif driver by dev_id. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- drivers/clk/davinci/psc-dm646x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/davinci/psc-dm646x.c b/drivers/clk/davinci/psc-dm646x.c index c3f82ed70a80..20012dc7471a 100644 --- a/drivers/clk/davinci/psc-dm646x.c +++ b/drivers/clk/davinci/psc-dm646x.c @@ -18,7 +18,8 @@ LPSC_CLKDEV1(ide_clkdev, NULL, "palm_bk3710"); LPSC_CLKDEV2(emac_clkdev, NULL, "davinci_emac.1", "fck", "davinci_mdio.0"); -LPSC_CLKDEV1(aemif_clkdev, "aemif", NULL); +LPSC_CLKDEV2(aemif_clkdev, "aemif", NULL, + NULL, "ti-aemif"); LPSC_CLKDEV1(mcasp0_clkdev, NULL, "davinci-mcasp.0"); LPSC_CLKDEV1(mcasp1_clkdev, NULL, "davinci-mcasp.1"); LPSC_CLKDEV1(uart0_clkdev, NULL, "serial8250.0");