From patchwork Fri Dec 31 12:18:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Subhasish Ghosh X-Patchwork-Id: 442251 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 oBVC7qat004084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 31 Dec 2010 12:08:13 GMT Received: from dlep34.itg.ti.com ([157.170.170.115]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id oBVC66V9017290 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 31 Dec 2010 06:06:06 -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 oBVC63GZ001661; Fri, 31 Dec 2010 06:06:03 -0600 (CST) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 0BEEE80712; Fri, 31 Dec 2010 06:05:41 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 893B38069D for ; Fri, 31 Dec 2010 06:05:28 -0600 (CST) Received: from medina.ext.ti.com (localhost [127.0.0.1]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id oBVC5SZD015943 for ; Fri, 31 Dec 2010 06:05:28 -0600 (CST) Received: from psmtp.com (na3sys009amx165.postini.com [74.125.149.91]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id oBVC5RDh003584 for ; Fri, 31 Dec 2010 06:05:27 -0600 Received: from source ([209.85.210.45]) by na3sys009amx165.postini.com ([74.125.148.10]) with SMTP; Fri, 31 Dec 2010 07:05:28 EST Received: by mail-pz0-f45.google.com with SMTP id 2so3032828pzk.4 for ; Fri, 31 Dec 2010 04:05:27 -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=q1+cLKLli31r7W5Irxv8WoodPY/c9swuk83Q6YZu3iw=; b=daL546W9jmw7LuTGeKEX4Fw9nfMriy4IrfUuvFf0HH4tS+G21SiDfTf9W/uiXWz2Xv 0F+k6Bt/988zVkVuSFPehWWG3hXng44JGUsA6AXoUiF0xDZJNWZuVitd8YfELeCBjRDe SBoGfY+stVjtTZj6S6svPmjQ+Avgtvd899vU0= 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=WaRFaq6ojB2xITNlbjGzXnuKErt4A64Z6OGT3PG1o9U8cqK5VeKtWeH0utSWWYrr52 lbknr4xjqcwBOwet31BMSnHKIdpbYaiz1YHGnKoblbILH0EZVdpK71AFpUEYDsS6SA0p hZM8Q9eHCZvts2+7kkRcqXTOs3p6x3ByQ+MfQ= Received: by 10.142.101.2 with SMTP id y2mr14001514wfb.154.1293797127428; Fri, 31 Dec 2010 04:05:27 -0800 (PST) Received: from localhost ([59.97.0.30]) by mx.google.com with ESMTPS id w42sm23971557wfh.15.2010.12.31.04.05.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 31 Dec 2010 04:05:26 -0800 (PST) From: Subhasish Ghosh To: davinci-linux-open-source@linux.davincidsp.com Subject: [RFC: PATCH 2/5] da850: board file modifications for PRU SUART. Date: Fri, 31 Dec 2010 17:48:11 +0530 Message-Id: <1293797894-15964-2-git-send-email-subhasish@mistralsolutions.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1293797894-15964-1-git-send-email-subhasish@mistralsolutions.com> References: <1293797894-15964-1-git-send-email-subhasish@mistralsolutions.com> X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:67.06673/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, sshtylyov@mvista.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, 31 Dec 2010 12:08:13 +0000 (UTC) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index b01fb2a..bb9f5d5 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -1039,6 +1039,33 @@ static __init int da850_evm_init_cpufreq(void) static __init int da850_evm_init_cpufreq(void) { return 0; } #endif +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;