From patchwork Mon Mar 12 09:32:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 131377 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp515016ljb; Mon, 12 Mar 2018 02:33:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELuazBpJr2avXKagB7i+I7uoI5LwV1icwv9a8xoBfBIR7LsFoXLltV+nrrolsvv0W21B+04c X-Received: by 10.98.70.198 with SMTP id o67mr7278533pfi.173.1520847185211; Mon, 12 Mar 2018 02:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520847185; cv=none; d=google.com; s=arc-20160816; b=h6qB20PP3CDbJbrKvGhWm8VypCqBGlssAhUst0Oo1HPuUUqMuXzWmR+Phez9KlbB2a MlIIqUp4pleP1SuhdQl31Dt0hKG8ofKm9KM6wn4zh6+sC478xegDEJH9C7leLHi7CD21 HLBSQ7hOeVyweyfYm5PS3L9pAtLCSeRu6CBRkbx/KWC6Q03KCofp8xv6vC7aKYFnWBNO lU3pugjPgz46mBifj4c5kIbt4ZYCHKJWEldV0ZfCLJ+lQZBvw6866yl8SyP3TMKm79Yo 0uHrg064Mo5ezA2rt3y4vTNui8fsrBRpiKcXGVA5excutJy2Iq29S2/5byYZLfYqRsey ZiTg== 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=NcFCi/MTofNQXiqkjM5VI7PK0UE053ltTli959MFiQo=; b=PjqqhRZMCvb/YaeKD6IaZiSOmA7XbkETmukURIPRE00czpjRMdhhHJlD1M27HqWXUo j21jmE+LzM5MjBp+Sjf0PJgcueMEe24hrnvjb23EcGtMU+zD+voxER+uLSCyfFErIBfs JZbNTJQ4bXy8mDeyVR+k4Z7ggVyR4M3/QRj2aijW53XOwhEUgI+DHSdqk6zXlcUZMGJj /TS18HoI8KIBQdl7McvcrqIxQk6ila2Iyy1Db/+Qz6scdPOVjoRRG1+g+qE/bBGCCwil Nz7PE8EV2BHSCMAN68bmvsx81KdL+1A3o/XNQu4wuB+tPMnmOLEWHPUGLCBlQ77/ERkO EJfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NQFtkwM6; 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 v4-v6si5745547plp.672.2018.03.12.02.33.04; Mon, 12 Mar 2018 02:33:05 -0700 (PDT) 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=NQFtkwM6; 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 S932376AbeCLJdC (ORCPT + 28 others); Mon, 12 Mar 2018 05:33:02 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53056 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbeCLJc7 (ORCPT ); Mon, 12 Mar 2018 05:32:59 -0400 Received: by mail-wm0-f68.google.com with SMTP id t3so14983241wmc.2 for ; Mon, 12 Mar 2018 02:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=NcFCi/MTofNQXiqkjM5VI7PK0UE053ltTli959MFiQo=; b=NQFtkwM6HF7JU5JEZsVvOPY5ffzrhS55/27jK9xyQlPZcZ9HaBjLkvF9jni2NJic9Y d1j+ENj4WWj4b8IZtYZuY4lahN4YHboo3CmrJJvv5xea2gWS99nHX2Zr19TyU8TCsGnh J06R6InbY+QUBBXPWWBqTRpPJg9CHjnZifbTM= 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=NcFCi/MTofNQXiqkjM5VI7PK0UE053ltTli959MFiQo=; b=bOiv7GNWIzj2M9x0KddPJOY7vJlPImdMVMS+LT68t6lGvaWlFsaewyS7SbTAG8KCHE I2WkyBoISsY8YtZVQMFe1t0vQDong52v+DWdbj+qsSxvF52rCjafe8OWsAmXtVo+OXD3 p0nTeVta1d89o/wE6RgN/kpDTkr6aU5YcYmNtcsRydw07SvhB4hTjnsumtMQLc3stLHu 1CPrSdfVk392/NBo6/6wBURdXPH7yIm/WnQ1bxfk5kyRBsnCZMb+rtFAp8xdgYyPbRSy T1A/Ohq/JZmfjQQdOL/k/U3mV64Sr/BtX1HcMYLhRMJ99rfnzUrV+oU0jre9QyqPXZrh EIkQ== X-Gm-Message-State: AElRT7HkYxNCS/sjp8VqEK7wU+K/P9hnQkMBFdn2CcHcXI8cza80LFM8 liLf+YppROk5Hins9u+FSs1jwA== X-Received: by 10.28.237.21 with SMTP id l21mr1868779wmh.12.1520847178276; Mon, 12 Mar 2018 02:32:58 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.215.104.17]) by smtp.gmail.com with ESMTPSA id b5sm3644641wrb.42.2018.03.12.02.32.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Mar 2018 02:32:57 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: mturquette@baylibre.com, sboyd@kernel.org Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v3] clk: stm32: add configuration flags for each of the stm32 drivers Date: Mon, 12 Mar 2018 10:32:48 +0100 Message-Id: <20180312093248.27512-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 --- version 3: - rebase on clk-next where clk-stm32mp1 branch has been merged 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 cbb9b0c05442..a26cde051158 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -244,6 +244,20 @@ config COMMON_CLK_STM32MP157 ---help--- Support for stm32mp157 SoC family clocks +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 8d812c701aa6..e0c106ed9407 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -45,8 +45,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_COMMON_CLK_STM32MP157) += clk-stm32mp1.o obj-$(CONFIG_ARCH_TANGO) += clk-tango4.o obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o