From patchwork Mon Feb 1 17:29:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 60954 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp170778lbb; Mon, 1 Feb 2016 09:29:36 -0800 (PST) X-Received: by 10.98.0.135 with SMTP id 129mr40153257pfa.156.1454347776637; Mon, 01 Feb 2016 09:29:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c67si47498935pfj.246.2016.02.01.09.29.36; Mon, 01 Feb 2016 09:29:36 -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 S1754305AbcBAR3d (ORCPT + 7 others); Mon, 1 Feb 2016 12:29:33 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:37794 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754698AbcBAR3a (ORCPT ); Mon, 1 Feb 2016 12:29:30 -0500 Received: by mail-wm0-f48.google.com with SMTP id l66so82249383wml.0 for ; Mon, 01 Feb 2016 09:29:29 -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=rYOztiWsErGvNoaNHHC+0JR8prw592+w8Xh+jIBp01E=; b=TtA7yPIVsKpdurNvoqqnA30ITJrXlnFml7YqlLRF+w8Y/PZo5ilfCtoiGnkedgGKeh 7/T8mV1fdFaed+q+7mJuI80pDlgUdPpKaVMt9KKMM7mjTlQd10gMQzNvMFZsxx4jcX4q ncRaC9AkdqzL/No/69/iBYgm24jp1hZZf494g= 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=rYOztiWsErGvNoaNHHC+0JR8prw592+w8Xh+jIBp01E=; b=bd/5OsT3mkhAB/8y0PedVDE7lQgPLwLLLTwS7bMTV04gq5ye/GBamzy1xk0fw7Wxfg 0f1E+pQ8cBEKfxKn7f1UvZAfMSeMSOM8MqYrYDGRKWmnP7huzx/HAwGaQWjaw+6TTM9P 5H7SSyerPCGtX+/G8zu9QUFu0y3RTWiCRtSkZX/dhIPdWVEDhcQJKzs0ghgbS4Echdgn ZsXZ5Qk95QptN/pT7ikeRRqTch8/LAvq/x/TJBNqdsxl4UjhrpiiMngNcUyTOKA52Gjp tTsvvuq/wt0CLOZV1a+TxhioNVd37CN4IhCKKZK5sHiGA1AtGtiXWn2X2PaK6PgMo21F 9JHw== X-Gm-Message-State: AG10YOQ78EJ8MFXkYhFM4kWPxCSjDe1582ke2a5NbPMiNq7trJ+KbNZbFDE/3SUd6E74DoFA X-Received: by 10.28.91.83 with SMTP id p80mr1898138wmb.48.1454347769224; Mon, 01 Feb 2016 09:29:29 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id 75sm12503933wmo.22.2016.02.01.09.29.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Feb 2016 09:29:28 -0800 (PST) From: Srinivas Kandagatla To: Patrick Lai , alsa-devel@alsa-project.org Cc: Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH RFC 11/15] ASoC: qcom: add wrdma register definations Date: Mon, 1 Feb 2016 17:29:26 +0000 Message-Id: <1454347766-10918-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454347622-9970-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1454347622-9970-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 --- 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 8a64d1a..2008f9f 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__ */