asoc: wcd937x: Fix register names and properties

Update the register names and default values to
be same as the software document of codec.

CRs-Fixed: 2334177
Change-Id: Iec3ce76dceb44cef64c1f38a6cd75cb40ee2a539
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
This commit is contained in:
Tanya Dixit
2018-10-16 14:48:37 +05:30
committato da Meng Wang
parent 63f4815535
commit 46ec0f2835
4 ha cambiato i file con 63 aggiunte e 63 eliminazioni

Vedi File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*/
#include <linux/regmap.h>
@@ -236,7 +236,7 @@ static const struct reg_default wcd937x_defaults[] = {
{ WCD937X_DIE_CRACK_INT_DIE_CRK_DET_INT1, 0x02 },
{ WCD937X_DIE_CRACK_INT_DIE_CRK_DET_INT2, 0x60 },
{ WCD937X_DIGITAL_PAGE_REGISTER, 0x00 },
{ WCD937X_DIGITAL_CHIP_ID0, 0x00 },
{ WCD937X_DIGITAL_CHIP_ID0, 0x01 },
{ WCD937X_DIGITAL_CHIP_ID1, 0x00 },
{ WCD937X_DIGITAL_CHIP_ID2, 0x0A },
{ WCD937X_DIGITAL_CHIP_ID3, 0x01 },
@@ -273,12 +273,12 @@ static const struct reg_default wcd937x_defaults[] = {
{ WCD937X_DIGITAL_CDC_HPH_DSM_C_2, 0xB1 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_C_3, 0x17 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R1, 0x4B },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R2, 0x27 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R2, 0x26 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R3, 0x32 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R4, 0x57 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R4, 0x63 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R4, 0x7C },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R4, 0x57 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R5, 0x63 },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R6, 0x7C },
{ WCD937X_DIGITAL_CDC_HPH_DSM_R7, 0x57 },
{ WCD937X_DIGITAL_CDC_AUX_DSM_A1_0, 0x00 },
{ WCD937X_DIGITAL_CDC_AUX_DSM_A1_1, 0x01 },
{ WCD937X_DIGITAL_CDC_AUX_DSM_A2_0, 0x96 },
@@ -322,9 +322,9 @@ static const struct reg_default wcd937x_defaults[] = {
{ WCD937X_DIGITAL_CDC_REQ_CTL, 0x01 },
{ WCD937X_DIGITAL_CDC_AMIC_CTL, 0x07 },
{ WCD937X_DIGITAL_CDC_DMIC_CTL, 0x00 },
{ WCD937X_DIGITAL_CDC_DMIC0_CTL, 0x01 },
{ WCD937X_DIGITAL_CDC_DMIC1_CTL, 0x01 },
{ WCD937X_DIGITAL_CDC_DMIC2_CTL, 0x01 },
{ WCD937X_DIGITAL_CDC_DMIC3_CTL, 0x01 },
{ WCD937X_DIGITAL_EFUSE_CTL, 0x2B },
{ WCD937X_DIGITAL_EFUSE_PRG_CTL, 0x00 },
{ WCD937X_DIGITAL_EFUSE_TEST_CTL_0, 0x00 },
@@ -337,7 +337,7 @@ static const struct reg_default wcd937x_defaults[] = {
{ WCD937X_DIGITAL_INTR_MODE, 0x00 },
{ WCD937X_DIGITAL_INTR_MASK_0, 0xFF },
{ WCD937X_DIGITAL_INTR_MASK_1, 0xFF },
{ WCD937X_DIGITAL_INTR_MASK_2, 0xFF },
{ WCD937X_DIGITAL_INTR_MASK_2, 0x0F },
{ WCD937X_DIGITAL_INTR_STATUS_0, 0x00 },
{ WCD937X_DIGITAL_INTR_STATUS_1, 0x00 },
{ WCD937X_DIGITAL_INTR_STATUS_2, 0x00 },
@@ -366,8 +366,9 @@ static const struct reg_default wcd937x_defaults[] = {
{ WCD937X_DIGITAL_SWR_HM_TEST, 0x00 },
{ WCD937X_DIGITAL_PAD_CTL_PDM_RX0, 0xF1 },
{ WCD937X_DIGITAL_PAD_CTL_PDM_RX1, 0xF1 },
{ WCD937X_DIGITAL_PAD_CTL_PDM_RX2, 0xF1 },
{ WCD937X_DIGITAL_PAD_CTL_PDM_TX, 0xF1 },
{ WCD937X_DIGITAL_PAD_CTL_PDM_TX0, 0xF1 },
{ WCD937X_DIGITAL_PAD_CTL_PDM_TX1, 0xF1 },
{ WCD937X_DIGITAL_PAD_INP_DIS_0, 0x00 },
{ WCD937X_DIGITAL_PAD_INP_DIS_1, 0x00 },
{ WCD937X_DIGITAL_DRIVE_STRENGTH_0, 0x00 },
{ WCD937X_DIGITAL_DRIVE_STRENGTH_1, 0x00 },
@@ -390,7 +391,7 @@ static const struct reg_default wcd937x_defaults[] = {
{ WCD937X_DIGITAL_SPARE_0, 0x00 },
{ WCD937X_DIGITAL_SPARE_1, 0x00 },
{ WCD937X_DIGITAL_SPARE_2, 0x00 },
{ WCD937X_DIGITAL_EFUSE_REG_0, 0xFF },
{ WCD937X_DIGITAL_EFUSE_REG_0, 0x00 },
{ WCD937X_DIGITAL_EFUSE_REG_1, 0xFF },
{ WCD937X_DIGITAL_EFUSE_REG_2, 0xFF },
{ WCD937X_DIGITAL_EFUSE_REG_3, 0xFF },
@@ -411,10 +412,10 @@ static const struct reg_default wcd937x_defaults[] = {
{ WCD937X_DIGITAL_EFUSE_REG_18, 0xFF },
{ WCD937X_DIGITAL_EFUSE_REG_19, 0xFF },
{ WCD937X_DIGITAL_EFUSE_REG_20, 0x0E },
{ WCD937X_DIGITAL_EFUSE_REG_21, 0x8F },
{ WCD937X_DIGITAL_EFUSE_REG_22, 0x16 },
{ WCD937X_DIGITAL_EFUSE_REG_23, 0x00 },
{ WCD937X_DIGITAL_EFUSE_REG_24, 0x00 },
{ WCD937X_DIGITAL_EFUSE_REG_21, 0x00 },
{ WCD937X_DIGITAL_EFUSE_REG_22, 0x00 },
{ WCD937X_DIGITAL_EFUSE_REG_23, 0xF8 },
{ WCD937X_DIGITAL_EFUSE_REG_24, 0x16 },
{ WCD937X_DIGITAL_EFUSE_REG_25, 0x00 },
{ WCD937X_DIGITAL_EFUSE_REG_26, 0x00 },
{ WCD937X_DIGITAL_EFUSE_REG_27, 0x00 },