From patchwork Mon Jul 11 02:53:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 963152 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6B3gj19027282 for ; Mon, 11 Jul 2011 03:42:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757005Ab1GKDme (ORCPT ); Sun, 10 Jul 2011 23:42:34 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:49478 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756989Ab1GKDmd (ORCPT ); Sun, 10 Jul 2011 23:42:33 -0400 Received: from finisterre.wolfsonmicro.main (unknown [203.226.206.138]) by opensource2.wolfsonmicro.com (Postfix) with ESMTPSA id 2D0F1114A23; Mon, 11 Jul 2011 04:42:31 +0100 (BST) Received: from broonie by finisterre.wolfsonmicro.main with local (Exim 4.76) (envelope-from ) id 1Qg6dF-00018C-FD; Mon, 11 Jul 2011 11:54:01 +0900 From: Mark Brown To: Jeremy Kerr Cc: Grant Likely , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, patches@opensource.wolfsonmicro.com, Mark Brown Subject: [PATCH 4/6] clk: Add Kconfig option to build all generic clk drivers Date: Mon, 11 Jul 2011 11:53:55 +0900 Message-Id: <1310352837-4277-4-git-send-email-broonie@opensource.wolfsonmicro.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1310352837-4277-1-git-send-email-broonie@opensource.wolfsonmicro.com> References: <20110711025344.GA27497@opensource.wolfsonmicro.com> <1310352837-4277-1-git-send-email-broonie@opensource.wolfsonmicro.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 11 Jul 2011 03:42:45 +0000 (UTC) Currently drivers for the generic clk subsystem must be selected by platforms using them in order to enable build. When doing development on the API or generic build time testing it is useful to be able to build unused drivers in order to improve coverage so supply a Kconfig option which allows this. Signed-off-by: Mark Brown --- drivers/clk/Kconfig | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 75d2902..1fd0070 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -1,4 +1,3 @@ - config CLKDEV_LOOKUP bool select HAVE_CLK @@ -6,6 +5,16 @@ config CLKDEV_LOOKUP config GENERIC_CLK bool +config GENERIC_CLK_BUILD_TEST + bool "Build all generic clock drivers" + depends on EXPERIMENTAL && GENERIC_CLK + select GENERIC_CLK_FIXED + select GENERIC_CLK_GATE + help + Enable all possible generic clock drivers. This is only + useful for improving build coverage, it is not useful for + production kernel builds. + config GENERIC_CLK_FIXED bool depends on GENERIC_CLK