dev_lark.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright (c) 2020 Linaro Limited
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. #ifndef DEV_LARK_H_
  6. #define DEV_LARK_H_
  7. /*
  8. dma cfg
  9. */
  10. #define CONFIG_DMA_0_NAME "DMA_0"
  11. #define CONFIG_DMA_0_PCHAN_NUM 10
  12. #define CONFIG_DMA_0_VCHAN_NUM 10
  13. #define CONFIG_DMA_0_VCHAN_PCHAN_NUM 6
  14. #define CONFIG_DMA_0_VCHAN_PCHAN_START 4
  15. /*
  16. DSP cfg
  17. */
  18. #define CONFIG_DSP_NAME "DSP"
  19. /*
  20. ANC cfg
  21. */
  22. #define CONFIG_ANC_NAME "anc"
  23. /*
  24. BTC cfg
  25. */
  26. #define CONFIG_BTC_NAME "BTC"
  27. /*
  28. * Audio cfg
  29. */
  30. #ifndef CONFIG_AUDIO_OUT_ACTS_DEV_NAME
  31. #define CONFIG_AUDIO_OUT_ACTS_DEV_NAME "audio_out"
  32. #endif
  33. #ifndef CONFIG_AUDIO_IN_ACTS_DEV_NAME
  34. #define CONFIG_AUDIO_IN_ACTS_DEV_NAME "audio_in"
  35. #endif
  36. /*
  37. * DSP cfg
  38. */
  39. #ifndef CONFIG_DSP_ACTS_DEV_NAME
  40. #define CONFIG_DSP_ACTS_DEV_NAME "dsp_acts"
  41. #endif
  42. /*
  43. PMUADC cfg
  44. */
  45. #define PMUADC_ID_CHARGI (0)
  46. #define PMUADC_ID_BATV (1)
  47. #define PMUADC_ID_DC5V (2)
  48. #define PMUADC_ID_SENSOR (3)
  49. #define PMUADC_ID_SVCC (4)
  50. #define PMUADC_ID_LRADC1 (5)
  51. #define PMUADC_ID_LRADC2 (6)
  52. #define PMUADC_ID_LRADC3 (7)
  53. #define PMUADC_ID_LRADC4 (8)
  54. #define PMUADC_ID_LRADC5 (9)
  55. #define PMUADC_ID_LRADC6 (10)
  56. #define PMUADC_ID_LRADC7 (11)
  57. #endif /* DEV_LARK_H_ */