Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright 2008 Simtec Electronics
0004  *  http://armlinux.simtec.co.uk/
0005  *  Ben Dooks <ben@simtec.co.uk>
0006  *
0007  * Simtec Audio support.
0008 */
0009 
0010 /**
0011  * struct s3c24xx_audio_simtec_pdata - platform data for simtec audio
0012  * @use_mpllin: Select codec clock from MPLLin
0013  * @output_cdclk: Need to output CDCLK to the codec
0014  * @have_mic: Set if we have a MIC socket
0015  * @have_lout: Set if we have a LineOut socket
0016  * @amp_gpio: GPIO pin to enable the AMP
0017  * @amp_gain: Option GPIO to control AMP gain
0018  */
0019 struct s3c24xx_audio_simtec_pdata {
0020     unsigned int    use_mpllin:1;
0021     unsigned int    output_cdclk:1;
0022 
0023     unsigned int    have_mic:1;
0024     unsigned int    have_lout:1;
0025 
0026     int     amp_gpio;
0027     int     amp_gain[2];
0028 
0029     void    (*startup)(void);
0030 };