/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _GSC3250_I2S_H #define _GSC3250_I2S_H #define DATA_CYCLE_16 16 #define DATA_CYCLE_24 24 #define DATA_CYCLE_32 32 #define DATA_FORMAT_0 0 #define DATA_FORMAT_12 12 #define DATA_FORMAT_16 16 #define DATA_FORMAT_20 20 #define DATA_FORMAT_24 24 #define DATA_FORMAT_32 32 #define CCR_CLK_16 0x000 /* sclk cycles for ws_out stay in master mode 00=16 cycles*/ #define CCR_CLK_24 0x008 /* 01=24 cycles */ #define CCR_CLK_32 0x010 /* 02=32 cycles */ #define WLEN_0 0x000 /* data resolution for the receiver and enable LSB. Must less than or equal to the word size value 0=lgnore word length*/ #define WLEN_12 0x001 /* 1=lgnore word length*/ #define WLEN_16 0x002 /* 2=lgnore word length*/ #define WLEN_20 0x003 /* 3=lgnore word length*/ #define WLEN_24 0x004 /* 4=lgnore word length*/ #define WLEN_32 0x005 /* 5=lgnore word length*/ #define IER 0x000 #define IRER 0x004 #define ITER 0x008 #define CER 0x00C #define CCR 0x010 #define RXFFR 0x014 #define TXFFR 0x018 #define LRBR0 0x020 #define LTHR0 0x020 #define RRBR0 0x024 #define RTHR0 0x024 #define RER0 0x028 #define TER0 0x02C #define RCR0 0x030 #define TCR0 0x034 #define ISR0 0x038 #define IMR0 0x03C #define ROR0 0x040 #define TOR0 0x044 #define RFCR0 0x048 #define TFCR0 0x04C #define RFF0 0x050 #define TFF0 0x054 #define DCTRL 0x200 #define RXDMA 0x1C0 #define RRXDMA 0x1C4 #define TXDMA 0x1C8 #define RTXDMA 0x1CC #define PARAM_2 0x1F0 #define PARAM_1 0x1F4 #define VERSION 0x1F8 #define TYPE 0x1FC #endif