wm8804.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * wm8804.h -- WM8804 S/PDIF transceiver driver
  3. *
  4. * Copyright 2010 Wolfson Microelectronics plc
  5. *
  6. * Author: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef _WM8804_H
  13. #define _WM8804_H
  14. /*
  15. * Register values.
  16. */
  17. #define WM8804_RST_DEVID1 0x00
  18. #define WM8804_DEVID2 0x01
  19. #define WM8804_DEVREV 0x02
  20. #define WM8804_PLL1 0x03
  21. #define WM8804_PLL2 0x04
  22. #define WM8804_PLL3 0x05
  23. #define WM8804_PLL4 0x06
  24. #define WM8804_PLL5 0x07
  25. #define WM8804_PLL6 0x08
  26. #define WM8804_SPDMODE 0x09
  27. #define WM8804_INTMASK 0x0A
  28. #define WM8804_INTSTAT 0x0B
  29. #define WM8804_SPDSTAT 0x0C
  30. #define WM8804_RXCHAN1 0x0D
  31. #define WM8804_RXCHAN2 0x0E
  32. #define WM8804_RXCHAN3 0x0F
  33. #define WM8804_RXCHAN4 0x10
  34. #define WM8804_RXCHAN5 0x11
  35. #define WM8804_SPDTX1 0x12
  36. #define WM8804_SPDTX2 0x13
  37. #define WM8804_SPDTX3 0x14
  38. #define WM8804_SPDTX4 0x15
  39. #define WM8804_SPDTX5 0x16
  40. #define WM8804_GPO0 0x17
  41. #define WM8804_GPO1 0x18
  42. #define WM8804_GPO2 0x1A
  43. #define WM8804_AIFTX 0x1B
  44. #define WM8804_AIFRX 0x1C
  45. #define WM8804_SPDRX1 0x1D
  46. #define WM8804_PWRDN 0x1E
  47. #define WM8804_REGISTER_COUNT 30
  48. #define WM8804_MAX_REGISTER 0x1E
  49. #define WM8804_TX_CLKSRC_MCLK 1
  50. #define WM8804_TX_CLKSRC_PLL 2
  51. #define WM8804_CLKOUT_SRC_CLK1 3
  52. #define WM8804_CLKOUT_SRC_OSCCLK 4
  53. #define WM8804_CLKOUT_DIV 1
  54. #endif /* _WM8804_H */