summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/as3525-codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/as3525-codec.c')
-rw-r--r--firmware/target/arm/as3525/as3525-codec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/as3525-codec.c b/firmware/target/arm/as3525/as3525-codec.c
index 76e5071197..4d8598eaf1 100644
--- a/firmware/target/arm/as3525/as3525-codec.c
+++ b/firmware/target/arm/as3525/as3525-codec.c
@@ -37,11 +37,9 @@
37 interrupt bit 7 is raised and DACNT is not decremented after the transfer. 37 interrupt bit 7 is raised and DACNT is not decremented after the transfer.
38 */ 38 */
39 39
40#include "as3525-codec.h" 40#include "ascodec-target.h"
41#include "as3525.h" 41#include "as3525.h"
42 42
43#define AUDIO_I2C_ADDR 0x46
44
45#define I2C2_DATA *((volatile unsigned int *)(I2C_AUDIO_BASE + 0x00)) 43#define I2C2_DATA *((volatile unsigned int *)(I2C_AUDIO_BASE + 0x00))
46#define I2C2_SLAD0 *((volatile unsigned int *)(I2C_AUDIO_BASE + 0x04)) 44#define I2C2_SLAD0 *((volatile unsigned int *)(I2C_AUDIO_BASE + 0x04))
47#define I2C2_CNTRL *((volatile unsigned int *)(I2C_AUDIO_BASE + 0x0C)) 45#define I2C2_CNTRL *((volatile unsigned int *)(I2C_AUDIO_BASE + 0x0C))
@@ -72,7 +70,7 @@ void ascodec_init(void)
72 I2C2_CPSR1 = 0; /* MSB */ 70 I2C2_CPSR1 = 0; /* MSB */
73 71
74 /* set i2c slave address of codec part */ 72 /* set i2c slave address of codec part */
75 I2C2_SLAD0 = AUDIO_I2C_ADDR << 1; 73 I2C2_SLAD0 = AS3514_I2C_ADDR << 1;
76 74
77 I2C2_CNTRL = 0x51; 75 I2C2_CNTRL = 0x51;
78} 76}