// SPDX-License-Identifier: GPL-2.0
/*
* ALSA SoC CPCAP codec driver
*
* Copyright (C) 2017 - 2018 Sebastian Reichel <sre@kernel.org>
*
* Very loosely based on original driver from Motorola:
* Copyright (C) 2007 - 2009 Motorola, Inc.
*/
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/platform_device.h>
#include <linux/mfd/motorola-cpcap.h>
#include <sound/core.h>
#include <sound/soc.h>
#include <sound/tlv.h>
/* Register 513 CPCAP_REG_CC --- CODEC */
#define CPCAP_BIT_CDC_CLK2 15
#define CPCAP_BIT_CDC_CLK1 14
#define CPCAP_BIT_CDC_CLK0 13
#define CPCAP_BIT_CDC_SR3 12
#define CPCAP_BIT_CDC_SR2 11
#define CPCAP_BIT_CDC_SR1 10
#define CPCAP_BIT_CDC_SR0 9
#define CPCAP_BIT_CDC_CLOCK_TREE_RESET 8
#define CPCAP_BIT_MIC2_CDC_EN 7
#define CPCAP_BIT_CDC_EN_RX 6
#define CPCAP_BIT_DF_RESET 5
#define CPCAP_BIT_MIC1_CDC_EN 4
#define CPCAP_BIT_AUDOHPF_1 3
#def