-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mfd/ab8500: Move platform-data for ab8500-codec into mfd-driver
The platform-data used by the Ux500 ASoC-driver is moved from the machine-driver context into the codec-driver context. This means adding the platform-data for 'ab8500-codec' into the main AB8500 platform-data. Signed-off-by: Ola Lilja <ola.o.lilja@stericsson.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
- Loading branch information
Ola Lilja
authored and
Mark Brown
committed
Jun 12, 2012
1 parent
cfaf025
commit f242e50
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright (C) ST-Ericsson SA 2012 | ||
* | ||
* Author: Ola Lilja <ola.o.lilja@stericsson.com> | ||
* for ST-Ericsson. | ||
* | ||
* License terms: | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef AB8500_CORE_CODEC_H | ||
#define AB8500_CORE_CODEC_H | ||
|
||
/* Mic-types */ | ||
enum amic_type { | ||
AMIC_TYPE_SINGLE_ENDED, | ||
AMIC_TYPE_DIFFERENTIAL | ||
}; | ||
|
||
/* Mic-biases */ | ||
enum amic_micbias { | ||
AMIC_MICBIAS_VAMIC1, | ||
AMIC_MICBIAS_VAMIC2 | ||
}; | ||
|
||
/* Bias-voltage */ | ||
enum ear_cm_voltage { | ||
EAR_CMV_0_95V, | ||
EAR_CMV_1_10V, | ||
EAR_CMV_1_27V, | ||
EAR_CMV_1_58V | ||
}; | ||
|
||
/* Analog microphone settings */ | ||
struct amic_settings { | ||
enum amic_type mic1_type; | ||
enum amic_type mic2_type; | ||
enum amic_micbias mic1a_micbias; | ||
enum amic_micbias mic1b_micbias; | ||
enum amic_micbias mic2_micbias; | ||
}; | ||
|
||
/* Platform data structure for the audio-parts of the AB8500 */ | ||
struct ab8500_codec_platform_data { | ||
struct amic_settings amics; | ||
enum ear_cm_voltage ear_cmv; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters