From patchwork Sun Apr 17 12:46:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 8862781 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 058449F441 for ; Sun, 17 Apr 2016 12:46:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B937201CE for ; Sun, 17 Apr 2016 12:46:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CBD38201BC for ; Sun, 17 Apr 2016 12:46:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751840AbcDQMqz (ORCPT ); Sun, 17 Apr 2016 08:46:55 -0400 Received: from sauhun.de ([89.238.76.85]:55957 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752239AbcDQMqy (ORCPT ); Sun, 17 Apr 2016 08:46:54 -0400 Received: from p4fe25326.dip0.t-ipconnect.de ([79.226.83.38]:46192 helo=localhost) by pokefinder.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1arm6G-0000CX-2I; Sun, 17 Apr 2016 14:46:52 +0200 From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Geert Uytterhoeven Subject: [RFC 1/2] clk: renesas: r8a7740: add an "sd" clock Date: Sun, 17 Apr 2016 14:46:40 +0200 Message-Id: <1460897201-7184-2-git-send-email-wsa@the-dreams.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1460897201-7184-1-git-send-email-wsa@the-dreams.de> References: <1460897201-7184-1-git-send-email-wsa@the-dreams.de> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wolfram Sang Create a virtual "sd" clock to feed the MSTP clocks for the SDHI cores. MSTP clocks can change the rate of their parents which is undesired for a generic clock as HP. So, add this static "sd" clock where the MSTP clocks can safely connect to. Signed-off-by: Wolfram Sang --- drivers/clk/renesas/clk-r8a7740.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/renesas/clk-r8a7740.c b/drivers/clk/renesas/clk-r8a7740.c index 2f7ce6696b6c0f..29834c3f22bdea 100644 --- a/drivers/clk/renesas/clk-r8a7740.c +++ b/drivers/clk/renesas/clk-r8a7740.c @@ -119,6 +119,8 @@ r8a7740_cpg_register_clock(struct device_node *np, struct r8a7740_cpg *cpg, parent_name = "system"; if (!(value & BIT(6))) div = 2; + } else if (!strcmp(name, "sd")) { + parent_name = "hp"; } else { struct div4_clk *c; for (c = div4_clks; c->name; c++) {