Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp174049yba; Wed, 3 Apr 2019 06:43:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvmuzDh5EOQDBK2azNPMYU8DpX7UpfYTIe5VAGq7vLWleTcmQCZHvnMF/bOWqqdj2CCtnM X-Received: by 2002:a63:6581:: with SMTP id z123mr21800546pgb.243.1554299033148; Wed, 03 Apr 2019 06:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554299033; cv=none; d=google.com; s=arc-20160816; b=Jp6449oLesh8co9y7wIvqWeA9N09xIoMDGMbWNl3If8Jwj2B7rF2SH6Xz4iy4wACaA KTz59P7FwYmX4DCkmUPClU3DiISZNsxVVVNdoB7VrjEd5EYTVdbENfpMUXb9DJAg3lPA a0kybVEjDpemYU5irRTlV6x5suqWU4qgqmxS6NdeHybHCkb8qwFIxXatUEUIk6KK0YAD thL6Ogbnr3XYIxJ89Nooi8zDTZWTA05BPNN562rCCQBIKJtOzuoVoI8EYBvGc6OaIL2b +K918kEKCoITC2dDxrr94jtaiA+/9WywGTiz66XkYdkSGaSbQ6a2t/MbmvhAHSm4yvTx bE6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=2sQmSUgZXI8I42eNh4WXPi08E8/zuH0tTTAcJFczBbw=; b=jlbIzeMEHOkCjzCZWunYyeSA3Yrt9LBwGJDdQEAILihNw8Isa4+Cg742cZ/1lp0R99 f7Iu/mHWhFKlmV7lKs8CSHNdfoXXW3e+3PR+j/UFv+5CoiTalnAewr+edOdUUu7rmpAC UwbuL1OhcjntJbJghKeMuwI3t3pcN0aGm0eEHt5DOyHJc1nvcrnhFgLVjfui1Wya1377 GNsjEYwfXY0Y9DHwNf4aoZESrX1Na25fyEK3+gpskdQPId3d/SjS5bwKU0eGcu0aGDKd 4e/pksGWLzkRgXSHAg3WMa/ROPtYexzlp92nvnbm/QtW2aVRWecIvaM0lINPbXxtvjFU biBQ== ARC-Authentication-Results: i=1; mx.google.com; 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 r12si13302071pgr.125.2019.04.03.06.43.37; Wed, 03 Apr 2019 06:43:53 -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; 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 S1726792AbfDCNmX (ORCPT + 99 others); Wed, 3 Apr 2019 09:42:23 -0400 Received: from regular1.263xmail.com ([211.150.70.195]:57270 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726588AbfDCNmF (ORCPT ); Wed, 3 Apr 2019 09:42:05 -0400 Received: from sugar.zhang?rock-chips.com (unknown [192.168.167.12]) by regular1.263xmail.com (Postfix) with ESMTP id 40DDB8CC; Wed, 3 Apr 2019 21:41:55 +0800 (CST) X-263anti-spam: KSV:0;BIG:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ADDR-CHECKED4: 1 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P16332T140353604671232S1554298910639057_; Wed, 03 Apr 2019 21:41:54 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <61472cc0c9e87940a30a79f62f3c32c7> X-RL-SENDER: sugar.zhang@rock-chips.com X-SENDER: zxg@rock-chips.com X-LOGIN-NAME: sugar.zhang@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Sugar Zhang To: heiko@sntech.de, broonie@kernel.org Cc: linux-rockchip@lists.infradead.org, Sugar Zhang , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 03/12] ASoC: rockchip: pdm: add default regs Date: Wed, 3 Apr 2019 21:40:47 +0800 Message-Id: <1554298856-59028-4-git-send-email-sugar.zhang@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554298856-59028-1-git-send-email-sugar.zhang@rock-chips.com> References: <1554298856-59028-1-git-send-email-sugar.zhang@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add default regs value for controller. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_pdm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 360ebf2..8c1be59 100644 --- a/sound/soc/rockchip/rockchip_pdm.c +++ b/sound/soc/rockchip/rockchip_pdm.c @@ -363,11 +363,19 @@ static bool rockchip_pdm_volatile_reg(struct device *dev, unsigned int reg) } } +static const struct reg_default rockchip_pdm_reg_defaults[] = { + {0x04, 0x78000017}, + {0x08, 0x0bb8ea60}, + {0x18, 0x0000001f}, +}; + static const struct regmap_config rockchip_pdm_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, .max_register = PDM_VERSION, + .reg_defaults = rockchip_pdm_reg_defaults, + .num_reg_defaults = ARRAY_SIZE(rockchip_pdm_reg_defaults), .writeable_reg = rockchip_pdm_wr_reg, .readable_reg = rockchip_pdm_rd_reg, .volatile_reg = rockchip_pdm_volatile_reg, -- 2.7.4