max98505.h 816 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Platform data for MAX98505
  3. *
  4. * Copyright 2011-2012 Maxim Integrated Products
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. */
  12. #ifndef __SOUND_MAX98505_PDATA_H__
  13. #define __SOUND_MAX98505_PDATA_H__
  14. #define MAX98505_I2C_ADDRESS (0x62 >> 1)
  15. struct max98505_dsp_cfg {
  16. const char *name;
  17. u8 tx_dither_en;
  18. u8 rx_dither_en;
  19. u8 meas_dc_block_en;
  20. u8 rx_flt_mode;
  21. };
  22. /* codec platform data */
  23. struct max98505_pdata {
  24. int irq;
  25. struct max98505_dsp_cfg *dsp_cfg;
  26. u8 clk_monitor_en;
  27. u8 rx_ch_en;
  28. u8 tx_ch_en;
  29. u8 tx_hiz_ch_en;
  30. u8 tx_ch_src;
  31. u8 auth_en;
  32. u8 wdog_time_out;
  33. };
  34. #endif