From patchwork Tue Feb 22 06:22:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Subhasish Ghosh X-Patchwork-Id: 579301 Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1M6Udlj002713 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 22 Feb 2011 06:31:04 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p1M6Sk2D031429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Feb 2011 00:28:47 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id p1M6Sj0T025236; Tue, 22 Feb 2011 00:28:46 -0600 (CST) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 92BE580627; Tue, 22 Feb 2011 00:28:45 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id 1918D80626 for ; Tue, 22 Feb 2011 00:28:44 -0600 (CST) Received: from white.ext.ti.com (localhost [127.0.0.1]) by dflp51.itg.ti.com (8.13.7/8.13.7) with ESMTP id p1M6ShOP029073 for ; Tue, 22 Feb 2011 00:28:43 -0600 (CST) Received: from psmtp.com (na3sys009amx236.postini.com [74.125.149.120]) by white.ext.ti.com (8.13.7/8.13.7) with SMTP id p1M6SgDJ001409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 22 Feb 2011 00:28:43 -0600 Received: from source ([209.85.213.173]) (using TLSv1) by na3sys009amx236.postini.com ([74.125.148.10]) with SMTP; Tue, 22 Feb 2011 01:28:43 EST Received: by yxk8 with SMTP id 8so1108665yxk.4 for ; Mon, 21 Feb 2011 22:28:42 -0800 (PST) Received: by 10.150.134.5 with SMTP id h5mr2828732ybd.306.1298355654458; Mon, 21 Feb 2011 22:20:54 -0800 (PST) Received: from subhasishg ([122.166.13.232]) by mx.google.com with ESMTPS id d3sm2217148ybi.5.2011.02.21.22.20.49 (version=SSLv3 cipher=OTHER); Mon, 21 Feb 2011 22:20:53 -0800 (PST) Message-ID: <66FC4FA6F0A146B68ED19D473735C15D@subhasishg> From: "Subhasish Ghosh" To: "Sergei Shtylyov" References: <1297435892-28278-1-git-send-email-subhasish@mistralsolutions.com> <1297435892-28278-12-git-send-email-subhasish@mistralsolutions.com> <4D5584EC.4070506@mvista.com> In-Reply-To: <4D5584EC.4070506@mvista.com> Subject: Re: [PATCH v2 11/13] da850: pruss SUART board specific additions. Date: Tue, 22 Feb 2011 11:52:08 +0530 Organization: Mistral Solutions MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: sachi@mistralsolutions.com, davinci-linux-open-source@linux.davincidsp.com, Russell King , Kevin Hilman , open list , m-watkins@ti.com, linux-arm-kernel@lists.infradead.org X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 22 Feb 2011 06:31:04 +0000 (UTC) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c +static struct da850_evm_pruss_can_data can_data = { .version = 1, }; +static struct resource da850_evm_suart_resource[] = ------------------------->>> Added a separate resource structure for suart. + { + .name = "da8xx_mcasp0_iomem", + .start = DAVINCI_DA8XX_MCASP0_REG_BASE, + .end = DAVINCI_DA8XX_MCASP0_REG_BASE + + (SZ_1K * 12) - 1, + .flags = IORESOURCE_MEM, + }, +}; + static struct da8xx_pruss_devices pruss_devices[] = { { .dev_name = "da8xx_pruss_can", .pdata = &can_data, .pdata_size = sizeof(can_data), .setup = da850_evm_setup_pruss_can, + .num_resources = 0, + .resources = NULL, }, { .dev_name = "da8xx_pruss_uart", .pdata = &suart_data, .pdata_size = sizeof(suart_data), .setup = da850_evm_setup_pruss_suart, + .num_resources = ARRAY_SIZE(da850_evm_suart_resource), + .resources = a850_evm_suart_resource, ---------------------------- >>>>> Initialized it here }, { .dev_name = NULL, diff --git a/drivers/mfd/da8xx_pru.c b/drivers/mfd/da8xx_pru.c index f7868a4..140bf14 100644 --- a/drivers/mfd/da8xx_pru.c +++ b/drivers/mfd/da8xx_pru.c @@ -332,6 +332,8 @@ static int pruss_mfd_add_devices(struct platform_device *pdev) cell.name = (dev_data + count)->dev_name; cell.platform_data = (dev_data + count)->pdata; cell.data_size = (dev_data + count)->pdata_size; + cell.resources = (dev_data + ount)->resources; ---------------------->>>Modified the MFD driver to add the resources. + cell.num_resources = (dev_data + count)->num_resources;