From patchwork Thu Mar 8 08:23:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 130981 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp6193175lja; Thu, 8 Mar 2018 00:23:43 -0800 (PST) X-Google-Smtp-Source: AG47ELsWrGcMqcc4Px4P5/M6oqzeWkUyRsLnhsFN7lXEhC9pLSSbpB3vvVXKQ9DeaAPseDO7cmOu X-Received: by 10.99.110.201 with SMTP id j192mr20736960pgc.59.1520497423364; Thu, 08 Mar 2018 00:23:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520497423; cv=none; d=google.com; s=arc-20160816; b=eAS9onGxZhMMpz1Td93pwf5GUESkM6/kjoPVSzXJ4gAHXyeWdopI5oEJSg4HF5bTbR dhPy752DMg0SCrBkqXFOHlnVrLyr9agkbWTxXhjMKbvhWIXk3nwzfOXWIYXvLmWyYQop A+ctJWAq8OHWZgvwvu16DyeC0loVteV5Brx0pm647BjTf24C1hCNzJJkn8WTjJYrD55+ X0QO3ze2PTiItVNlMHY84ou68OFGyzjic1v+uK51Pvd0MFFkg73zoZOY/9tsUXBV9t5K KyqiV/Iba8qhUJQCnn+rcJ3Rqhxg60SSn/G9CjXvE81sq+sZB1352Lau+KIhsbh/ofJc F++Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xlgGGb2utKz9QrrkYbCjsCpemLzLEuu7i6rMqYd6meQ=; b=EfrVgCZgtLRm5VESHgurt3RxIZdC0JXa8uZr2tJpcWzuUrgs86Cyt0U84bmKTH16LO kNRK+IANv+AzynQ7PlmsYEqhPOxzJG4Sra0jZeuwpmoPPXq3Hxr4eEJdj1Ad9DCXSO0u L1unTnsPcpTX8ki2mC5Fysq0unsiYl85o92ZdVBPS1DPGu195gGXXheiOn0Bvij5fCyd 40JLPYdo9eo8yQMrpumPJlKfDo3gRez6/C7oGA803ir3YkVyxAqlV8hKIyz1/EI+jg+A +RggsEiRcLaGAH6nsvoxDo4SyLSvaAuKmOgSCb6OCCDTtWy6J7v41/RdxyoJE/Gk0w/+ slvw== ARC-Authentication-Results: i=1; mx.google.com; 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 w3si12628766pgb.258.2018.03.08.00.23.43; Thu, 08 Mar 2018 00:23:43 -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; 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 S964960AbeCHIXj (ORCPT + 28 others); Thu, 8 Mar 2018 03:23:39 -0500 Received: from mx.socionext.com ([202.248.49.38]:24040 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935488AbeCHIXg (ORCPT ); Thu, 8 Mar 2018 03:23:36 -0500 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 08 Mar 2018 17:23:35 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 9A449180230; Thu, 8 Mar 2018 17:23:35 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 8 Mar 2018 17:24:13 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 3E2131A159F; Thu, 8 Mar 2018 17:23:35 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 0D698120534; Thu, 8 Mar 2018 17:23:35 +0900 (JST) From: Katsuhiro Suzuki To: Michael Turquette , Stephen Boyd , Masahiro Yamada , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Masami Hiramatsu , Jassi Brar , linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock Date: Thu, 8 Mar 2018 17:23:32 +0900 Message-Id: <20180308082332.31063-1-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clock for audio subsystem (AIO) on UniPhier Pro4/Pro5/PXs2 SoCs. Signed-off-by: Katsuhiro Suzuki --- drivers/clk/uniphier/clk-uniphier-sys.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.16.1 Acked-by: Masahiro Yamada diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index d244e724e198..06c5269f63f5 100644 --- a/drivers/clk/uniphier/clk-uniphier-sys.c +++ b/drivers/clk/uniphier/clk-uniphier-sys.c @@ -57,6 +57,14 @@ #define UNIPHIER_PRO4_SYS_CLK_USB3(idx, ch) \ UNIPHIER_CLK_GATE("usb3" #ch, (idx), NULL, 0x2104, 16 + (ch)) +#define UNIPHIER_PRO4_SYS_CLK_AIO(idx) \ + UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 8), \ + UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13) + +#define UNIPHIER_PRO5_SYS_CLK_AIO(idx) \ + UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 12), \ + UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2104, 13) + #define UNIPHIER_LD11_SYS_CLK_AIO(idx) \ UNIPHIER_CLK_FACTOR("aio-io200m", -1, "spll", 1, 10), \ UNIPHIER_CLK_GATE("aio", (idx), "aio-io200m", 0x2108, 0) @@ -104,6 +112,7 @@ const struct uniphier_clk_data uniphier_pro4_sys_clk_data[] = { UNIPHIER_PRO4_SYS_CLK_GIO(12), /* Ether, SATA, USB3 */ UNIPHIER_PRO4_SYS_CLK_USB3(14, 0), UNIPHIER_PRO4_SYS_CLK_USB3(15, 1), + UNIPHIER_PRO4_SYS_CLK_AIO(40), { /* sentinel */ } }; @@ -132,6 +141,7 @@ const struct uniphier_clk_data uniphier_pro5_sys_clk_data[] = { UNIPHIER_PRO4_SYS_CLK_GIO(12), /* PCIe, USB3 */ UNIPHIER_PRO4_SYS_CLK_USB3(14, 0), UNIPHIER_PRO4_SYS_CLK_USB3(15, 1), + UNIPHIER_PRO5_SYS_CLK_AIO(40), { /* sentinel */ } }; @@ -149,6 +159,7 @@ const struct uniphier_clk_data uniphier_pxs2_sys_clk_data[] = { /* The document mentions 0x2104 bit 18, but not functional */ UNIPHIER_CLK_GATE("usb30-phy", 16, NULL, 0x2104, 19), UNIPHIER_CLK_GATE("usb31-phy", 20, NULL, 0x2104, 20), + UNIPHIER_PRO5_SYS_CLK_AIO(40), { /* sentinel */ } };