From patchwork Wed Aug 2 09:34:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 9876443 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 D311660360 for ; Wed, 2 Aug 2017 09:36:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA8632875F for ; Wed, 2 Aug 2017 09:36:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF6CD287A5; Wed, 2 Aug 2017 09:36:13 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 19EAE2875F for ; Wed, 2 Aug 2017 09:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=sgMjng1WxtGFBwZYBDELFSuvKG0aov/68tdLZ/3XZMQ=; b=nMT07eIJ79LLREhAWf716DYPKl lJIkpGwZ48cJ4hpgrAAiBU31xck/8SKVgoBQDmwUPoeEZ8YXdHGlY1YMKrgd5vp0aqmNbz/2o9a2F hfS2Y2VuauHzwzZonk+8B7AWtarV/2BrRWcZqiWS3nolaGUfBayR9Wpov1wQqfW0YYhji6Ly4adLh qNipQypFT3+4q8iUnjTsJchPdwW1ZHWpDdvjh19oC4MYFBJXTZVrcvu3OIYBBovtdon/dSWDepDox diqAIF375kXMI+REuk0cHPBuItA2JtlknvPJRICRPvoqq62NJNe//eH9LzDgr2UzGkwbhdEn32hZs 7SpP9PQA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dcq4W-0001cX-P5; Wed, 02 Aug 2017 09:36:08 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dcq3v-00008f-Mv for linux-arm-kernel@lists.infradead.org; Wed, 02 Aug 2017 09:35:37 +0000 Received: by mail-wm0-x241.google.com with SMTP id t138so6420967wmt.4 for ; Wed, 02 Aug 2017 02:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z3bSc4kGKLeaSmAxUwASxcQq0RmD0aoerhdUQfCHq28=; b=FXHe15gt3hde/iBUkjdYwEzGu2hCQ5uc9G2h4hPOSvM2igA0VqOD+Hb8HLYBmQDVNH wF+DVOoi2JJ6lG7tgYBKu6V0YEc8pDO3a1vwcYaLOlnEcQB5C65GOrUzE5t6Ynm7EbZZ oGxKdsEsSzaEBlN3r2CqcxUh78kg2aemheHGQ3eOAgZfk1ZvozL9a3est12KBrrUq0Ac ZKHlPBPLC83TWyZFdpEUVVKnE3QX6ac4QRXlEewkPKNycL2ixprU44sQrovmS7oXYX4u Kh6QPf7g3YkPmcr6UbxbZJtb8Vkj1Pjv3p6gjrGyyvF2l2BAQHerzkBEiZ1EmoceZpyl dKFQ== 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=z3bSc4kGKLeaSmAxUwASxcQq0RmD0aoerhdUQfCHq28=; b=Nis85JsLrRx26wYLofG/6+AJKVx6ZcC029UNYK9duYlo4HB7+PIiZeF1qZpAlLzFMp hLvbAQEK4iTlKE1o6vu9FKn5MQE04Un/C2xHqqS0Una0CvT4umW5k6W+E0JvjrWtcvvV Yk27DoksJejL2PUwTcpYvr6DbimjvSQ4XJsb0iJTtXPZNW6OGXgLA9+mNic9Six4XQAg 8/usAEeEz0HIZM0mhV5lL1XZeZjP3O+YzpzG7C5F0COSKfh8QvhXiiE4S5k1YmWcHgnE mv6xdUD+2MC563Ot644++JslcGGsRBFx71pk9zBH8ubYkHVRADhA/l8PyqEal7lseVKs 2abA== X-Gm-Message-State: AIVw112+wOgaWQAwJgEir50FO7biZ6f2Pyj19DcNAutPXcjXmGJxt+oq lBdWazVpevygiw== X-Received: by 10.28.5.19 with SMTP id 19mr3317087wmf.20.1501666509616; Wed, 02 Aug 2017 02:35:09 -0700 (PDT) Received: from localhost.localdomain ([2001:470:9e39::48e]) by smtp.gmail.com with ESMTPSA id 91sm32058876wrg.83.2017.08.02.02.35.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 02:35:09 -0700 (PDT) From: Jonas Gorski To: linux-mips@linux-mips.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 2/8] MIPS: BCM63XX: provide periph clock as refclk for uart Date: Wed, 2 Aug 2017 11:34:23 +0200 Message-Id: <20170802093429.12572-3-jonas.gorski@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170802093429.12572-1-jonas.gorski@gmail.com> References: <20170802093429.12572-1-jonas.gorski@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170802_023532_129393_99BC51E1 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Florian Fainelli , Greg Kroah-Hartman , Kevin Cernekee , Russell King , Ralf Baechle , Rob Herring , bcm-kernel-feedback-list@broadcom.com, Jiri Slaby , "David S. Miller" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a lookup as "refclk" to describe its function for the uarts. Signed-off-by: Jonas Gorski --- arch/mips/bcm63xx/clk.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/mips/bcm63xx/clk.c b/arch/mips/bcm63xx/clk.c index eb1cb0bf930b..0b898e5e4c5b 100644 --- a/arch/mips/bcm63xx/clk.c +++ b/arch/mips/bcm63xx/clk.c @@ -360,6 +360,8 @@ EXPORT_SYMBOL_GPL(clk_round_rate); static struct clk_lookup bcm3368_clks[] = { /* fixed rate clocks */ CLKDEV_INIT(NULL, "periph", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), /* gated clocks */ CLKDEV_INIT(NULL, "enet0", &clk_enet0), CLKDEV_INIT(NULL, "enet1", &clk_enet1), @@ -373,6 +375,8 @@ static struct clk_lookup bcm3368_clks[] = { static struct clk_lookup bcm6328_clks[] = { /* fixed rate clocks */ CLKDEV_INIT(NULL, "periph", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), /* gated clocks */ CLKDEV_INIT(NULL, "enetsw", &clk_enetsw), CLKDEV_INIT(NULL, "usbh", &clk_usbh), @@ -384,6 +388,7 @@ static struct clk_lookup bcm6328_clks[] = { static struct clk_lookup bcm6338_clks[] = { /* fixed rate clocks */ CLKDEV_INIT(NULL, "periph", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), /* gated clocks */ CLKDEV_INIT(NULL, "enet0", &clk_enet0), CLKDEV_INIT(NULL, "enet1", &clk_enet1), @@ -396,6 +401,7 @@ static struct clk_lookup bcm6338_clks[] = { static struct clk_lookup bcm6345_clks[] = { /* fixed rate clocks */ CLKDEV_INIT(NULL, "periph", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), /* gated clocks */ CLKDEV_INIT(NULL, "enet0", &clk_enet0), CLKDEV_INIT(NULL, "enet1", &clk_enet1), @@ -408,6 +414,7 @@ static struct clk_lookup bcm6345_clks[] = { static struct clk_lookup bcm6348_clks[] = { /* fixed rate clocks */ CLKDEV_INIT(NULL, "periph", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), /* gated clocks */ CLKDEV_INIT(NULL, "enet0", &clk_enet0), CLKDEV_INIT(NULL, "enet1", &clk_enet1), @@ -420,6 +427,8 @@ static struct clk_lookup bcm6348_clks[] = { static struct clk_lookup bcm6358_clks[] = { /* fixed rate clocks */ CLKDEV_INIT(NULL, "periph", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), /* gated clocks */ CLKDEV_INIT(NULL, "enet0", &clk_enet0), CLKDEV_INIT(NULL, "enet1", &clk_enet1), @@ -433,6 +442,8 @@ static struct clk_lookup bcm6358_clks[] = { static struct clk_lookup bcm6362_clks[] = { /* fixed rate clocks */ CLKDEV_INIT(NULL, "periph", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), /* gated clocks */ CLKDEV_INIT(NULL, "enetsw", &clk_enetsw), CLKDEV_INIT(NULL, "usbh", &clk_usbh), @@ -446,6 +457,8 @@ static struct clk_lookup bcm6362_clks[] = { static struct clk_lookup bcm6368_clks[] = { /* fixed rate clocks */ CLKDEV_INIT(NULL, "periph", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph), + CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph), /* gated clocks */ CLKDEV_INIT(NULL, "enetsw", &clk_enetsw), CLKDEV_INIT(NULL, "usbh", &clk_usbh),