1 /* arch/arm/plat-s3c24xx/include/plat/audio-simtec.h
2  *
3  * Copyright 2008 Simtec Electronics
4  *	http://armlinux.simtec.co.uk/
5  *	Ben Dooks <ben@simtec.co.uk>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  *
11  * Simtec Audio support.
12 */
13 
14 /**
15  * struct s3c24xx_audio_simtec_pdata - platform data for simtec audio
16  * @use_mpllin: Select codec clock from MPLLin
17  * @output_cdclk: Need to output CDCLK to the codec
18  * @have_mic: Set if we have a MIC socket
19  * @have_lout: Set if we have a LineOut socket
20  * @amp_gpio: GPIO pin to enable the AMP
21  * @amp_gain: Option GPIO to control AMP gain
22  */
23 struct s3c24xx_audio_simtec_pdata {
24 	unsigned int	use_mpllin:1;
25 	unsigned int	output_cdclk:1;
26 
27 	unsigned int	have_mic:1;
28 	unsigned int	have_lout:1;
29 
30 	int		amp_gpio;
31 	int		amp_gain[2];
32 
33 	void	(*startup)(void);
34 };
35 
36 extern int simtec_audio_add(const char *codec_name, bool has_lr_routing,
37 			    struct s3c24xx_audio_simtec_pdata *pdata);
38