From patchwork Wed Aug 2 09:34:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 9876461 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 4B29860360 for ; Wed, 2 Aug 2017 09:43:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C71428798 for ; Wed, 2 Aug 2017 09:43:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30ECC287A6; Wed, 2 Aug 2017 09:43:01 +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 9592728798 for ; Wed, 2 Aug 2017 09:43:00 +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=9VdEf5c4LMCQ2tv2TqCJEovufy9euGOA1QTfYMEgORg=; b=aqi+gLmlvcbmLIZR8RocbveKEM LNQB/LDgSx9FpgYXPOSVi8TZlEBMsuc1QhyU1Tky1IcK887jz2Veln/s6Yu7LXldLgruaesjgyP3Y MdWaAAz+I8y3V0G5hbyvqbqzGrVllSFyhUlIG/NYKVfKMyAgVChLYXd5lJfrqn5zGwXVXqlpxB07e 6teQGW4Xzgom/eDDyf0juhg0tBFEQLuQxZ+1ka2l3l58vBvrVCTOpFbKBC/315CV0xlckTPHk341C caacrtLm/lyn/vt3fZ80VSATmI5YkvBNB/ZdVki74tKWr4bR7gNC1OyePeVoPT3Efjs0cfHm9bsGe p76GV8+A==; 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 1dcqAC-0005Qw-R3; Wed, 02 Aug 2017 09:42:00 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dcq9c-0004lC-H2 for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Aug 2017 09:41:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yjcqmE7k0lcmIGKiuErmJhgnSb8CGNC2SrAwO4blsw4=; b=tuxrimedWdI4hvKvC7fLxaenS I6d9ZhPxSzOivCyG8+xGAYWHUn534CfnelxpXzAvukwlnW2W0xAv0av4to8bgPeP6rqwUygCSSt6w s9J+o5qyLhh2ibkTlO8TjXWn88Fty++dGKOlcLRxez7YXLhN1JxU7oYHEQLjx+/pZU4r0kIMqMQFJ IP+Cm11y+V/noleDKlL6r3n6kaE0dlD4Bml7+H/94+i/pawuAjmnDshS2aRBRYXcKnR8kDcDDL5ze WnvQHyK40VfUB+qtG7qufxzbkrY4Yoi4nUuni3u6qIhU6UX5ld4Q5XSa81TK6p4KVDAmgvjHWegyI oc6hdDp7g==; Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dcq3z-000791-J2 for linux-arm-kernel@lists.infradead.org; Wed, 02 Aug 2017 09:35:37 +0000 Received: by mail-wr0-x244.google.com with SMTP id y43so3231448wrd.0 for ; Wed, 02 Aug 2017 02:35:15 -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=yjcqmE7k0lcmIGKiuErmJhgnSb8CGNC2SrAwO4blsw4=; b=U08XNWYJK3vK5PbwiRznOdiADYiJ5vn0AHdkoQxV7VtkGdRJT8dn+alnfbpG0ztEzo GDUcFm5layOkce9YQUAdO1SDQaPLSFC6dYZj6Kemoramf+pZqKFNLPZXHNl+sLktIq65 NkeV+mAbQN1DYXsJV6rutPQxdIWS8vzZ7AOQwRSrMRCD5brEvsWPcR04dSnyDp1CkxYq yzt5ygAB8ZFnduDpxD4ZXobTg4GNQpK3jjH51641pLqC6ULnmZ3dYGDCCy5sFjwuDnT7 wiILeORAEPE3elnRJXL+ZzxH5EDJVLoaJcSjXvVGDgdXYydLafL7JL6/9dj1jXMr7GK+ ZsLg== 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=yjcqmE7k0lcmIGKiuErmJhgnSb8CGNC2SrAwO4blsw4=; b=U6ETd98DA0zuU6kGXiDHrAj7+C0RalL5Xlw4CwmG6DDSWPdWJD6k8yca4oyg5kXJHZ VtPYkilijuqPQBmrOeWDBbHdqxhctC+NxYoiqVcbOaUckPj4W5CVpr4jIYgxCal948Ct 9RcZZd3ysxEASQqRXqSNa34CWugTA1OXLO9o/GwGe5zBpUxLbg//Ne1TW+8W3HBYtWkf jETWxHUOzfrFhisMNBZMpW6iFFSFgRMYzDAd0LbBkn3gfgbzArM4Qu2I9li9E9MmsA9P oC5F1SyQqlKBr2i+j+K3mBxltsfB2Cl2xDIhA/4bSg+A8MW7ZFeVTm563xr6Q4ZWzSg1 hHbw== X-Gm-Message-State: AIVw110ErMj4G0rIgZFXDmvRe5mq/NoIaCHmjFrv9NiFnWVXrYSJEZrs p3YQWSclY4F8RA== X-Received: by 10.223.131.130 with SMTP id 2mr19727337wre.51.1501666514225; Wed, 02 Aug 2017 02:35:14 -0700 (PDT) Received: from localhost.localdomain ([2001:470:9e39::48e]) by smtp.gmail.com with ESMTPSA id 91sm32058876wrg.83.2017.08.02.02.35.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 02:35:13 -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 5/8] MIPS: BCM63XX: provide enet clocks as "enet" to the ethernet devices Date: Wed, 2 Aug 2017 11:34:26 +0200 Message-Id: <20170802093429.12572-6-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_103535_640621_35AF4EAE X-CRM114-Status: GOOD ( 11.46 ) 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 lookups to provide the appropriate enetX clocks as just "enet" to the ethernet devices. Signed-off-by: Jonas Gorski --- arch/mips/bcm63xx/clk.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/mips/bcm63xx/clk.c b/arch/mips/bcm63xx/clk.c index 0b898e5e4c5b..8a089a92e029 100644 --- a/arch/mips/bcm63xx/clk.c +++ b/arch/mips/bcm63xx/clk.c @@ -370,6 +370,8 @@ static struct clk_lookup bcm3368_clks[] = { CLKDEV_INIT(NULL, "usbd", &clk_usbd), CLKDEV_INIT(NULL, "spi", &clk_spi), CLKDEV_INIT(NULL, "pcm", &clk_pcm), + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet0), + CLKDEV_INIT("bcm63xx_enet.1", "enet", &clk_enet1), }; static struct clk_lookup bcm6328_clks[] = { @@ -396,6 +398,7 @@ static struct clk_lookup bcm6338_clks[] = { CLKDEV_INIT(NULL, "usbh", &clk_usbh), CLKDEV_INIT(NULL, "usbd", &clk_usbd), CLKDEV_INIT(NULL, "spi", &clk_spi), + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet_misc), }; static struct clk_lookup bcm6345_clks[] = { @@ -409,6 +412,7 @@ static struct clk_lookup bcm6345_clks[] = { CLKDEV_INIT(NULL, "usbh", &clk_usbh), CLKDEV_INIT(NULL, "usbd", &clk_usbd), CLKDEV_INIT(NULL, "spi", &clk_spi), + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet_misc), }; static struct clk_lookup bcm6348_clks[] = { @@ -422,6 +426,8 @@ static struct clk_lookup bcm6348_clks[] = { CLKDEV_INIT(NULL, "usbh", &clk_usbh), CLKDEV_INIT(NULL, "usbd", &clk_usbd), CLKDEV_INIT(NULL, "spi", &clk_spi), + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet_misc), + CLKDEV_INIT("bcm63xx_enet.1", "enet", &clk_enet_misc), }; static struct clk_lookup bcm6358_clks[] = { @@ -437,6 +443,8 @@ static struct clk_lookup bcm6358_clks[] = { CLKDEV_INIT(NULL, "usbd", &clk_usbd), CLKDEV_INIT(NULL, "spi", &clk_spi), CLKDEV_INIT(NULL, "pcm", &clk_pcm), + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet0), + CLKDEV_INIT("bcm63xx_enet.1", "enet", &clk_enet1), }; static struct clk_lookup bcm6362_clks[] = {