From patchwork Wed Sep 20 11:14:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 9961299 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 B10DF600C5 for ; Wed, 20 Sep 2017 11:18:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2F42290B6 for ; Wed, 20 Sep 2017 11:18:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97C5D290B9; Wed, 20 Sep 2017 11:18:16 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED 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 16910290B6 for ; Wed, 20 Sep 2017 11:18:15 +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=lTDkrrEaiq3OEa7DFEeMDgbieOXjX3Gg9Pj623JRuD0=; b=gb3pgjNkYqbtHxvYjF9PB4tDDB mGFVPQ7H32nHBBfSNxqs6DZYerIqNK8CqelO8K/nw+YmT6sFeF0o8Tle0fEfohU5k/vrFjGCCiB7Y uIT3Ig5m0jJ6JBFs9utLVMJoDvZC9F6oANhQWDlujtIkGsi4Dbicgtg6Ld1XF0KZmFrek3LKQLTjz rdywWWVWf2c7ZEN45R7mbWImjJy3vwrrmQQxDmU+/KDzefFkJNPdYiFBG4IzRYNHfigptz8vd/rGW KVMSnwxGpxVdiOLY6QXmHX2Fi7FIsE9RCGCcdzHl3x7hPFuV4Q9mVvyRvmU6Z0LLiJylSybynmucn AOKIWO+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 1dud14-0002pa-Vi; Wed, 20 Sep 2017 11:18:07 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ducza-0001Zp-EK for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2017 11:16:41 +0000 Received: by mail-wm0-x242.google.com with SMTP id m127so2132455wmm.0 for ; Wed, 20 Sep 2017 04:16:18 -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=9ig83YI1v0h3OI/kJu0Klv85ij2jxa/tBRknMIUtkjw=; b=gb6cQLKpBQ9sNzI06NCAMOc716TGGNysDWar58WARdiyT+2f2+1Xnuen9tq1Gd0EzY q/A9m0Gnp458EHSJrG/65yL9NyZOabcSucN+jIhqQb12yWXNf++gL+p6ms2u7l7UHS9o MAQ+xGxEXqipP978Z1AcU3MhBEXp0bjplY2U3Hxv4WRN2WNaLb9ogWDkFFuz15IGa3jM e+2/ZswkKdVC9EI8Bv/DHIage46rS2kmHVVYeV+ZKNtLrkV67lbM5T27GVPjTwb3tpOd Jgqg5tpH5WJHwd7zJqhCgZeFHf9Q99RAY/Sl32pQGXA8bR1q1+uw0P4hBcCpVq+cnLmU mbxA== 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=9ig83YI1v0h3OI/kJu0Klv85ij2jxa/tBRknMIUtkjw=; b=VICmYt6+c2Io8SHD/A7B3KVzqLVFvsTJehIRECUa7BT3fHsuVty0cyocIM1d4AzJR7 HFMnvqC3cTl9ICRMcw3mVkexmZZgC+Hnb8MJmgsacvAe+DQOLo4dLoZFGIVH/bpiM4Cr slEwRGyFcH4JKHozWG0+VrXwwo6gtlGQjbS5WdVvIM0oq/jxXdEuINoK23NkV3c4rbvP k1rI6kUbmYkmnvEvuoqvJNbzFCGvywlQ/im5cALXCehoI3moztQ+YKUO8K3R5rtJP0MR PsyPUXur8/7BiRXRUXp/yNh/6AZGNGhFnLsx0U3G0eGg21SUSKX8POGwVsl88rutyfD0 ZOdQ== X-Gm-Message-State: AHPjjUjLpSoim1vioQJlMV8kz0OFE2zks6W+1Gn0U7BB/MtQ5Qod10HI mpJS0CcCgqjwJxqHcfk6/f8= X-Google-Smtp-Source: AOwi7QCDFgXHK9k0UHWX1m0SpghaXOPpg+cfdgatt2ojio/59NsrLoAtQGGP8oLYIz6xg9L8tgTinw== X-Received: by 10.80.183.148 with SMTP id h20mr4317690ede.178.1505906177549; Wed, 20 Sep 2017 04:16:17 -0700 (PDT) Received: from localhost.localdomain ([2001:470:9e39::48e]) by smtp.gmail.com with ESMTPSA id s12sm884513edd.25.2017.09.20.04.16.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 04:16:17 -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 Subject: [PATCH V2 7/8] MIPS: BCM63XX: provide enet clocks as "enet" to the ethernet devices Date: Wed, 20 Sep 2017 13:14:07 +0200 Message-Id: <20170920111408.29711-8-jonas.gorski@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170920111408.29711-1-jonas.gorski@gmail.com> References: <20170920111408.29711-1-jonas.gorski@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_041634_899118_B8B35911 X-CRM114-Status: UNSURE ( 9.43 ) 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 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. Reviewed-by: Florian Fainelli 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 ba5758551c94..2018425fe97e 100644 --- a/arch/mips/bcm63xx/clk.c +++ b/arch/mips/bcm63xx/clk.c @@ -377,6 +377,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[] = { @@ -404,6 +406,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[] = { @@ -417,6 +420,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[] = { @@ -430,6 +434,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[] = { @@ -445,6 +451,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[] = {