All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
To: broonie@kernel.org, alsa-devel@alsa-project.org, perex@perex.cz
Cc: tiwai@suse.de, Alexander.Deucher@amd.com,
	Vijendar Mukunda <Vijendar.Mukunda@amd.com>,
	lgirdwood@gmail.com, Akshu.Agrawal@amd.com
Subject: [PATCH 8/8] ASoC: amd: enabling bt i2s config after acp reset
Date: Mon, 26 Mar 2018 18:43:03 +0530	[thread overview]
Message-ID: <1522069983-11381-9-git-send-email-Vijendar.Mukunda@amd.com> (raw)
In-Reply-To: <1522069983-11381-1-git-send-email-Vijendar.Mukunda@amd.com>

after acp reset , it requires to reprogram bt i2s config
mux pins to enable bt i2s instance.
added bt i2s enablement sequence during acp init.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
---
 sound/soc/amd/acp-pcm-dma.c | 5 +++++
 sound/soc/amd/acp.h         | 1 +
 2 files changed, 6 insertions(+)

diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c
index 92b163a..3ebba00 100644
--- a/sound/soc/amd/acp-pcm-dma.c
+++ b/sound/soc/amd/acp-pcm-dma.c
@@ -604,6 +604,11 @@ static int acp_init(void __iomem *acp_mmio, u32 asic_type)
 	val &= ~ACP_SOFT_RESET__SoftResetAud_MASK;
 	acp_reg_write(val, acp_mmio, mmACP_SOFT_RESET);
 
+	/* For BT instance change pins from UART to BT */
+	val = acp_reg_read(acp_mmio, mmACP_BT_UART_PAD_SEL);
+	val |= ACP_BT_UART_PAD_SELECT_MASK;
+	acp_reg_write(val, acp_mmio, mmACP_BT_UART_PAD_SEL);
+
 	/* initiailize Onion control DAGB register */
 	acp_reg_write(ACP_ONION_CNTL_DEFAULT, acp_mmio,
 			mmACP_AXI2DAGB_ONION_CNTL);
diff --git a/sound/soc/amd/acp.h b/sound/soc/amd/acp.h
index a91f0a9..aa3e07b 100644
--- a/sound/soc/amd/acp.h
+++ b/sound/soc/amd/acp.h
@@ -107,6 +107,7 @@
 #define ACP_I2S_MIC_16BIT_RESOLUTION_EN 0x01
 #define ACP_I2S_SP_16BIT_RESOLUTION_EN	0x02
 #define ACP_I2S_BT_16BIT_RESOLUTION_EN	0x04
+#define ACP_BT_UART_PAD_SELECT_MASK	0x1
 enum acp_dma_priority_level {
 	/* 0x0 Specifies the DMA channel is given normal priority */
 	ACP_DMA_PRIORITY_LEVEL_NORMAL = 0x0,
-- 
2.7.4

  parent reply	other threads:[~2018-03-26 13:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-26 13:12 [PATCH 0/8] Enablement of BT I2S controller instance for AMD APUs Vijendar Mukunda
2018-03-26 13:12 ` [PATCH 1/8] ASoC: dwc: I2S Controller instance param added Vijendar Mukunda
2018-03-26 13:12 ` [PATCH 2/8] ASoC: amd: dma driver changes for BT I2S controller instance Vijendar Mukunda
2018-03-28 11:23   ` kbuild test robot
2018-04-02  1:45     ` Mukunda,Vijendar
2018-03-26 13:12 ` [PATCH 3/8] ASoC: amd: dma descriptor changes for BT I2S Instance Vijendar Mukunda
2018-03-26 13:12 ` [PATCH 4/8] ASoC: amd: Interrupt handler changes for BT I2S instance Vijendar Mukunda
2018-03-26 13:13 ` [PATCH 5/8] ASoC: amd: prepare callback modifications for bt i2s instance Vijendar Mukunda
2018-03-26 13:13 ` [PATCH 6/8] ASoC: amd: pointer and trigger callback modifications for bt i2s Vijendar Mukunda
2018-03-26 13:13 ` [PATCH 7/8] ASoC: amd: 16bit resolution support for bt i2s instance Vijendar Mukunda
2018-03-26 13:13 ` Vijendar Mukunda [this message]
2018-04-02  2:46 ` [PATCH 0/8] Enablement of BT I2S controller instance for AMD APUs Mukunda,Vijendar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1522069983-11381-9-git-send-email-Vijendar.Mukunda@amd.com \
    --to=vijendar.mukunda@amd.com \
    --cc=Akshu.Agrawal@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.