From patchwork Fri Dec 3 15:11:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Subhasish Ghosh X-Patchwork-Id: 378051 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB3F1s45006327 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 3 Dec 2010 15:02:16 GMT Received: from dlep35.itg.ti.com ([157.170.170.118]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id oB3F0CYW029885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Dec 2010 09:00:14 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id oB3F0CEj002421; Fri, 3 Dec 2010 09:00:12 -0600 (CST) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 363A780627; Fri, 3 Dec 2010 09:00:12 -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 0641280626 for ; Fri, 3 Dec 2010 09:00:11 -0600 (CST) Received: from neches.ext.ti.com (localhost [127.0.0.1]) by dflp51.itg.ti.com (8.13.7/8.13.7) with ESMTP id oB3F0A1c029867 for ; Fri, 3 Dec 2010 09:00:10 -0600 (CST) Received: from psmtp.com (na3sys009amx205.postini.com [74.125.149.45]) by neches.ext.ti.com (8.13.7/8.13.7) with SMTP id oB3F0AKf003268 for ; Fri, 3 Dec 2010 09:00:10 -0600 Received: from source ([209.85.160.45]) by na3sys009amx205.postini.com ([74.125.148.10]) with SMTP; Fri, 03 Dec 2010 07:00:10 PST Received: by pwj6 with SMTP id 6so1820188pwj.4 for ; Fri, 03 Dec 2010 07:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=oVz7TAz9n0sIVLrRlkxTBERpnIw2zQ3CDt0OVu2mdB4=; b=OqmSBdI9HGKlyHeoh+9BSDU+Ws4IY5kJPvri2gMxhRtycNi68EscBucjU78tGxpBJo FpjC5PwiyZ3dYEJqlt5kJTYr4awW8RKv++HhNJdxwf04YFbWSY/2TbpOYvpJMgUEH30B VrjaxlWSPGUIDY0KrlbbEDLkZkotrfkBAv9uk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=QTttH6hUINJp3BHL41KJhZC8OsL6nyPISD1n7d4XKT4s4sK9Eq8SIKaTC0woEIT6Hy Z6+yqbFucuc+7TGXHQk0BLI/LMSmNh24JSc1jp8XYFtTM1YzN73bJn3Qp3uw0f8aKMzM mrpe83hfVWeWA6ZQK7ljiw5AlU2O4ogtOfB8g= Received: by 10.143.159.18 with SMTP id l18mr2036560wfo.98.1291388409357; Fri, 03 Dec 2010 07:00:09 -0800 (PST) Received: from localhost ([122.167.113.84]) by mx.google.com with ESMTPS id w42sm2341082wfh.15.2010.12.03.07.00.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Dec 2010 07:00:06 -0800 (PST) From: Subhasish Ghosh To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH 2/2] da850: board file modifications for PRU SUART. Date: Fri, 3 Dec 2010 20:41:48 +0530 Message-Id: <1291389108-25356-2-git-send-email-subhasish@mistralsolutions.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1291389108-25356-1-git-send-email-subhasish@mistralsolutions.com> References: <1291389108-25356-1-git-send-email-subhasish@mistralsolutions.com> X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:67.30326/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: m-watkins@ti.com, Subhasish Ghosh 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.3 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Dec 2010 15:02:16 +0000 (UTC) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index f89b0b7..86a89b1 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -736,6 +736,34 @@ static struct edma_rsv_info *da850_edma_rsv[2] = { &da850_edma_cc1_rsv, }; +const short da850_evm_pru_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_pru_suart(void) +{ + int ret; + + if (!machine_is_davinci_da850_evm()) + return 0; + + ret = davinci_cfg_reg_list(da850_evm_pru_suart_pins); + if (ret) + pr_warning("%s: da850_evm_pru_suart_pins " + "mux setup failed: %d\n", __func__, ret); + ret = da8xx_register_pru_suart(); + if (ret) + pr_warning("%s: pru suart registration " + "failed: %d\n", __func__, ret); + return ret; +} + +device_initcall(da850_evm_setup_pru_suart); + static __init void da850_evm_init(void) { int ret;