From patchwork Wed Jul 6 16:58:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFwaGHDq2wgQXNzw6luYXQ=?= X-Patchwork-Id: 950212 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 p66GwCvY004317 for ; Wed, 6 Jul 2011 16:58:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754676Ab1GFQ6M (ORCPT ); Wed, 6 Jul 2011 12:58:12 -0400 Received: from roc.holo.8d.com ([64.254.227.115]:54930 "EHLO roc.holo.8d.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862Ab1GFQ6L (ORCPT ); Wed, 6 Jul 2011 12:58:11 -0400 Received: from raph.usine.8d.com ([192.168.142.55]) by roc.holo.8d.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1QeVQQ-0008HL-C6 for linux-omap@vger.kernel.org; Wed, 06 Jul 2011 12:58:10 -0400 Message-ID: <4E149422.1060103@8d.com> Date: Wed, 06 Jul 2011 12:58:10 -0400 From: =?ISO-8859-1?Q?Rapha=EBl_Ass=E9nat?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110505 Icedove/3.0.11 MIME-Version: 1.0 To: "linux-omap@vger.kernel.org" Subject: [PATCH] mux34xx: Compact declaration of placeholders in omap3_muxmodes X-Enigmail-Version: 1.0.1 X-Spam-Score: -1.1 X-Spam-Level: - X-Spam-Report: -1.1 points, 5.0 required autolearn=no -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 1.5 UPPERCASE_75_100 message body is 75-100% uppercase Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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]); Wed, 06 Jul 2011 16:58:30 +0000 (UTC) With the addition of support for the ZCN package, there are even more placeholders in the superset, such as: _OMAP3_MUXENTRY(GPMC_A11, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), which takes a lot of space. This patch introduces and uses _OMAP3_NULL_MUXENTRY to declare such entries. Also, a duplicate GPMC_A11 entry is removed. Signed-off-by: Raphael Assenat --- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/mux34xx.c b/arch/arm/mach-omap2/mux34xx.c index 26b703a..d775040 100644 --- a/arch/arm/mach-omap2/mux34xx.c +++ b/arch/arm/mach-omap2/mux34xx.c @@ -37,6 +37,9 @@ .balls = { bb, bt }, \ } +#define _OMAP3_NULL_MUXENTRY(M0) _OMAP3_MUXENTRY(M0, 0, NULL, NULL, \ + NULL, NULL, NULL, NULL, NULL, NULL) + /* * Superset of all mux modes for omap3 */ @@ -651,131 +654,48 @@ static struct omap_mux __initdata omap3_muxmodes[] = { "gpio_166", NULL, NULL, "safe_mode"), /* Only on 3630, see omap36xx_cbp_subset for the signals */ - _OMAP3_MUXENTRY(GPMC_A11, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MBUSFLAG, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MREAD, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MWRITE, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_SBUSFLAG, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_SREAD, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_SWRITE, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(GPMC_A11, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MCAD28, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MCAD29, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MCAD32, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MCAD33, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MCAD34, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MCAD35, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(SAD2D_MCAD36, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), + _OMAP3_NULL_MUXENTRY(GPMC_A11), + _OMAP3_NULL_MUXENTRY(SAD2D_MBUSFLAG), + _OMAP3_NULL_MUXENTRY(SAD2D_MREAD), + _OMAP3_NULL_MUXENTRY(SAD2D_MWRITE), + _OMAP3_NULL_MUXENTRY(SAD2D_SBUSFLAG), + _OMAP3_NULL_MUXENTRY(SAD2D_SREAD), + _OMAP3_NULL_MUXENTRY(SAD2D_SWRITE), + _OMAP3_NULL_MUXENTRY(SAD2D_MCAD28), + _OMAP3_NULL_MUXENTRY(SAD2D_MCAD29), + _OMAP3_NULL_MUXENTRY(SAD2D_MCAD32), + _OMAP3_NULL_MUXENTRY(SAD2D_MCAD33), + _OMAP3_NULL_MUXENTRY(SAD2D_MCAD34), + _OMAP3_NULL_MUXENTRY(SAD2D_MCAD35), + _OMAP3_NULL_MUXENTRY(SAD2D_MCAD36), /* Only on AM35xx, see am35xx_zcn_subset for the signals */ - _OMAP3_MUXENTRY(CCDC_PCLK, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_FIELD, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_HD, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_VD, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_WEN, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_DATA0, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_DATA1, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_DATA2, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_DATA3, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_DATA4, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_DATA5, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_DATA6, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(CCDC_DATA7, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_MDIO_DATA, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_MDIO_CLK, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_RXD0, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_RXD1, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_CRS_DV, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_RXER, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_TXD0, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_TXD1, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_TXEN, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(RMII_50MHZ_CLK, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(USB0_DRVVBUS, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(HECC1_TXD, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), - _OMAP3_MUXENTRY(HECC1_RXD, 0, - NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL), + _OMAP3_NULL_MUXENTRY(CCDC_PCLK), + _OMAP3_NULL_MUXENTRY(CCDC_FIELD), + _OMAP3_NULL_MUXENTRY(CCDC_HD), + _OMAP3_NULL_MUXENTRY(CCDC_VD), + _OMAP3_NULL_MUXENTRY(CCDC_WEN), + _OMAP3_NULL_MUXENTRY(CCDC_DATA0), + _OMAP3_NULL_MUXENTRY(CCDC_DATA1), + _OMAP3_NULL_MUXENTRY(CCDC_DATA2), + _OMAP3_NULL_MUXENTRY(CCDC_DATA3), + _OMAP3_NULL_MUXENTRY(CCDC_DATA4), + _OMAP3_NULL_MUXENTRY(CCDC_DATA5), + _OMAP3_NULL_MUXENTRY(CCDC_DATA6), + _OMAP3_NULL_MUXENTRY(CCDC_DATA7), + _OMAP3_NULL_MUXENTRY(RMII_MDIO_DATA), + _OMAP3_NULL_MUXENTRY(RMII_MDIO_CLK), + _OMAP3_NULL_MUXENTRY(RMII_RXD0), + _OMAP3_NULL_MUXENTRY(RMII_RXD1), + _OMAP3_NULL_MUXENTRY(RMII_CRS_DV), + _OMAP3_NULL_MUXENTRY(RMII_RXER), + _OMAP3_NULL_MUXENTRY(RMII_TXD0), + _OMAP3_NULL_MUXENTRY(RMII_TXD1), + _OMAP3_NULL_MUXENTRY(RMII_TXEN), + _OMAP3_NULL_MUXENTRY(RMII_50MHZ_CLK), + _OMAP3_NULL_MUXENTRY(USB0_DRVVBUS), + _OMAP3_NULL_MUXENTRY(HECC1_TXD), + _OMAP3_NULL_MUXENTRY(HECC1_RXD), { .reg_offset = OMAP_MUX_TERMINATOR }, };