diff options
Diffstat (limited to 'firmware/target/arm/i2s-pp.c')
-rw-r--r-- | firmware/target/arm/i2s-pp.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/firmware/target/arm/i2s-pp.c b/firmware/target/arm/i2s-pp.c index c96a559a8a..81c1fa1265 100644 --- a/firmware/target/arm/i2s-pp.c +++ b/firmware/target/arm/i2s-pp.c | |||
@@ -25,28 +25,22 @@ | |||
25 | * KIND, either express or implied. | 25 | * KIND, either express or implied. |
26 | * | 26 | * |
27 | ****************************************************************************/ | 27 | ****************************************************************************/ |
28 | |||
29 | #include "system.h" | 28 | #include "system.h" |
30 | #include "cpu.h" | 29 | #include "cpu.h" |
31 | #include "i2s.h" | 30 | #include "i2s.h" |
32 | 31 | ||
33 | /* TODO: Add in PP5002 defs */ | ||
34 | #if CONFIG_CPU == PP5002 | 32 | #if CONFIG_CPU == PP5002 |
35 | void i2s_reset(void) | 33 | void i2s_reset(void) |
36 | { | 34 | { |
37 | /* I2S device reset */ | 35 | /* I2S device reset */ |
38 | DEV_RS |= 0x80; | 36 | DEV_RS |= DEV_I2S; |
39 | DEV_RS &= ~0x80; | 37 | DEV_RS &= ~DEV_I2S; |
40 | 38 | ||
41 | /* I2S controller enable */ | 39 | /* I2S controller enable */ |
42 | IISCONFIG |= 1; | 40 | IISCONFIG |= IIS_ENABLE; |
43 | |||
44 | /* BIT.FORMAT [11:10] = I2S (default) */ | ||
45 | /* BIT.SIZE [9:8] = 24bit */ | ||
46 | /* FIFO.FORMAT = 24 bit LSB */ | ||
47 | 41 | ||
48 | /* reset DAC and ADC fifo */ | 42 | /* reset DAC and ADC fifo */ |
49 | IISFIFO_CFG |= 0x30000; | 43 | IISFIFO_CFG |= IIS_RXCLR | IIS_TXCLR; |
50 | } | 44 | } |
51 | #else /* PP502X */ | 45 | #else /* PP502X */ |
52 | 46 | ||