2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
5 * soc_cfg.h - select a soc codec interface
12 #define __LITTLE_ENDIAN
13 /* define for only support 8,16,24,32 LE,BE signed,unsinged
14 or support all formats */
15 #define LIMITED_FORMATS
17 /* soc codec select */
18 //#define KINETS_SGTL5000
19 //#define KINETS_K60DAC // K60/K70 DAC 2 channels
20 //#define KINETS_WM8962
21 #define KINETS_K60ADC_DAC // K60 ADC/DAC
23 #ifdef KINETS_SGTL5000
24 /**************************KINETS-SGTL5000 setting***************************/
25 #include "kinets\kinets-sgtl5000.h"
31 #define SGTL5000_MCLK 24576000
32 #define LDO_VOLTAGE 1200000
35 #define Wait_avail_min 1 /* unit is frame */
37 #define SSI_FIFO_DEFAULT_WATERMARK 4 /* burstsize */
38 #define FIFO_SIZE_OF_INTS 8
39 #define TX_BURST_SIZE_OF_BYTES /*(sizeof (int )) */ (4 * (FIFO_SIZE_OF_INTS - SSI_FIFO_DEFAULT_WATERMARK))
41 #define DMA_INTR_PRIO /*5*/5 /* dma complete intr priority */
42 #define TX_CH 0 /* sync mode */
43 #define RX_CH TX_CH /* same as init_sai.c or init_sai_dma.h */
45 #define SSI_TX_DMA_CHN 0 /* the edma channel of the all of 16 chs */
46 #define SSI_RX_DMA_CHN 1
49 #define I2S_TX_FIFO_DEFAULT_WATERMARK 4
50 #define I2S_RX_FIFO_DEFAULT_WATERMARK 4
51 #define I2S_FIFO_DEFAULT_WATERMARK 4 /* fifo legth is 8 x32bit */ /* 4 words */
53 /**************************************************************************/
54 #endif /* KINETS_SGTL5000 */
58 /**************************KINETS-K60DAC setting***************************/
59 #define DMA_INTR_PRIO 5 /* dma complete intr priority */
60 #define Wait_avail_min 1 /* unit is frame */
62 #endif /* KINETS_K60DAC */
66 /**************************KINETS-WM8962 setting***************************/
67 #define DMA_INTR_PRIO 5 /* dma complete intr priority */
68 #define Wait_avail_min 1 /* unit is frame */
70 #endif /* KINETS_WM8962 */
72 #ifdef KINETS_K60ADC_DAC
73 /**************************KINETS-K60ADC_DAC setting***************************/
74 #define DMA_INTR_PRIO 5 /* dma complete intr priority */
75 #define Wait_avail_min 1 /* unit is frame */
78 #endif /* _SOC_CFG_H_ */