atmel-classd.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #ifndef __ATMEL_CLASSD_H_
  2. #define __ATMEL_CLASSD_H_
  3. #define CLASSD_CR 0x00000000
  4. #define CLASSD_CR_RESET 0x1
  5. #define CLASSD_MR 0x00000004
  6. #define CLASSD_MR_LEN_DIS 0x0
  7. #define CLASSD_MR_LEN_EN 0x1
  8. #define CLASSD_MR_LEN_MASK (0x1 << 0)
  9. #define CLASSD_MR_LEN_SHIFT (0)
  10. #define CLASSD_MR_LMUTE_DIS 0x0
  11. #define CLASSD_MR_LMUTE_EN 0x1
  12. #define CLASSD_MR_LMUTE_SHIFT (0x1)
  13. #define CLASSD_MR_LMUTE_MASK (0x1 << 1)
  14. #define CLASSD_MR_REN_DIS 0x0
  15. #define CLASSD_MR_REN_EN 0x1
  16. #define CLASSD_MR_REN_MASK (0x1 << 4)
  17. #define CLASSD_MR_REN_SHIFT (4)
  18. #define CLASSD_MR_RMUTE_DIS 0x0
  19. #define CLASSD_MR_RMUTE_EN 0x1
  20. #define CLASSD_MR_RMUTE_SHIFT (0x5)
  21. #define CLASSD_MR_RMUTE_MASK (0x1 << 5)
  22. #define CLASSD_MR_PWMTYP_SINGLE 0x0
  23. #define CLASSD_MR_PWMTYP_DIFF 0x1
  24. #define CLASSD_MR_PWMTYP_MASK (0x1 << 8)
  25. #define CLASSD_MR_PWMTYP_SHIFT (8)
  26. #define CLASSD_MR_NON_OVERLAP_DIS 0x0
  27. #define CLASSD_MR_NON_OVERLAP_EN 0x1
  28. #define CLASSD_MR_NON_OVERLAP_MASK (0x1 << 16)
  29. #define CLASSD_MR_NON_OVERLAP_SHIFT (16)
  30. #define CLASSD_MR_NOVR_VAL_5NS 0x0
  31. #define CLASSD_MR_NOVR_VAL_10NS 0x1
  32. #define CLASSD_MR_NOVR_VAL_15NS 0x2
  33. #define CLASSD_MR_NOVR_VAL_20NS 0x3
  34. #define CLASSD_MR_NOVR_VAL_MASK (0x3 << 20)
  35. #define CLASSD_MR_NOVR_VAL_SHIFT (20)
  36. #define CLASSD_INTPMR 0x00000008
  37. #define CLASSD_INTPMR_ATTL_MASK (0x3f << 0)
  38. #define CLASSD_INTPMR_ATTL_SHIFT (0)
  39. #define CLASSD_INTPMR_ATTR_MASK (0x3f << 8)
  40. #define CLASSD_INTPMR_ATTR_SHIFT (8)
  41. #define CLASSD_INTPMR_DSP_CLK_FREQ_12M288 0x0
  42. #define CLASSD_INTPMR_DSP_CLK_FREQ_11M2896 0x1
  43. #define CLASSD_INTPMR_DSP_CLK_FREQ_MASK (0x1 << 16)
  44. #define CLASSD_INTPMR_DSP_CLK_FREQ_SHIFT (16)
  45. #define CLASSD_INTPMR_DEEMP_DIS 0x0
  46. #define CLASSD_INTPMR_DEEMP_EN 0x1
  47. #define CLASSD_INTPMR_DEEMP_MASK (0x1 << 18)
  48. #define CLASSD_INTPMR_DEEMP_SHIFT (18)
  49. #define CLASSD_INTPMR_SWAP_LEFT_ON_LSB 0x0
  50. #define CLASSD_INTPMR_SWAP_RIGHT_ON_LSB 0x1
  51. #define CLASSD_INTPMR_SWAP_MASK (0x1 << 19)
  52. #define CLASSD_INTPMR_SWAP_SHIFT (19)
  53. #define CLASSD_INTPMR_FRAME_8K 0x0
  54. #define CLASSD_INTPMR_FRAME_16K 0x1
  55. #define CLASSD_INTPMR_FRAME_32K 0x2
  56. #define CLASSD_INTPMR_FRAME_48K 0x3
  57. #define CLASSD_INTPMR_FRAME_96K 0x4
  58. #define CLASSD_INTPMR_FRAME_22K 0x5
  59. #define CLASSD_INTPMR_FRAME_44K 0x6
  60. #define CLASSD_INTPMR_FRAME_88K 0x7
  61. #define CLASSD_INTPMR_FRAME_MASK (0x7 << 20)
  62. #define CLASSD_INTPMR_FRAME_SHIFT (20)
  63. #define CLASSD_INTPMR_EQCFG_FLAT 0x0
  64. #define CLASSD_INTPMR_EQCFG_B_BOOST_12 0x1
  65. #define CLASSD_INTPMR_EQCFG_B_BOOST_6 0x2
  66. #define CLASSD_INTPMR_EQCFG_B_CUT_12 0x3
  67. #define CLASSD_INTPMR_EQCFG_B_CUT_6 0x4
  68. #define CLASSD_INTPMR_EQCFG_M_BOOST_3 0x5
  69. #define CLASSD_INTPMR_EQCFG_M_BOOST_8 0x6
  70. #define CLASSD_INTPMR_EQCFG_M_CUT_3 0x7
  71. #define CLASSD_INTPMR_EQCFG_M_CUT_8 0x8
  72. #define CLASSD_INTPMR_EQCFG_T_BOOST_12 0x9
  73. #define CLASSD_INTPMR_EQCFG_T_BOOST_6 0xa
  74. #define CLASSD_INTPMR_EQCFG_T_CUT_12 0xb
  75. #define CLASSD_INTPMR_EQCFG_T_CUT_6 0xc
  76. #define CLASSD_INTPMR_EQCFG_SHIFT (24)
  77. #define CLASSD_INTPMR_MONO_DIS 0x0
  78. #define CLASSD_INTPMR_MONO_EN 0x1
  79. #define CLASSD_INTPMR_MONO_MASK (0x1 << 28)
  80. #define CLASSD_INTPMR_MONO_SHIFT (28)
  81. #define CLASSD_INTPMR_MONO_MODE_MIX 0x0
  82. #define CLASSD_INTPMR_MONO_MODE_SAT 0x1
  83. #define CLASSD_INTPMR_MONO_MODE_LEFT 0x2
  84. #define CLASSD_INTPMR_MONO_MODE_RIGHT 0x3
  85. #define CLASSD_INTPMR_MONO_MODE_MASK (0x3 << 29)
  86. #define CLASSD_INTPMR_MONO_MODE_SHIFT (29)
  87. #define CLASSD_INTSR 0x0000000c
  88. #define CLASSD_THR 0x00000010
  89. #define CLASSD_IER 0x00000014
  90. #define CLASSD_IDR 0x00000018
  91. #define CLASSD_IMR 0x0000001c
  92. #define CLASSD_ISR 0x00000020
  93. #define CLASSD_WPMR 0x000000e4
  94. #endif