From patchwork Mon Jan 15 14:21:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 124531 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp684949lje; Mon, 15 Jan 2018 06:22:11 -0800 (PST) X-Google-Smtp-Source: ACJfBoswdS+W+M4CZjk3GT6+LOOv38go4KXF+ZFT+0YAF6vjf+e0dQqmCDcpXFWHB1HoiMh81NoF X-Received: by 10.84.233.67 with SMTP id k3mr7177685plt.285.1516026130919; Mon, 15 Jan 2018 06:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516026130; cv=none; d=google.com; s=arc-20160816; b=UB3NbgmLOtjREcIHR3yD5xILXN7diCH0CPb+m+ds7lobWk4LEigx14yz562xaCvQrs vMlabPPQPMpZ9tmy/z5Q48NJ/fCrn8fT43+4JHqlr0U5OsvH81SBGq/lftUEOprabzGV qpw/aVHjCcIyLiaKEVz7BI/61NPRMzr3J+BgDDsi7nrRBpHkJy0h6dsYn+JKb+AoHUCr PchfzWyS964IDhk9UV02n6sgK/5GWe7Sp0HD+bO/PvEt9IqnoJFlpeaebs7qSHNpexPS 5eOvJywv1C+BPvakANFgbZoCrOCoCy9kNeaScGvPkJdAI7yP9axo/mqWvXuEOwVAbOrt 2U2w== 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=Zke5+x+dC0jh4wabYmTQ27+rEtMden8vxQTrt0H6RsQ=; b=P5QczzVRpNHHRITUuMMV7H+ZMl5pop9lZUXM6rbzGliLaXVejLVbAlCs7UfvEIRvWO GBH4HmfhV9MEJBGO0zv+Fpu99spW86D4uSqrBJrnO63v5UIxaP+etyXFc7AU1XPbbMJi sdr6rsf6AcpUNgYBJgZUUjv5QI44Eoh9nEUvti8DOaj7sxy6MPwkCXqqebyjodv3VCwP ipj1KsBl43ztg252xDR/w46ghTZXUmlnvVeh83aJcJCR2gZh2akBbtFjDgbvnAtEB8kV fjlPEBkxPNeWWheoEyta9ve2lH7HSfc0nfkmNQWb2xXQj17AXgLs85LNIQ/DESj59lIK Wrlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QLx6ywwm; 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 2si21964108ple.387.2018.01.15.06.22.10; Mon, 15 Jan 2018 06:22:10 -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=QLx6ywwm; 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 S935316AbeAOOWJ (ORCPT + 28 others); Mon, 15 Jan 2018 09:22:09 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:37350 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934682AbeAOOWF (ORCPT ); Mon, 15 Jan 2018 09:22:05 -0500 Received: by mail-wr0-f194.google.com with SMTP id f11so1368357wre.4 for ; Mon, 15 Jan 2018 06:22:04 -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=Zke5+x+dC0jh4wabYmTQ27+rEtMden8vxQTrt0H6RsQ=; b=QLx6ywwmKEoSoetkReHlZWbsEcaAeGELU8Gwbz9B7IeywT5awJrByfH7bKy4A+GHaf d2JnFEJrJgxcHYc5a0LqwNlJyiucED7rz7FF3uQ9rSyuqoP82sB4v4xtWBpkS30Sskrk Ix77McxssuSpWk1MB4kqAJe0FxF22cUfw2euo= 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=Zke5+x+dC0jh4wabYmTQ27+rEtMden8vxQTrt0H6RsQ=; b=cNsnBJ3xTN9G0Hv0G4OIgbqDubjyK/EibrCfonvpnMsjjTKcG6pkM8rfyTkBfKMFGT IimbIrq9+TNYle9/T/TtiujxjoB/rFBZrUf3MbvLTjbKWQ5NnIL4fZdU2srWdfYr/psD W+O4WWCaHbJu1Dhns1p7JrVQjsI3LaMET8GNw/5FchOBB+0nTx3UkjqsFjFsTpTsYRqh aNjYAKxKtANplBc5APMEDgbNiIlL1QzdOlzbh5NIASmWGrh2XEcGD6yeh+w/TZI/Cf3r cGrwiH/CE3UyR6y/P+q3vzAKCnp+rE+mDl5ysIWgNF8U5ulYWgLZoFPjwn5Edvu6HTCf j2aQ== X-Gm-Message-State: AKwxytese8URmE93iEuJSXuCsz1d340aCExoS+wWuFQoaAreh5RekUju mS+BTGpjwK9OnQG8WLLRdqNoXw== X-Received: by 10.223.134.45 with SMTP id 42mr12640202wrv.218.1516026124124; Mon, 15 Jan 2018 06:22:04 -0800 (PST) Received: from lmecxl0911.lme.st.com ([80.214.25.24]) by smtp.gmail.com with ESMTPSA id z5sm23190763wre.94.2018.01.15.06.22.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Jan 2018 06:22:03 -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] clk: stm32: add configuration flags for each of the stm32 drivers Date: Mon, 15 Jan 2018 15:21:51 +0100 Message-Id: <20180115142151.22225-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 --- drivers/clk/Kconfig | 15 +++++++++++++++ drivers/clk/Makefile | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) -- 2.15.0 Acked-by: Gabriel Fernandez diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 1c4e1aa6767e..c876eb828fc4 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -226,6 +226,21 @@ 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..4a8e063a7159 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