From patchwork Thu Oct 4 10:15:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Porter X-Patchwork-Id: 1545901 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by patchwork1.kernel.org (Postfix) with ESMTP id E6EE33FC1A for ; Thu, 4 Oct 2012 10:18:30 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id q94AGZfi030309; Thu, 4 Oct 2012 05:16:35 -0500 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q94AGZnZ030689; Thu, 4 Oct 2012 05:16:35 -0500 Received: from dlelxv24.itg.ti.com (172.17.1.199) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Thu, 4 Oct 2012 05:16:35 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id q94AGZuN005802; Thu, 4 Oct 2012 05:16:35 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 9FE8180627; Thu, 4 Oct 2012 05:16:35 -0500 (CDT) 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 2E2858062B for ; Thu, 4 Oct 2012 05:15:22 -0500 (CDT) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id q94AFLBM027456 for ; Thu, 4 Oct 2012 05:15:21 -0500 (CDT) Received: from psmtp.com (na3sys009amx200.postini.com [74.125.149.236]) by white.ext.ti.com (8.13.7/8.13.7) with SMTP id q94AFLKw008202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 4 Oct 2012 05:15:21 -0500 Received: from mail-ie0-f173.google.com ([209.85.223.173]) (using TLSv1) by na3sys009amx200.postini.com ([74.125.148.10]) with SMTP; Thu, 04 Oct 2012 10:15:21 GMT Received: by mail-ie0-f173.google.com with SMTP id 17so552876iea.4 for ; Thu, 04 Oct 2012 03:15:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=xxExyWsBy1ohGqEWGtHx6A+6RL0padKXIO5NxLYuyVw=; b=ysRgYqc86ptxpjmZVpAJOY55ueZ7lcX0RcABLCS637nyQsEbM7CmspPuxY/C7mrzC4 QeAaYw0qGJqy9+X+hmb04RPiG78jQb/iQJH3PaPPlLuiyGZPmGX125ZOw2qOMjvcbolT 9tf771Uosd+HBEJxZndWs0DlHtFSOLIxOWHgSL3NcOmqdGcXfg5Y7cCXYSd70GkP8QS+ 90PCOLoG1QHVTnyKk3yz18vNuI/18aNYZ325CzsZ35knPGN3nalFUcMLbZ1MHpjeHjHg FY2BoLHJJk4EikxvMsNadr0io2L/M00MRzymaXGS/Dnw5xPLKpijupXJwRd0JsKw1fKw +n4w== Received: by 10.50.188.225 with SMTP id gd1mr14983075igc.15.1349345720801; Thu, 04 Oct 2012 03:15:20 -0700 (PDT) Received: from beef.ohporter.com (cpe-24-166-64-7.neo.res.rr.com. [24.166.64.7]) by mx.google.com with ESMTPS id i2sm13179763igl.8.2012.10.04.03.15.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Oct 2012 03:15:20 -0700 (PDT) From: Matt Porter To: Mark Brown , , Sekhar Nori Subject: [PATCH 2/2] ARM: davinci: enable SRAM ping ping buffering on DA850 Date: Thu, 4 Oct 2012 06:15:45 -0400 Message-ID: <1349345745-10584-3-git-send-email-mporter@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1349345745-10584-1-git-send-email-mporter@ti.com> References: <1349345745-10584-1-git-send-email-mporter@ti.com> X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:84.57964/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-dkim: 1 skipped:not-enabled X-pstn-settings: 2 (0.5000:0.0050) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [82/3] CC: Linux DaVinci Kernel List , Alsa Devel List , Linux Kernel Mailing List , Daniel Mack 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: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com Passes the DA850 shared SRAM gen_pool to the McASP driver and enables the ping-pong buffer DMA support. Signed-off-by: Matt Porter --- arch/arm/mach-davinci/board-da850-evm.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index acc6e84..c14ca9d 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -750,16 +750,19 @@ static u8 da850_iis_serializer_direction[] = { }; static struct snd_platform_data da850_evm_snd_data = { - .tx_dma_offset = 0x2000, - .rx_dma_offset = 0x2000, - .op_mode = DAVINCI_MCASP_IIS_MODE, - .num_serializer = ARRAY_SIZE(da850_iis_serializer_direction), - .tdm_slots = 2, - .serial_dir = da850_iis_serializer_direction, - .asp_chan_q = EVENTQ_0, - .version = MCASP_VERSION_2, - .txnumevt = 1, - .rxnumevt = 1, + .tx_dma_offset = 0x2000, + .rx_dma_offset = 0x2000, + .op_mode = DAVINCI_MCASP_IIS_MODE, + .num_serializer = ARRAY_SIZE(da850_iis_serializer_direction), + .tdm_slots = 2, + .serial_dir = da850_iis_serializer_direction, + .asp_chan_q = EVENTQ_0, + .ram_chan_q = EVENTQ_1, + .version = MCASP_VERSION_2, + .txnumevt = 1, + .rxnumevt = 1, + .sram_size_playback = SZ_8K, + .sram_size_capture = SZ_8K, }; static const short da850_evm_mcasp_pins[] __initconst = { @@ -1338,6 +1341,7 @@ static __init void da850_evm_init(void) pr_warning("da850_evm_init: mcasp mux setup failed: %d\n", ret); + da850_evm_snd_data.sram_pool = sram_get_gen_pool(); da8xx_register_mcasp(0, &da850_evm_snd_data); ret = davinci_cfg_reg_list(da850_lcdcntl_pins);