From patchwork Tue May 15 02:14:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 135805 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp381995lji; Mon, 14 May 2018 19:14:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpL5o/ggNt+VeP9YL8YGjkpmCU0Z2Fv63FA9r2/BxTdM8B0rqxZ7b4yy1gCbulfU9J2nsmK X-Received: by 2002:a17:902:7b97:: with SMTP id w23-v6mr12429224pll.116.1526350485886; Mon, 14 May 2018 19:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526350485; cv=none; d=google.com; s=arc-20160816; b=kXdGGQ4jnXRZPtYd0cUoCbH9G18PvC9JO0AeLWqldtndM0pOOmooAd5Uu6C4rHUT/d VEcU1+07BWnBW7ziCiwYyAJVUM68C/1C345/dUJAGCPBf9U6g/s7fYiXDT/YQlwZZ/vc oO9DUxp+bb6Wximp92V9pXegnewxVN0wOPc+58HQWtQ2rQVLNZTWhrztsNw8ghO7EkIw Pl3mW5u7uT4NVO3UgTiczE/BEXwYG7YG6vBSZkTIHGFQzADOvrDLaIftE2fhmzvV3Esv DEotX0+mR/rbhmgbxB7635G6k2/7Xm21MgOT6P78cbFwcuaQts2+Xe9H+OWxL3dN4JFv MkgA== 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=31t5qX+/O3dZB23ow+SggqPrEELfbbRkkY0IpdXhPsM=; b=nICUlXzhSUmqma4Ll087MVNyYys0cYkR0G4pBR1IH3DnJnmRdXoa+izLu6Yodok5Yc sHsLWb7MRRjVzlTPIhFjlD0x6wtKbn+YHUmueM5R9Mt5mNLiuUnO7FuZhpo9ks298+38 NPPFCroEh4UTm5KjQp8CyCzU6iabZwYZk8NwaI0i89UMYb1Qp4NRBQIQfqN8AJ/UrRuv 6zkbHIzaUYHDu54modtQvJ8YMfxKPte/XE8+fpqee7n4LkoFYyQF+wO7Ez1HTGMyYoVU BPaqX+2xwzAneTHpvO9U1joppZzHvNAGtPWArBBehx/x5AlRo7q7w30A45+AUF6mLf15 /DbQ== 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 ay2-v6si10601237plb.210.2018.05.14.19.14.45; Mon, 14 May 2018 19:14:45 -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; 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 S1752136AbeEOCOk (ORCPT + 29 others); Mon, 14 May 2018 22:14:40 -0400 Received: from mx.socionext.com ([202.248.49.38]:43834 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752044AbeEOCOj (ORCPT ); Mon, 14 May 2018 22:14:39 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 15 May 2018 11:14:37 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 095C81800ED; Tue, 15 May 2018 11:14:38 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 15 May 2018 11:14:37 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id C25BA1A01CB; Tue, 15 May 2018 11:14:37 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 90BAA120423; Tue, 15 May 2018 11:14:37 +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 RESEND] clk: uniphier: add LD11/LD20 stream demux system clock Date: Tue, 15 May 2018 11:14:16 +0900 Message-Id: <20180515021416.31760-1-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clock for MPEG2 transport stream I/O and demux system (HSC) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki Acked-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-sys.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.0 diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index ebc78ab2df05..4f5ff9fa11fd 100644 --- a/drivers/clk/uniphier/clk-uniphier-sys.c +++ b/drivers/clk/uniphier/clk-uniphier-sys.c @@ -51,6 +51,9 @@ #define UNIPHIER_LD11_SYS_CLK_STDMAC(idx) \ UNIPHIER_CLK_GATE("stdmac", (idx), NULL, 0x210c, 8) +#define UNIPHIER_LD11_SYS_CLK_HSC(idx) \ + UNIPHIER_CLK_GATE("hsc", (idx), NULL, 0x210c, 9) + #define UNIPHIER_PRO4_SYS_CLK_GIO(idx) \ UNIPHIER_CLK_GATE("gio", (idx), NULL, 0x2104, 6) @@ -182,6 +185,7 @@ const struct uniphier_clk_data uniphier_ld11_sys_clk_data[] = { /* Index 5 reserved for eMMC PHY */ UNIPHIER_LD11_SYS_CLK_ETHER(6), UNIPHIER_LD11_SYS_CLK_STDMAC(8), /* HSC, MIO */ + UNIPHIER_LD11_SYS_CLK_HSC(9), UNIPHIER_CLK_FACTOR("usb2", -1, "ref", 24, 25), UNIPHIER_LD11_SYS_CLK_AIO(40), UNIPHIER_LD11_SYS_CLK_EVEA(41), @@ -215,6 +219,7 @@ const struct uniphier_clk_data uniphier_ld20_sys_clk_data[] = { UNIPHIER_LD20_SYS_CLK_SD, UNIPHIER_LD11_SYS_CLK_ETHER(6), UNIPHIER_LD11_SYS_CLK_STDMAC(8), /* HSC */ + UNIPHIER_LD11_SYS_CLK_HSC(9), /* GIO is always clock-enabled: no function for 0x210c bit5 */ /* * clock for USB Link is enabled by the logic "OR" of bit 14 and bit 15.