Received: by 10.192.165.156 with SMTP id m28csp1091859imm; Wed, 18 Apr 2018 04:05:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx49xTjQKeubdXvsoqK/fz//xK+sCferfRLUYs3dzL1QREP0E1JurjQleEH9b0R1TI06YV/uH X-Received: by 10.101.93.2 with SMTP id e2mr1392620pgr.100.1524049505180; Wed, 18 Apr 2018 04:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524049505; cv=none; d=google.com; s=arc-20160816; b=Tz2eeBt1ye1EGEDmYB2w9KR5CmcGdJoIZqysoxgvgIoCfJ9pzSxYov6d8dYZ2LYXWg mOh3umTfOgYVvdz9z9I6zuZh5aY7EndMNXJ6rRLh7/5xNgtNpg8ldOsc37JY5jRX/XC4 tFsoH4OmjL3fH5o8HINyf8RE53iwAQzTuizgHdw7Jn+5idWEVXA1gHwUa07hTlRNLBEi l94O1GvSyCqsCwJB2W/GvAIQanS8y4Eylaclav0JFRCgsAWVmdpvVpTrDyIC7tdtMNTT 3VOQZNU4iTi6cx5KE9hJkKpCJd20pCuCpJnXKxkc8FnwbbBDk1EjN8H07wu08Ec/71Ju WFFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:from:dkim-signature:arc-authentication-results; bh=DapgEGwh+Ii6Ebhsc0sp4cuxkDJdjOrWdU1/EaaKygA=; b=bMJ7fqOehYYpamiZC9vB56YWaf/xF1eaE1T4io4k9MBZDkXC4IM3EYY9/FHZWbMbJH QCJGo3pcHzxlgw69SrDUS9JYSY2Imel1aQR6dk6VBhDeRosaI9ZHsx7vtIpH4kyeh9MX bZIOkYvL4+VXL5DcrU0JeYZfjed067qCtNezpYG/l5qK39fMX003bzP4T353kM4m5W0G +oVzFQa5ATF+0+ShITb2tR46d5ojgMKmRKm3hJj0Wx7ZIX+kYnbUYDb+t/+4zhVZUctl Mn2FbXQVkLq97uxShcFlpbSHnVDmx/wysXmraUEHphEwmb2cMMSl7SQW2MkrREmxSDtZ gH6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=y5aeCMfo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si852574pgn.404.2018.04.18.04.04.50; Wed, 18 Apr 2018 04:05:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=y5aeCMfo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753368AbeDRLDb (ORCPT + 99 others); Wed, 18 Apr 2018 07:03:31 -0400 Received: from mail-co1nam03on0086.outbound.protection.outlook.com ([104.47.40.86]:25952 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751879AbeDRLD3 (ORCPT ); Wed, 18 Apr 2018 07:03:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DapgEGwh+Ii6Ebhsc0sp4cuxkDJdjOrWdU1/EaaKygA=; b=y5aeCMfoYlfjP7f4ipegvln1JLuS0ouklxn83IkLMiprDBJrlCw5sE851Vxga8wAeE7nM9HB0LsOL84u8kyFDDoAvlSHGM+QU0QHKRGzHYx6tf2BlksiwzgXV8rBGUBEkvvdNS9o05kQjM7xv5t2jA1o64jtyB8+6cTa74k71oY= Received: from CY1PR12CA0043.namprd12.prod.outlook.com (2a01:111:e400:c42b::11) by DM2PR12MB0330.namprd12.prod.outlook.com (2a01:111:e400:50d0::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.15; Wed, 18 Apr 2018 11:03:25 +0000 Received: from BY2NAM03FT025.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::200) by CY1PR12CA0043.outlook.office365.com (2a01:111:e400:c42b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.696.12 via Frontend Transport; Wed, 18 Apr 2018 11:03:25 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; nexb.com; dkim=none (message not signed) header.d=none;nexb.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by BY2NAM03FT025.mail.protection.outlook.com (10.152.84.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.675.14 via Frontend Transport; Wed, 18 Apr 2018 11:03:25 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.382.0; Wed, 18 Apr 2018 06:03:17 -0500 From: Vijendar Mukunda CC: Vijendar Mukunda , Akshu Agrawal , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Alex Deucher , Kuninori Morimoto , Dylan Reid , "Jason Clinton" , Guenter Roeck , Philippe Ombredanne , Greg Kroah-Hartman , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [PATCH v2 3/3] ASoC: amd: enabling bt i2s config after acp reset Date: Wed, 18 Apr 2018 16:34:54 +0530 Message-ID: <1524049494-19526-4-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524049494-19526-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1524049494-19526-1-git-send-email-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39380400002)(396003)(376002)(39860400002)(346002)(2980300002)(428003)(189003)(199004)(9170700003)(8676002)(105586002)(446003)(478600001)(336012)(106466001)(486006)(53416004)(2616005)(476003)(11346002)(126002)(72206003)(1671002)(48376002)(4326008)(36756003)(50466002)(76176011)(5660300001)(39060400002)(86362001)(109986005)(426003)(54906003)(53936002)(7416002)(16586007)(26005)(186003)(6666003)(47776003)(2906002)(305945005)(77096007)(104016004)(356003)(97736004)(81166006)(50226002)(7696005)(8936002)(51416003)(316002)(266003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR12MB0330;H:SATLEXCHOV02.amd.com;FPR:;SPF:None;LANG:en;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM03FT025;1:MRpuiXX/ykPhCc63CIxSkojx4P5UzfdTO0prbhTFu7AfAiNO2cSm9g/9sq1c57MX03zjcArhAqNpbq3SmGj4MDTVxPTarOHPfJtCTTxJ0R/nchRSnH5sCeWTkMVqu/3h X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060);SRVR:DM2PR12MB0330; X-Microsoft-Exchange-Diagnostics: 1;DM2PR12MB0330;3:tr3pYNYZrYqxL/VK1bruKvAq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ci8rg0idQKSOzGsZNDJqU9lzrqDHKo6Rfcq8+AO/6VRpJmg7mpJD/jGYVIcYr5e8I30fDilcJafyid5TOG55jfddgKjmk1AnctReDrKippPwqux7rbIR6z/6rPn6dlBBy5QHk4fkBEovql7EaMdrdtlV6oqCS4msXirEZiThRhCrGuoso7EBqsV8Z/9p33RzpDNqR9zkYB5HmR1Y17+9DXz2v08enCzklGN/K2fVu0kgO9bAgMaJVxb8yxXHgskP0DmJzqw8Jkmm4IR9ENXr5c0/1YChevOXGQMuBW8as5MLGtBeLXQioma2AqpSS9R1+ZpRiF7X852l/0R+K9xyDgssvvVuYUPl4U4YhMdbfqdYU955x0TLwKtsmx5jyQ2cqlKZDUC2m3cWEnR2OlKmt9SYQztFC6PG2JVx+LYnibKt7gviHSIQW/R0pGsIeMFlZhkDMZ2PYbp X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93003095)(3231232)(944501327)(52105095)(6055026)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011);SRVR:DM2PR12MB0330;BCL:0;PCL:0;RULEID:;SRVR:DM2PR12MB0330; X-Microsoft-Exchange-Diagnostics: 1;DM2PR12MB0330;4:0UGu+Srk0b/NZCtFQ5d9pUD278olsliuFfLatkg649HWcJogZCtrdJpWg1etib06bTBddiL6uEkMgIRCaNYviwPw1yzaw6FR7QX2X3wsUu+UiQyedXHdyEdkBTlnMyf+cKlYd88m3AtsVU4tCOhDrwSJ8hgcYD4IAJbklnc/BaR/OFjVD9f6J3zT2fiGm3v+6SKXF0jfwE6TGYj7WIElx+T4PRXTULiwEaHJNsxWDZ4uXLiKOET+TQuvZ3QCMYiA2WGFqn80sfTCNniGRfFbMeVPMbhouMC57Xf0BQW790bJdB951cqoVWfNpU1vqg3i X-Forefront-PRVS: 06469BCC91 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR12MB0330;23:11wytHBOaS6MYsMkX5dK7oA9AGXfzkXz69IBIaYDG?= =?us-ascii?Q?62E0A9uE/TF3zQx3rgulAa8uUDJHv1UjQCP+2LY42KQIrHTH8VLioVpNxOuj?= =?us-ascii?Q?JOrm2zoP9LQG9kPZElhjEQYo4x33rAj86c1nL5dEe/8Ull4r5/ooRbeN7S1d?= =?us-ascii?Q?ylTV767nuCgjLL9L/ocPzAPtxZA4W1yYvvcTNbXuAA3OVzYeN5H58JkzY7Gc?= =?us-ascii?Q?FbsRhdQ4cEAw0+8SMJ6WcPbEzHuKMt5agkiUA7p8KN6krFIXQ0rWbSl6rEiF?= =?us-ascii?Q?CPD0MmGxnQaIEpWIK0WeLVlsW1/mlo8b5n0L92Vb3O9G0XMKLIV/VeJHLUC1?= =?us-ascii?Q?kJFMcWpdWXlEt+QnExVWb0K9joBzDbSbtkCVYe+wDPCUv6ioMtWDYz06u5/N?= =?us-ascii?Q?wG2S7hkoJBu5E32Fo76boCzv2Te000TIumcPlTFhSfcTfiwcuvMBTVio1xAu?= =?us-ascii?Q?wStmcolTW2EJCfomOSxeXbRSjYbvtAdUneSrHDEetaRtKL5IBfckapVE79Eg?= =?us-ascii?Q?OtSYTHRpj2y4Zdl6s86ocuRO1SQNaE3oHDTbvxO/OjHJTmxtwzUYMVz8Lctw?= =?us-ascii?Q?V/uDUcNwWgYBdhfuKzK9lVan+gxYz5OENzzZbYMT+0dIoPqudWxY6sd3lAy4?= =?us-ascii?Q?/hDtbBctZUyVXQ3psizRVmj2cSuZlMfwSyYn3JJkr4C5b/4egrKP47kFl6tK?= =?us-ascii?Q?uvkdMt+GvmAwoCBOWo4Ouc6VK1+GJLZJJ9ZuxbeouCUJHff/DBayQlndsbR1?= =?us-ascii?Q?2Qa/peDTHqrPjTaxlg4DyoDxLNH0pr+o6RW8rj8voP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Cu9Dvgs X-MS-Office365-Filtering-Correlation-Id: 8c4e596a-56a9-4a9b-ba06-08d5a51c01db X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2018 11:03:25.0075 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c4e596a-56a9-4a9b-ba06-08d5a51c01db X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0330 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On ST/CZ based platforms, for specific platform bt uart mux to be defined for bt i2s. By default, these pins will be used for uart. 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 Signed-off-by: Akshu Agrawal --- v1->v2: fixed kbuild errors sound/soc/amd/acp-da7219-max98357a.c | 2 ++ sound/soc/amd/acp-pcm-dma.c | 9 +++++++++ sound/soc/amd/acp.h | 1 + 3 files changed, 12 insertions(+) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index b205c78..9ff2138 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -44,6 +44,7 @@ static struct snd_soc_jack cz_jack; struct clk *da7219_dai_clk; +extern int bt_pad_enable; static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) { @@ -251,6 +252,7 @@ static int cz_probe(struct platform_device *pdev) cz_card.name, ret); return ret; } + bt_pad_enable = device_property_read_bool(&pdev->dev, "bt-pad-enable"); return 0; } diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 7c392fe..b52c660 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -46,6 +46,8 @@ #define DRV_NAME "acp_audio_dma" +bool bt_pad_enable = false; +EXPORT_SYMBOL(bt_pad_enable); static const struct snd_pcm_hardware acp_pcm_hardware_playback = { .info = SNDRV_PCM_INFO_INTERLEAVED | @@ -525,6 +527,13 @@ 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 */ + if (bt_pad_enable) { + 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 95c39a3..520a08f 100644 --- a/sound/soc/amd/acp.h +++ b/sound/soc/amd/acp.h @@ -110,6 +110,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 */ -- 2.7.4