From patchwork Mon Sep 7 18:38:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 46690 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8AMW1kB018117 for ; Thu, 10 Sep 2009 22:34:09 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 n87IaUwr024841; Mon, 7 Sep 2009 13:36:35 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id n87IaUWr014683; Mon, 7 Sep 2009 13:36:30 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id BCD1F80628; Mon, 7 Sep 2009 13:36:29 -0500 (CDT) 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 ABF3E80626 for ; Mon, 7 Sep 2009 13:36:28 -0500 (CDT) Received: from red.ext.ti.com (localhost [127.0.0.1]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id n87IaSjO007083 for ; Mon, 7 Sep 2009 13:36:28 -0500 (CDT) Received: from mail130-tx2-R.bigfish.com (mail-tx2.bigfish.com [65.55.88.113]) by red.ext.ti.com (8.13.7/8.13.7) with ESMTP id n87IaNo1011518 for ; Mon, 7 Sep 2009 13:36:28 -0500 Received: from mail130-tx2 (localhost.localdomain [127.0.0.1]) by mail130-tx2-R.bigfish.com (Postfix) with ESMTP id 4F2031230161 for ; Mon, 7 Sep 2009 18:36:23 +0000 (UTC) X-SpamScore: 6 X-BigFish: vps6(zcb8kz19c2kzz1202hzzz2dh6bh65h) X-Spam-TCS-SCL: 4:0 X-FB-SS: 5, X-MS-Exchange-Organization-Antispam-Report: OrigIP: 63.81.120.155; Service: EHS Received: by mail130-tx2 (MessageSwitch) id 1252348580721_15052; Mon, 7 Sep 2009 18:36:20 +0000 (UCT) Received: from imap.sh.mvista.com (unknown [63.81.120.155]) by mail130-tx2.bigfish.com (Postfix) with ESMTP id B7333AE804B for ; Mon, 7 Sep 2009 18:36:19 +0000 (UTC) Received: from wasted.dev.rtsoft.ru (unknown [10.150.0.9]) by imap.sh.mvista.com (Postfix) with ESMTP id CF6AF3ECA; Mon, 7 Sep 2009 11:36:16 -0700 (PDT) From: Sergei Shtylyov Organization: MontaVista Software Inc. To: khilman@deeprootsystems.com Date: Mon, 7 Sep 2009 22:38:19 +0400 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200909072238.19736.sshtylyov@ru.mvista.com> Cc: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH 2/3] DA8xx: CPPI 4.1 platfrom code X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.4 Precedence: list List-Id: davinci-linux-open-source.linux.davincidsp.com 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 Add the function to initialize the CPPI 4.1 subsystem along with the data describing CPPI 4.1 queue manager and DMA block found in DA8xx chips. Modify USB 2.0 clock entry to have the clock enabled early if we have CPPI 4.1 subsystem enabled. Signed-off-by: Sergei Shtylyov --- The patch is against the recent DaVinci tree. arch/arm/mach-davinci/da830.c | 4 + arch/arm/mach-davinci/devices-da8xx.c | 95 +++++++++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/da8xx.h | 6 + 3 files changed, 105 insertions(+) Index: linux-davinci/arch/arm/mach-davinci/da830.c =================================================================== --- linux-davinci.orig/arch/arm/mach-davinci/da830.c +++ linux-davinci/arch/arm/mach-davinci/da830.c @@ -305,6 +305,10 @@ static struct clk usb20_clk = { .parent = &pll0_sysclk2, .lpsc = DA8XX_LPSC1_USB20, .psc_ctlr = 1, +#ifdef CONFIG_CPPI41 + /* CPPI 4.1 is clocked by USB 2.0 clock */ + .flags = ALWAYS_ENABLED, +#endif }; static struct clk aemif_clk = { Index: linux-davinci/arch/arm/mach-davinci/devices-da8xx.c =================================================================== --- linux-davinci.orig/arch/arm/mach-davinci/devices-da8xx.c +++ linux-davinci/arch/arm/mach-davinci/devices-da8xx.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include