summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/ascodec-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/ascodec-as3525.c')
-rw-r--r--firmware/target/arm/as3525/ascodec-as3525.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/ascodec-as3525.c b/firmware/target/arm/as3525/ascodec-as3525.c
index 4f13dd6300..43a982f454 100644
--- a/firmware/target/arm/as3525/ascodec-as3525.c
+++ b/firmware/target/arm/as3525/ascodec-as3525.c
@@ -72,8 +72,8 @@ void ascodec_init(void)
72 72
73 /* prescaler for i2c clock */ 73 /* prescaler for i2c clock */
74 prescaler = CLK_DIV(AS3525_PCLK_FREQ, AS3525_I2C_FREQ); 74 prescaler = CLK_DIV(AS3525_PCLK_FREQ, AS3525_I2C_FREQ);
75 I2C2_CPSR0 = prescaler & 0xFF; 75 I2C2_CPSR0 = prescaler & 0xFF; /* 8 lsb */
76 I2C2_CPSR1 = (prescaler >> 8) & 0xFF; 76 I2C2_CPSR1 = (prescaler >> 8) & 0x3; /* 2 msb */
77 77
78 /* set i2c slave address of codec part */ 78 /* set i2c slave address of codec part */
79 I2C2_SLAD0 = AS3514_I2C_ADDR << 1; 79 I2C2_SLAD0 = AS3514_I2C_ADDR << 1;