wm8900.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * wm8900.h -- WM890 Soc Audio driver
  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 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef _WM8900_H
  9. #define _WM8900_H
  10. #define WM8900_FLL 1
  11. #define WM8900_BCLK_DIV 1
  12. #define WM8900_ADC_CLKDIV 2
  13. #define WM8900_DAC_CLKDIV 3
  14. #define WM8900_ADC_LRCLK 4
  15. #define WM8900_DAC_LRCLK 5
  16. #define WM8900_OPCLK_DIV 6
  17. #define WM8900_LRCLK_MODE 7
  18. #define WM8900_BCLK_DIV_1 0x00
  19. #define WM8900_BCLK_DIV_1_5 0x02
  20. #define WM8900_BCLK_DIV_2 0x04
  21. #define WM8900_BCLK_DIV_3 0x06
  22. #define WM8900_BCLK_DIV_4 0x08
  23. #define WM8900_BCLK_DIV_5_5 0x0a
  24. #define WM8900_BCLK_DIV_6 0x0c
  25. #define WM8900_BCLK_DIV_8 0x0e
  26. #define WM8900_BCLK_DIV_11 0x10
  27. #define WM8900_BCLK_DIV_12 0x12
  28. #define WM8900_BCLK_DIV_16 0x14
  29. #define WM8900_BCLK_DIV_22 0x16
  30. #define WM8900_BCLK_DIV_24 0x18
  31. #define WM8900_BCLK_DIV_32 0x1a
  32. #define WM8900_BCLK_DIV_44 0x1c
  33. #define WM8900_BCLK_DIV_48 0x1e
  34. #define WM8900_ADC_CLKDIV_1 0x00
  35. #define WM8900_ADC_CLKDIV_1_5 0x20
  36. #define WM8900_ADC_CLKDIV_2 0x40
  37. #define WM8900_ADC_CLKDIV_3 0x60
  38. #define WM8900_ADC_CLKDIV_4 0x80
  39. #define WM8900_ADC_CLKDIV_5_5 0xa0
  40. #define WM8900_ADC_CLKDIV_6 0xc0
  41. #define WM8900_DAC_CLKDIV_1 0x00
  42. #define WM8900_DAC_CLKDIV_1_5 0x04
  43. #define WM8900_DAC_CLKDIV_2 0x08
  44. #define WM8900_DAC_CLKDIV_3 0x0c
  45. #define WM8900_DAC_CLKDIV_4 0x10
  46. #define WM8900_DAC_CLKDIV_5_5 0x14
  47. #define WM8900_DAC_CLKDIV_6 0x18
  48. #endif