7#ifndef _CS47L63_REG_CONF_H_
8#define _CS47L63_REG_CONF_H_
10#include "cs47l63_spec.h"
20#define SPI_BUSY_WAIT 0x0001
21#define SPI_BUSY_WAIT_US_1000 1000
22#define SPI_BUSY_WAIT_US_3000 3000
24#define MAX_VOLUME_REG_VAL 0x80
25#define MAX_VOLUME_DB 64
26#define OUT_VOLUME_DEFAULT 0x62
27#define VOLUME_UPDATE_BIT (1 << 9)
29#define CS47L63_SOFT_RESET_VAL 0x5A000000
34 { CS47L63_SAMPLE_RATE3, 0x0012 },
35 { CS47L63_SAMPLE_RATE2, 0x0002 },
36 { CS47L63_SAMPLE_RATE1, 0x0003 },
37 { CS47L63_SYSTEM_CLOCK1, 0x034C },
38 { CS47L63_ASYNC_CLOCK1, 0x034C },
39 { CS47L63_FLL1_CONTROL2, 0x88200008 },
40 { CS47L63_FLL1_CONTROL3, 0x10000 },
41 { CS47L63_FLL1_GPIO_CLOCK, 0x0005 },
42 { CS47L63_FLL1_CONTROL1, 0x0001 },
48 { CS47L63_GPIO6_CTRL1, 0x61000001 },
49 { CS47L63_GPIO7_CTRL1, 0x61000001 },
50 { CS47L63_GPIO8_CTRL1, 0x61000001 },
53 { CS47L63_GPIO10_CTRL1, 0x41008001 },
58 { CS47L63_LDO2_CTRL1, 0x0005 },
59 { CS47L63_MICBIAS_CTRL1, 0x00EC },
60 { CS47L63_MICBIAS_CTRL5, 0x0272 },
63 { CS47L63_INPUT_CONTROL, 0x000F },
66 { CS47L63_INPUT1_CONTROL1, 0x50021 },
69 { CS47L63_IN1L_CONTROL2, 0x800080 },
70 { CS47L63_IN1R_CONTROL2, 0x800080 },
73 { CS47L63_INPUT_CONTROL3, 0x20000000 },
76 { CS47L63_ASP1TX1_INPUT1, 0x800010 },
77 { CS47L63_ASP1TX2_INPUT1, 0x800011 },
83 { CS47L63_INPUT2_CONTROL1, 0x50020 },
86 { CS47L63_IN2L_CONTROL1, 0x10000000 },
87 { CS47L63_IN2R_CONTROL1, 0x10000000 },
90 { CS47L63_IN2L_CONTROL2, 0x800080 },
91 { CS47L63_IN2R_CONTROL2, 0x800080 },
94 { CS47L63_INPUT_CONTROL, 0x000F },
97 { CS47L63_INPUT_CONTROL3, 0x20000000 },
100 { CS47L63_ASP1TX1_INPUT1, 0x800012 },
101 { CS47L63_ASP1TX2_INPUT1, 0x800013 },
106 { CS47L63_OUTPUT_ENABLE_1, 0x0002 },
107 { CS47L63_OUT1L_INPUT1, 0x800020 },
108 { CS47L63_OUT1L_INPUT2, 0x800021 },
112 { CS47L63_OUTPUT_ENABLE_1, 0x00 },
118 { CS47L63_GPIO1_CTRL1, 0x61000000 },
119 { CS47L63_GPIO2_CTRL1, 0xE1000000 },
120 { CS47L63_GPIO3_CTRL1, 0xE1000000 },
121 { CS47L63_GPIO4_CTRL1, 0xE1000000 },
122 { CS47L63_GPIO5_CTRL1, 0x61000001 },
125#if CONFIG_AUDIO_SAMPLE_RATE_16000_HZ
126 { CS47L63_SAMPLE_RATE1, 0x000000012 },
127#elif CONFIG_AUDIO_SAMPLE_RATE_24000_HZ
128 { CS47L63_SAMPLE_RATE1, 0x000000002 },
129#elif CONFIG_AUDIO_SAMPLE_RATE_48000_HZ
130 { CS47L63_SAMPLE_RATE1, 0x000000003 },
133 { CS47L63_SAMPLE_RATE2, 0 },
134 { CS47L63_SAMPLE_RATE3, 0 },
135 { CS47L63_SAMPLE_RATE4, 0 },
138 { CS47L63_ASP1_CONTROL2, 0x10100200 },
139 { CS47L63_ASP1_CONTROL3, 0x0000 },
140 { CS47L63_ASP1_DATA_CONTROL1, 0x0020 },
141 { CS47L63_ASP1_DATA_CONTROL5, 0x0020 },
142 { CS47L63_ASP1_ENABLES1, 0x30003 },
146 { CS47L63_FLL1_CONTROL1, 0x0000 },
148 { CS47L63_FLL1_CONTROL1, 0x0001 },
const uint32_t GPIO_configuration[][2]
Definition: cs47l63_reg_conf.h:47
#define SPI_BUSY_WAIT
Definition: cs47l63_reg_conf.h:20
const uint32_t asp1_enable[][2]
Definition: cs47l63_reg_conf.h:116
const uint32_t line_in_enable[][2]
Definition: cs47l63_reg_conf.h:81
const uint32_t pdm_mic_enable_configure[][2]
Definition: cs47l63_reg_conf.h:56
#define SPI_BUSY_WAIT_US_1000
Definition: cs47l63_reg_conf.h:21
const uint32_t clock_configuration[][2]
Definition: cs47l63_reg_conf.h:33
const uint32_t FLL_toggle[][2]
Definition: cs47l63_reg_conf.h:145
#define SPI_BUSY_WAIT_US_3000
Definition: cs47l63_reg_conf.h:22
const uint32_t output_disable[][2]
Definition: cs47l63_reg_conf.h:111
const uint32_t soft_reset[][2]
Definition: cs47l63_reg_conf.h:151
#define CS47L63_SOFT_RESET_VAL
Definition: cs47l63_reg_conf.h:29
const uint32_t output_enable[][2]
Definition: cs47l63_reg_conf.h:105