summaryrefstree
path: root/kernel/include/linux/mfd/cs35l41/big_data.h
blob: bede7268ee346fa93c6866ee4162e7a4a31e5f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * big_data.h  --  Big Data defines for Cirrus Logic CS35L41 codec
 *
 * Copyright 2017 Cirrus Logic
 *
 * Author:	David Rhodes	<david.rhodes@cirrus.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

/* These values are specific to Playback 5.00.5 */

#define CS35L41_BD_MAX_TEMP		0x2800434
#define CS35L41_BD_MAX_EXC		0x2800438
#define CS35L41_BD_OVER_TEMP_COUNT	0x280043c
#define CS35L41_BD_OVER_EXC_COUNT	0x2800440
#define CS35L41_BD_ABNORMAL_MUTE	0x2800444

#define CS35L41_BD_TEMP_RADIX		14
#define CS35L41_BD_EXC_RADIX		19

void cirrus_bd_store_values_left(void);
void cirrus_bd_store_values_right(void);
int cirrus_bd_amp_add(struct regmap *regmap_new, bool right_channel_amp);
int cirrus_bd_init(struct class *cirrus_amp_class);
void cirrus_bd_exit(void);