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: 61633 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2553673lbl; Wed, 10 Feb 2016 02:22:00 -0800 (PST) X-Received: by 10.67.6.226 with SMTP id cx2mr6754887pad.71.1455099720444; Wed, 10 Feb 2016 02:22:00 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q70si4235846pfa.60.2016.02.10.02.22.00; Wed, 10 Feb 2016 02:22:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757703AbcBJKV5 (ORCPT + 7 others); Wed, 10 Feb 2016 05:21:57 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35593 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757821AbcBJKTl (ORCPT ); Wed, 10 Feb 2016 05:19:41 -0500 Received: by mail-wm0-f49.google.com with SMTP id c200so21137211wme.0 for ; Wed, 10 Feb 2016 02:19:40 -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=hgAoAXiOtFQsTXFCyc0G3zpJFI7DZWV+OraoaOgkWPompLKkTqytI+ggsQ+McvUfOp Xgrh4ckgvQsTuG50dnmNOP/eQhtZoZ7wRpaCWIwU6FSyjdNW+wtrH1A3YTKVQcc/i6Ti GwaC+1TKc1k8J/pPk9i6NZwodrj7KDCnDhf2iQ9tUq7WmRz5DFNtO87RdMjxx+UOyBMk ICKmk+eUnOmt3HiD04xB01cv5wJ7YAfUQGlOM4IbzBhbdPyqdv3S1+7yZqtYlU9j/PmZ Nx/mDqquIOY9Aez5rF/HBqQPhC5j7hgljR5Coz4PnRwGj0wGpRTCBPqczf4CfkN4fDa9 fwQg== X-Gm-Message-State: AG10YOR5eQpNyby/rD9H+kDHC8j2x9wlRw4bQvXI8dTQ4idHhhXayFk7RaVVFPuKd6vchokE 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 Cc: Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kwestfie@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v1 10/14] ASoC: qcom: add wrdma register definitions 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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__ */