From patchwork Wed Feb 10 10:19:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 8269881 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7887EBEEE5 for ; Wed, 10 Feb 2016 10:25:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B3BD52022A for ; Wed, 10 Feb 2016 10:25:11 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 854AA20145 for ; Wed, 10 Feb 2016 10:25:10 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A09B426595B; Wed, 10 Feb 2016 11:25:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CC4572654D9; Wed, 10 Feb 2016 11:21:30 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 440772654B7; Wed, 10 Feb 2016 11:21:29 +0100 (CET) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by alsa0.perex.cz (Postfix) with ESMTP id 00188265759 for ; Wed, 10 Feb 2016 11:19:39 +0100 (CET) Received: by mail-wm0-f41.google.com with SMTP id 128so20120250wmz.1 for ; Wed, 10 Feb 2016 02:19:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F4FegnSyGnCu7qyvrxviKuM7dn6M21eI0Ts2pROFbHs=; b=GmKb3u9kPG/Cf7NHfZhLQYO2WAlaCv4j9S1IXojlTj7q1/oaLm+T/CVfeh/zjYDiXH 96/cG19T8W4AbtmbQBCcURCLd0Ye4amR28NXxE7+tEnudfGDh0sTOAM9+a6+FthAoJZp qUZ+wKW/q6qNczPZxUj0R4spPKSZsAPm67bEo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F4FegnSyGnCu7qyvrxviKuM7dn6M21eI0Ts2pROFbHs=; b=PlWzwloFm+t4Aym+4SBpg00c8Q7H/ivPyplm9jDL6Z0/4AaXHprB+I8bx+QwAgqPh+ KMFOYwUbubIe/QyDYmVbfS/6NKqghQuoFWuRUFYucJ96IHpZzBjl7xAnXhtpz8xn8tmT 5HwwNYJwCpFucDGXpkgy+DJjJ/slIqJalu4cl9LKhxfyyj7PJRM9GdcRe9CMsETpACQS do7ma0sjMjv+Hr9CftGJmPJqn6T2znsObAb/zv3vTWlcgFWi+LHF84dY18++h8V8DtV0 0T30nJWls1695LO3DqNzfTbJDfTYzLRydiSDFd7EbC+Bc06ng7IRoXGN1X4vsCjpWtLo PmHA== X-Gm-Message-State: AG10YOQu5SLLiOlsMa+T0ixd1sx/S5ykBsw4Kterq2t2zZn44Zce8eqWjvQELaz5S2H7NXvh X-Received: by 10.194.63.75 with SMTP id e11mr3544154wjs.79.1455099579811; Wed, 10 Feb 2016 02:19:39 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id ko2sm2267913wjc.9.2016.02.10.02.19.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 02:19:39 -0800 (PST) From: Srinivas Kandagatla To: Patrick Lai , alsa-devel@alsa-project.org, Mark Brown Date: Wed, 10 Feb 2016 10:19:36 +0000 Message-Id: <1455099576-754-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455099418-311-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1455099418-311-1-git-send-email-srinivas.kandagatla@linaro.org> Cc: kwestfie@codeaurora.org, Banajit Goswami , Liam Girdwood , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Takashi Iwai , Srinivas Kandagatla Subject: [alsa-devel] [PATCH v1 10/14] ASoC: qcom: add wrdma register definitions X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds wrdma registers into the lpaif-reg.h. Signed-off-by: Srinivas Kandagatla Acked-by: Kenneth Westfield --- sound/soc/qcom/lpass-lpaif-reg.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/qcom/lpass-lpaif-reg.h b/sound/soc/qcom/lpass-lpaif-reg.h index 6599794..760d219 100644 --- a/sound/soc/qcom/lpass-lpaif-reg.h +++ b/sound/soc/qcom/lpass-lpaif-reg.h @@ -145,4 +145,15 @@ #define LPAIF_RDMACTL_ENABLE_OFF (0 << LPAIF_RDMACTL_ENABLE_SHIFT) #define LPAIF_RDMACTL_ENABLE_ON (1 << LPAIF_RDMACTL_ENABLE_SHIFT) +#define LPAIF_WRDMA_REG_ADDR(v, addr, chan) \ + (v->wrdma_reg_base + (addr) + \ + v->wrdma_reg_stride * (chan - v->wrdma_channel_start)) + +#define LPAIF_WRDMACTL_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x00, (chan)) +#define LPAIF_WRDMABASE_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x04, (chan)) +#define LPAIF_WRDMABUFF_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x08, (chan)) +#define LPAIF_WRDMACURR_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x0C, (chan)) +#define LPAIF_WRDMAPER_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x10, (chan)) +#define LPAIF_WRDMAPERCNT_REG(v, chan) LPAIF_WRDMA_REG_ADDR(v, 0x14, (chan)) + #endif /* __LPASS_LPAIF_REG_H__ */