From patchwork Thu May 9 20:29:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 10937635 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 42DB41515 for ; Thu, 9 May 2019 20:30:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 335C628A71 for ; Thu, 9 May 2019 20:30:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3153E28B16; Thu, 9 May 2019 20:30:19 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBC4628B05 for ; Thu, 9 May 2019 20:30:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726939AbfEIUaK (ORCPT ); Thu, 9 May 2019 16:30:10 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:43613 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726701AbfEIUaK (ORCPT ); Thu, 9 May 2019 16:30:10 -0400 Received: by mail-yw1-f67.google.com with SMTP id p19so2908895ywe.10; Thu, 09 May 2019 13:30:09 -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=s82+opXHpmp64Nz4MPGFV0t/BAuzu71N7INCBgfaQTY=; b=K5bD6V37E1rdQ5p1wr2nXyvqaLA0XYp2KfF6z7BOX3FuTRXXoR6e8NuS/cQreCmBjl mvNn8xBdXpj8mnVaxAG+DjKzqSM3+CgFa3daukKCoxorjoHJAQ/n3lCm1sf8uAFxBjY/ zsSnzn1stvCG6VL06lr9oqVCGlx4Bd8weSpaeA2Ot4KeXBKT3BsLlslMy40HopsWTQeF lRanxQVrzvQ1h9Lv3iRH53K89tDuLmMlzUvtIRIHcLl5tvgW2oQp4XB1Pj+YRhjYCv4G wNIrovNokoFmBaLAjrLjxWOYI+Oe0oU/zDMDyWckXjCj5NhX8GKIRCjoG/3oXFA2V2DU PKWg== 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=s82+opXHpmp64Nz4MPGFV0t/BAuzu71N7INCBgfaQTY=; b=SODG629kHRkCIj4PE2pHdiCblBvwGk6eo9Gv4YhfMgsVz6+oqlztUn6xmE2Xg2dTkk k32E/ueq2oxjXYf21EVNhMEoYamXmnntawOAi+x3f2OPaS2E0EqBU2oZu0MiAOMVSm99 nQZyvFe6EDDSbj6unSdPy6u2cTGF9mEFc3wtlx99mV95DLoHQDOmwyGmK9a3NTQXXxJr JwtfMHL7NiPBZmmezyUaF3WTV94ZZCJWRbEXNY/rMjP8CYL1RVDOeI3I7zYkt5OB4nFs 5cApjNMtQyIsMWGKrLHaweq2D7ly9lwXXMC9CjgE+NkI8rPcQp88PFZISlPaBNMOQv82 3DeA== X-Gm-Message-State: APjAAAXXt2F1dFrokg7ReN/lslSB4nW3v6wKIckA0oDAATsYlnHqrYyj rH3sL7HDm9aeKRBJc05T8eA= X-Google-Smtp-Source: APXvYqycsKBXgzsG4nnPFWn4Y3kSf1S0adpWyhRFkOVyDdZohaHIFPUuOT/xwTEGFXuWaKefbgo/NQ== X-Received: by 2002:a81:9850:: with SMTP id p77mr3445959ywg.176.1557433809152; Thu, 09 May 2019 13:30:09 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id u6sm896150ywl.71.2019.05.09.13.30.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 13:30:08 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), linux-kernel@vger.kernel.org (open list), bcm-kernel-feedback-list@broadcom.com, wahrenst@gmx.net, eric@anholt.net, stefan.wahren@i2se.com Subject: [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable Date: Thu, 9 May 2019 13:29:55 -0700 Message-Id: <20190509202956.6320-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190509202956.6320-1-f.fainelli@gmail.com> References: <20190509202956.6320-1-f.fainelli@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make the BCM2835 clock driver selectable by other architectures/platforms. ARCH_BRCMSTB will be selecting that driver in the next commit since new chips like 7211 use the same CPRMAN clock controller that this driver supports. Signed-off-by: Florian Fainelli Reviewed-by: Eric Anholt --- drivers/clk/bcm/Kconfig | 9 +++++++++ drivers/clk/bcm/Makefile | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig index 4c4bd85f707c..0b873e23f128 100644 --- a/drivers/clk/bcm/Kconfig +++ b/drivers/clk/bcm/Kconfig @@ -1,3 +1,12 @@ +config CLK_BCM2835 + bool "Broadcom BCM2835 clock support" + depends on ARCH_BCM2835 || COMPILE_TEST + depends on COMMON_CLK + default ARCH_BCM2835 + help + Enable common clock framework support for Broadcom BCM2835 + SoCs. + config CLK_BCM_63XX bool "Broadcom BCM63xx clock support" depends on ARCH_BCM_63XX || COMPILE_TEST diff --git a/drivers/clk/bcm/Makefile b/drivers/clk/bcm/Makefile index 002661d39128..e924f25bc6c8 100644 --- a/drivers/clk/bcm/Makefile +++ b/drivers/clk/bcm/Makefile @@ -5,8 +5,8 @@ obj-$(CONFIG_CLK_BCM_KONA) += clk-kona-setup.o obj-$(CONFIG_CLK_BCM_KONA) += clk-bcm281xx.o obj-$(CONFIG_CLK_BCM_KONA) += clk-bcm21664.o obj-$(CONFIG_COMMON_CLK_IPROC) += clk-iproc-armpll.o clk-iproc-pll.o clk-iproc-asiu.o -obj-$(CONFIG_ARCH_BCM2835) += clk-bcm2835.o -obj-$(CONFIG_ARCH_BCM2835) += clk-bcm2835-aux.o +obj-$(CONFIG_CLK_BCM2835) += clk-bcm2835.o +obj-$(CONFIG_CLK_BCM2835) += clk-bcm2835-aux.o obj-$(CONFIG_ARCH_BCM_53573) += clk-bcm53573-ilp.o obj-$(CONFIG_CLK_BCM_CYGNUS) += clk-cygnus.o obj-$(CONFIG_CLK_BCM_HR2) += clk-hr2.o From patchwork Thu May 9 20:29:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 10937631 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03BCE76 for ; Thu, 9 May 2019 20:30:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E849228B35 for ; Thu, 9 May 2019 20:30:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E589128B01; Thu, 9 May 2019 20:30: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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C7B928B01 for ; Thu, 9 May 2019 20:30:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727025AbfEIUaM (ORCPT ); Thu, 9 May 2019 16:30:12 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:36003 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726701AbfEIUaL (ORCPT ); Thu, 9 May 2019 16:30:11 -0400 Received: by mail-yw1-f66.google.com with SMTP id q185so2945339ywe.3; Thu, 09 May 2019 13:30: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=TA7//dX4vtBRwfNw92xuXPb7M1etmOxtq99BxrnfvNg=; b=UdhFSjIjYPEQz069K1zUOUYpxwVXhfQpOnt8uw/FEn3ACH1y0XsqcFJq7hoikXnIN5 7pHFpibEtzxazXcGCsvLOZaj2xpavBnlJidIg/GH9UDLSx9d/2nc1pFAxDX4LZP7z2E3 aWsVgKYbbwktnAXc1/vvlntIwpaLUn0SZqYV+zUmm5Kp7AdDXuXPpZWerRZWBabIuucj noHlbC60V6XwuQlSTQx8M603v4bl00GDk9lVlGWT8UJw3OcNmYvV7Orj0Fa3w2IvPQFh x6dd0pLQT2cJqtMHPn4xxx78/cx6yDbRMVIK3Gb9NtR0mxPF8fY7rupO/tfaYd0AYPl1 GGtA== 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=TA7//dX4vtBRwfNw92xuXPb7M1etmOxtq99BxrnfvNg=; b=l1/kfcC4eYqL7cvLu7pGvKdbZaCPgV7NRAjkE8fuknbhrk2JPV5AehY3HaM/V48aYE qmRAjoCFcR9w8B/u4fmuaW/FT/hYt2n43QuFq90bYXN91HEo8RqQ+ltvbCF4rNilDeVi vFvl8LDq3vEj6wQtwCNQmD+rvF2cLIVsDfdUXM7co/D/6EB2RPVnvEVEENZM6TIeLK5j hmRYr1JLnTKEjuENnXVWVENAjImxvjII6/4Mn6TAMKkTOzZN4dyx1w2QM0SWhxrA5/Sv NskIXDjVWb4QyUaYl6KTIoEKP1n1BiAfTPx+sfQrW5vRpHGZe+Xhor+RFePe0r8/ElYo 9Ccg== X-Gm-Message-State: APjAAAUwFJvPszSJgPuvbYFezl+/d0Q3KgUrs98aNkh8nrGp4SD5Ag6z 1d/WpIWYa/N1zNrl8075j9Q= X-Google-Smtp-Source: APXvYqya9CY9+vVMA3jwse8sBZtcJuBFPP+dj9DSeNP6zoCn9RUV57N6dmyMltfl9TGSA04reMoPfA== X-Received: by 2002:a81:9b8d:: with SMTP id s135mr3469060ywg.481.1557433810958; Thu, 09 May 2019 13:30:10 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id u6sm896150ywl.71.2019.05.09.13.30.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 13:30:10 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), linux-kernel@vger.kernel.org (open list), bcm-kernel-feedback-list@broadcom.com, wahrenst@gmx.net, eric@anholt.net, stefan.wahren@i2se.com Subject: [PATCH 2/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB Date: Thu, 9 May 2019 13:29:56 -0700 Message-Id: <20190509202956.6320-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190509202956.6320-1-f.fainelli@gmail.com> References: <20190509202956.6320-1-f.fainelli@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ARCH_BRCMSTB needs to use the BCM2835 clock driver for chips like BCM7211 which adopted that clock controller, make that possible and the driver default to be enabled for ARCH_BRCMSTB. Signed-off-by: Florian Fainelli --- drivers/clk/bcm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig index 0b873e23f128..0eb281d597fc 100644 --- a/drivers/clk/bcm/Kconfig +++ b/drivers/clk/bcm/Kconfig @@ -1,8 +1,8 @@ config CLK_BCM2835 bool "Broadcom BCM2835 clock support" - depends on ARCH_BCM2835 || COMPILE_TEST + depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST depends on COMMON_CLK - default ARCH_BCM2835 + default ARCH_BCM2835 || ARCH_BRCMSTB help Enable common clock framework support for Broadcom BCM2835 SoCs.