From patchwork Mon Jan 28 18:04:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 156821 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3719981jaa; Mon, 28 Jan 2019 10:05:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN4XZlZmSTbQSkG1QU+1UUHkZmMlTQWJAQQ+i0pNCorBxsM9oqQjtFNrubiIBffLlzCdosIa X-Received: by 2002:a62:4156:: with SMTP id o83mr22775933pfa.72.1548698716603; Mon, 28 Jan 2019 10:05:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548698716; cv=none; d=google.com; s=arc-20160816; b=oheCwcf9p12B53RSH9g/lsR52kH5noBH/Cx5/sqLcKio+ojfs4AVdev6T7qjXbpp6C KImWL+1ZjEnf8atju7XBmqDVYa6TUjQJjL8/Mspxjf3PsQrsFnYWq0cgiAVqHR6qSWKn aK7wobuIA2Lj23v/mHCufbBVenkWVvlpe5aWspWK5gVSSQ8h44MUEwBI1SB1OrNToShW W2OMoDFSQsXb5bDeIENbTjXoQDIi77QhQ+ctjOdyvHNIuE/63g5hWh+C1k+kAW4gJbJe 55XhhXukrnkhtMEpfB3NCvqE5ozM/BLTAigycSlut26ytmzbbqQgE4Ievi+4P9hMiKiG 0cxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4wf9FAXSPyYzzMogrRK8K8vMBiOAXKZiQZa3fRw2VeY=; b=fIU6+YJ0ontONGnU0B56/DmF8pCDnJV4U7D+jnNXSvhIpe9wOhg20CDXQ3NBYhTryN ShdpK30tpK6EzmjbRnNfh5jJaD05pqnvl+1z6AUv6PmdpHF/Lq3+OF5kXPnps0EL9Wwn cuH2r8Lg8X3lFh/YOeCOhzvMZxNA/TaLsKS3rHbC7EEWEzHb9SHlHDMGZxgBhnbL7qp/ 6SswaEhN0NnsqpbK54m9iHjxfcNKDMSojJp6BBVyfeUC6dQkf9wp+l6yrX/lAnJT5XQ9 wvIkFUKGmNknin/71CfRKuwExyEdGeHhL9X81X9KL6WUwQmCIPNfEVUVIgrmLMuizYln 6oiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=pAVKDPg0; 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 n1si33226380pfh.96.2019.01.28.10.05.16; Mon, 28 Jan 2019 10:05:16 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=pAVKDPg0; 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 S1727454AbfA1SFO (ORCPT + 31 others); Mon, 28 Jan 2019 13:05:14 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55951 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727322AbfA1SFF (ORCPT ); Mon, 28 Jan 2019 13:05:05 -0500 Received: by mail-wm1-f67.google.com with SMTP id y139so14893884wmc.5 for ; Mon, 28 Jan 2019 10:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4wf9FAXSPyYzzMogrRK8K8vMBiOAXKZiQZa3fRw2VeY=; b=pAVKDPg0Pm08cuC8o0hw5D/VrYpOKQ6CKzqXA6L/cQ6OzR7OMKDBtPu4Aghtl8Sx47 RoDoP4Yh/ydPBu2tTQGJll0VfUElhArZksnOZ7/SNkJjFsJ+QHBvI02iR//UIU/Zlj92 AijANg0jt6jMbZpvcNhTRF4fDcWlxphkLBVIFrA/fbCkM7DRbPLNnbLBqsPnvwqLOz4L W27uG/V+37FNXPyqp1HysQmNQXBPOFh7qkKPWCHIandCIvV5DoI87D1L/IprVTk7hkyp ZQY7s8ze0GnSpSPvsVjNcjIDYU3nwRXnxsXBu1EBBZQYuSnYRn+ejlquTub0LXhjfRoV yO0A== 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:mime-version:content-transfer-encoding; bh=4wf9FAXSPyYzzMogrRK8K8vMBiOAXKZiQZa3fRw2VeY=; b=ReAEy6w0EjgKacmPjjVRGy7D9h3Pe2PQPCeqHP7E8Vt3M1KOzxC5/w3+LVl7xipUwP zn++wZqYAvsKCvjH/7D+/S3okgHt0GE/s8Gyc+Gb2nRZ+VVz0UCdp6bm2Xtij/8lvyjo tEpSn1j+qUwtxq3uBZSlaeiJcGUs+gBzyC8WmsLXQtH0V6n53FmNmcKxADM8sPf0xH9N eMUSGUUzrOoqasKrApKkc8oreyIQ+qm6qp4YQPeOEREQjQYFszcrv7MWi90X/wbG2KcS DeV9kE2dgj2V/2cdKFLuHDQnH/rYjIZtQVxkDdUwEbzHpL7WpppsdN104cgbFHO169T3 meiQ== X-Gm-Message-State: AJcUuke16gv+XsDaAGrMPNoNNYmbmg+klsitE1YCjdLFHgIfMn2DYEOy V1Ng23ATdxue1l26p3dizPN8O47SnXI= X-Received: by 2002:a1c:a68f:: with SMTP id p137mr16745488wme.64.1548698703842; Mon, 28 Jan 2019 10:05:03 -0800 (PST) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id p6sm145548193wrx.50.2019.01.28.10.05.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 10:05:03 -0800 (PST) From: Jerome Brunet To: Neil Armstrong , Stephen Boyd , Michael Turquette Cc: Jerome Brunet , Kevin Hilman , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 13/14] clk: meson: move sclk-div out of clkc-audio Date: Mon, 28 Jan 2019 19:04:29 +0100 Message-Id: <20190128180430.28689-14-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190128180430.28689-1-jbrunet@baylibre.com> References: <20190128180430.28689-1-jbrunet@baylibre.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-audio.c | 2 +- drivers/clk/meson/sclk-div.c | 9 ++++++++- drivers/clk/meson/{clkc-audio.h => sclk-div.h} | 6 +++--- 3 files changed, 12 insertions(+), 5 deletions(-) rename drivers/clk/meson/{clkc-audio.h => sclk-div.h} (79%) -- 2.20.1 diff --git a/drivers/clk/meson/axg-audio.c b/drivers/clk/meson/axg-audio.c index 8db0508ec6ab..7ab200b6c3bf 100644 --- a/drivers/clk/meson/axg-audio.c +++ b/drivers/clk/meson/axg-audio.c @@ -14,11 +14,11 @@ #include #include -#include "clkc-audio.h" #include "axg-audio.h" #include "clk-input.h" #include "clk-regmap.h" #include "clk-phase.h" +#include "sclk-div.h" #define AXG_MST_IN_COUNT 8 #define AXG_SLV_SCLK_COUNT 10 diff --git a/drivers/clk/meson/sclk-div.c b/drivers/clk/meson/sclk-div.c index d3eea53945e9..3acf03780221 100644 --- a/drivers/clk/meson/sclk-div.c +++ b/drivers/clk/meson/sclk-div.c @@ -16,8 +16,11 @@ * duty_cycle = (1 + hi) / (1 + val) */ -#include "clkc-audio.h" +#include +#include + #include "clk-regmap.h" +#include "sclk-div.h" static inline struct meson_sclk_div_data * meson_sclk_div_data(struct clk_regmap *clk) @@ -242,3 +245,7 @@ const struct clk_ops meson_sclk_div_ops = { .init = sclk_div_init, }; EXPORT_SYMBOL_GPL(meson_sclk_div_ops); + +MODULE_DESCRIPTION("Amlogic Sample divider driver"); +MODULE_AUTHOR("Jerome Brunet "); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/meson/clkc-audio.h b/drivers/clk/meson/sclk-div.h similarity index 79% rename from drivers/clk/meson/clkc-audio.h rename to drivers/clk/meson/sclk-div.h index 1eaf4ecac4f7..b64b2a32005f 100644 --- a/drivers/clk/meson/clkc-audio.h +++ b/drivers/clk/meson/sclk-div.h @@ -4,8 +4,8 @@ * Author: Jerome Brunet */ -#ifndef __MESON_CLKC_AUDIO_H -#define __MESON_CLKC_AUDIO_H +#ifndef __MESON_SCLK_DIV_H +#define __MESON_SCLK_DIV_H #include #include "parm.h" @@ -19,4 +19,4 @@ struct meson_sclk_div_data { extern const struct clk_ops meson_sclk_div_ops; -#endif /* __MESON_CLKC_AUDIO_H */ +#endif /* __MESON_SCLK_DIV_H */