audio-simtec.h 945 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* arch/arm/plat-samsung/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. * struct s3c24xx_audio_simtec_pdata - platform data for simtec audio
  15. * @use_mpllin: Select codec clock from MPLLin
  16. * @output_cdclk: Need to output CDCLK to the codec
  17. * @have_mic: Set if we have a MIC socket
  18. * @have_lout: Set if we have a LineOut socket
  19. * @amp_gpio: GPIO pin to enable the AMP
  20. * @amp_gain: Option GPIO to control AMP gain
  21. */
  22. struct s3c24xx_audio_simtec_pdata {
  23. unsigned int use_mpllin:1;
  24. unsigned int output_cdclk:1;
  25. unsigned int have_mic:1;
  26. unsigned int have_lout:1;
  27. int amp_gpio;
  28. int amp_gain[2];
  29. void (*startup)(void);
  30. };