From patchwork Wed Jan 17 09:38:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 124796 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1319702lje; Wed, 17 Jan 2018 01:38:29 -0800 (PST) X-Google-Smtp-Source: ACJfBovJeV7nRDSHZqyD6gHqPPxg51fOgrlKQdpo/I7LEYSDDrnyqBm3OgBe9v2jc/UH32x+g3fT X-Received: by 10.159.230.14 with SMTP id u14mr21274218plq.35.1516181908916; Wed, 17 Jan 2018 01:38:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516181908; cv=none; d=google.com; s=arc-20160816; b=OndET8hLCioAzZK+JiEM4UVH217as+0sJpVIPC/xRGq6MrRslIpRSL8IYCwJkPy2un Ud6M7WlDnrVG7cIz2cG5M58nBsNj4jMqb5B0HcM7q8N18oatwcjKMJK4FXZefor72sSy LJYKtFT2Vn0sbroe0PgzEOhvVGtYsowbe0moaSOVMdyiPbkJvgfVTwnbJiRPDbetGogm oBVNsL+QYhHShGrTppbU8/g0eNBAK0WnPKnhwr39gIqFAUPULbgUb7XaIBS8vwMMRPbm kmgPcGlxkom/19BHLoszU4WFr7ScuZSSex/oRlfE+P+W4YWREEiTiSO8fWfxDD1tZ7js cF9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=fjjfmk/34UTTXfQ0r84aIMdJMu5sioHJoa4ms2+qaYU=; b=IYmnRDe5AFeGDe2YaszHjpmxRavxvO8VFTmrDd/l8+S33vWefKyUh/8xCwDT+MGtd6 mDWyLBzhrEnQtkTXAisSFFoEfuQRnVWiwHZwcxtlF4zcCx0/zNiWKrSIzhgtYLpm7hta ic9Jg3h3NgFugBELQcWxKLbG9+TwhEFDSYdk/qEfmPlnHwEaNlJscjMJ3JHmyzNPdq5n wsMuaoceOZa3LCkdvvE3AxxuL5b/bVwf26EBmwcIKxRuEOneHpGoMFYmkVKLuda9Qi8Q TooiFqKGeEnMlO1YWoaEtlJMSBuUiIRAV6FHmb3OX/iKSxRU3o3XRi4Smc7uCcJyZZS/ kyPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gmGZ4OMS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h63si3491735pge.435.2018.01.17.01.38.28; Wed, 17 Jan 2018 01:38:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gmGZ4OMS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752223AbeAQJi0 (ORCPT + 28 others); Wed, 17 Jan 2018 04:38:26 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39433 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbeAQJiX (ORCPT ); Wed, 17 Jan 2018 04:38:23 -0500 Received: by mail-wm0-f66.google.com with SMTP id i11so14173264wmf.4 for ; Wed, 17 Jan 2018 01:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=fjjfmk/34UTTXfQ0r84aIMdJMu5sioHJoa4ms2+qaYU=; b=gmGZ4OMSykclXfn6aV+vl8o9xxKriIWi801xsTKewObiyWLfZXeF/UvgGfuu0qpaFw RuLT3kNIS4old3584H2BIO85jux+fn0+Bu3pUtZkfBgT1509zf6H2C3EcmLr+YMkhdn3 emue5Rt3hZKzBW8Ec9HDait9bc6DIp+kBxVXs= 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; bh=fjjfmk/34UTTXfQ0r84aIMdJMu5sioHJoa4ms2+qaYU=; b=uF0yENf4yo5B/pDmZCiSeTEYOeuu2NAs7CQdoLsamcH0hr0+LhmxQYrckWUpermCE1 ObUwLAp1E8PAaa96W1u9r1zYOe8AZOxafgSebUiPFq0uW08wCtcEZbZcLhHM96KQ/i35 WTCY9tNSUQXvdK8CxLkE8Qa/GlaV7NgTBJ8dZy/JB+7fcVrnVp9W3La9yGRXujxuDaJO zzYhXFef3E09hnasqzuMfPzRq/xDliUDABvLV2uh/K98MRm55FgGKngOHU+Yjo+DZiFI 2mu0SboTwrrAhtcj09LGqy5i0vyeKYin55msOrkuLkmbxdBbe4isBgdxJZjADgt+qJCU 7LVg== X-Gm-Message-State: AKwxytcRDA4RlNr1uVjEqkvr304EjtmMhRsRAnubshVQd6Yp2VdeP908 U2R5QJBq7PFXekqspVpTr1dBrQ== X-Received: by 10.28.35.214 with SMTP id j205mr1626442wmj.131.1516181902559; Wed, 17 Jan 2018 01:38:22 -0800 (PST) Received: from lmecxl0911.lme.st.com ([80.215.196.6]) by smtp.gmail.com with ESMTPSA id n74sm23438227wmi.1.2018.01.17.01.38.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 01:38:22 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: mturquette@baylibre.com, sboyd@codeaurora.org, gabriel.fernandez@st.com Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v2] clk: stm32: add configuration flags for each of the stm32 drivers Date: Wed, 17 Jan 2018 10:38:13 +0100 Message-Id: <20180117093813.20227-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add two configuration flags to be able to not compile all the time stm32f and stm32h7 drivers when ARCH_STM32 is set. That help to save some space on those small platforms. Signed-off-by: Benjamin Gaignard Acked-by: Gabriel Fernandez --- drivers/clk/Kconfig | 14 ++++++++++++++ drivers/clk/Makefile | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) -- 2.15.0 diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 1c4e1aa6767e..47243e8675c1 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -226,6 +226,20 @@ config COMMON_CLK_VC5 This driver supports the IDT VersaClock 5 and VersaClock 6 programmable clock generators. +config COMMON_CLK_STM32F + bool "Clock driver for stm32f4 and stm32f7 SoC families" + depends on MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746 + help + ---help--- + Support for stm32f4 and stm32f7 SoC families clocks + +config COMMON_CLK_STM32H7 + bool "Clock driver for stm32h7 SoC family" + depends on MACH_STM32H743 + help + ---help--- + Support for stm32h7 SoC family clocks + source "drivers/clk/bcm/Kconfig" source "drivers/clk/hisilicon/Kconfig" source "drivers/clk/imgtec/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index f7f761b02bed..956dce66587b 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -44,8 +44,8 @@ obj-$(CONFIG_COMMON_CLK_SCPI) += clk-scpi.o obj-$(CONFIG_COMMON_CLK_SI5351) += clk-si5351.o obj-$(CONFIG_COMMON_CLK_SI514) += clk-si514.o obj-$(CONFIG_COMMON_CLK_SI570) += clk-si570.o -obj-$(CONFIG_ARCH_STM32) += clk-stm32f4.o -obj-$(CONFIG_ARCH_STM32) += clk-stm32h7.o +obj-$(CONFIG_COMMON_CLK_STM32F) += clk-stm32f4.o +obj-$(CONFIG_COMMON_CLK_STM32H7) += clk-stm32h7.o obj-$(CONFIG_ARCH_TANGO) += clk-tango4.o obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o obj-$(CONFIG_ARCH_U300) += clk-u300.o