From patchwork Fri Feb 11 14:51:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Subhasish Ghosh X-Patchwork-Id: 549601 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 p1BEhkEU005395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 11 Feb 2011 14:44:07 GMT Received: from dlep34.itg.ti.com ([157.170.170.115]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p1BEgBKh006034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Feb 2011 08:42:11 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id p1BEg40w000203; Fri, 11 Feb 2011 08:42:06 -0600 (CST) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 5CD188093C; Fri, 11 Feb 2011 08:40:31 -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 69DC78092E for ; Fri, 11 Feb 2011 08:39:10 -0600 (CST) Received: from medina.ext.ti.com (localhost [127.0.0.1]) by dflp51.itg.ti.com (8.13.7/8.13.7) with ESMTP id p1BEdAjg004390 for ; Fri, 11 Feb 2011 08:39:10 -0600 (CST) Received: from psmtp.com (na3sys009amx195.postini.com [74.125.149.176]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id p1BEd9fx005661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 11 Feb 2011 08:39:09 -0600 Received: from source ([74.125.83.173]) (using TLSv1) by na3sys009amx195.postini.com ([74.125.148.10]) with SMTP; Fri, 11 Feb 2011 09:39:09 EST Received: by mail-pv0-f173.google.com with SMTP id 11so538470pvh.4 for ; Fri, 11 Feb 2011 06:39:09 -0800 (PST) Received: by 10.142.44.17 with SMTP id r17mr428033wfr.223.1297435149125; Fri, 11 Feb 2011 06:39:09 -0800 (PST) Received: from localhost ([122.166.46.84]) by mx.google.com with ESMTPS id v19sm1085422wfh.0.2011.02.11.06.39.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Feb 2011 06:39:05 -0800 (PST) From: Subhasish Ghosh To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH v2 11/13] da850: pruss SUART board specific additions. Date: Fri, 11 Feb 2011 20:21:30 +0530 Message-Id: <1297435892-28278-12-git-send-email-subhasish@mistralsolutions.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1297435892-28278-1-git-send-email-subhasish@mistralsolutions.com> References: <1297435892-28278-1-git-send-email-subhasish@mistralsolutions.com> 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, Russell King , Kevin Hilman , Subhasish Ghosh , 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: , MIME-Version: 1.0 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]); Fri, 11 Feb 2011 14:44:07 +0000 (UTC) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index f9c38f8..3858516 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -1060,6 +1060,25 @@ const short da850_evm_pruss_can_pins[] = { -1 }; +const short da850_evm_pruss_suart_pins[] = { + DA850_AHCLKX, DA850_ACLKX, DA850_AFSX, + DA850_AHCLKR, DA850_ACLKR, DA850_AFSR, + DA850_AXR_13, DA850_AXR_9, DA850_AXR_7, + DA850_AXR_14, DA850_AXR_10, DA850_AXR_8, + -1 +}; + +static int __init da850_evm_setup_pruss_suart(void) +{ + int ret; + + ret = davinci_cfg_reg_list(da850_evm_pruss_suart_pins); + if (ret) + pr_warning("%s: da850_evm_pruss_suart_pins " + "mux setup failed: %d\n", __func__, ret); + return ret; +} + static int __init da850_evm_setup_pruss_can(void) { int ret, val = 0; @@ -1085,6 +1104,17 @@ static int __init da850_evm_setup_pruss_can(void) return ret; } +static struct da850_evm_pruss_suart_data suart_data = { + .version = 1, + .resource = { + .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_can_data can_data = { .version = 1, }; @@ -1094,6 +1124,12 @@ 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_suart, + }, + { + .dev_name = "da8xx_pruss_uart", + .pdata = &suart_data, + .pdata_size = sizeof(suart_data), .setup = da850_evm_setup_pruss_can, }, {