summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/soc/i2s_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/soc/i2s_priv.h')
-rw-r--r--fw/fe310/eos/soc/i2s_priv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fw/fe310/eos/soc/i2s_priv.h b/fw/fe310/eos/soc/i2s_priv.h
index 25237c3..bc3cb1a 100644
--- a/fw/fe310/eos/soc/i2s_priv.h
+++ b/fw/fe310/eos/soc/i2s_priv.h
@@ -6,3 +6,12 @@
#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 4
+#define I2S_IDLE2_CYCLES 4