summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/soc/i2s_priv.h
blob: 25014a55b398bd9bc4d2db7494a3138b8076ff1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define I2S_PWM_SCALE_CK        2
#define I2S_PWM_SCALE_CK_MASK   0x0003

/* asm */
#define I2S_ABUF_OFF_IDXR       0
#define I2S_ABUF_OFF_IDXW       2
#define I2S_ABUF_OFF_SIZE       4
#define I2S_ABUF_OFF_ARRAY      8

#define I2S_IRQ_SD_ID           INT_GPIO_BASE + I2S_PIN_INT

#define I2S_CTRL_ADDR_CK        PWM0_CTRL_ADDR
#define I2S_CTRL_ADDR_WS        PWM1_CTRL_ADDR
#define I2S_CTRL_ADDR_SR_SEL    PWM2_CTRL_ADDR

#define I2S_IDLE1_CYCLES        2
#define I2S_IDLE2_CYCLES        4