pdata.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _AQT1000_PDATA_H_
  14. #define _AQT1000_PDATA_H_
  15. #include <linux/kernel.h>
  16. #include <linux/device.h>
  17. #include "../msm-cdc-supply.h"
  18. struct aqt1000_micbias_setting {
  19. u8 ldoh_v;
  20. u32 cfilt1_mv;
  21. u32 micb1_mv;
  22. u8 bias1_cfilt_sel;
  23. };
  24. struct aqt1000_pdata {
  25. unsigned int irq_gpio;
  26. unsigned int irq_flags;
  27. struct cdc_regulator *regulator;
  28. int num_supplies;
  29. struct aqt1000_micbias_setting micbias;
  30. struct device_node *aqt_rst_np;
  31. u32 mclk_rate;
  32. u32 ext_clk_rate;
  33. u32 ext_1p8v_supply;
  34. };
  35. #endif /* _AQT1000_PDATA_H_ */