summaryrefslogtreecommitdiffstats
path: root/cpu/arm926ejs/davinci/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm926ejs/davinci/i2c.c')
-rw-r--r--cpu/arm926ejs/davinci/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/arm926ejs/davinci/i2c.c b/cpu/arm926ejs/davinci/i2c.c
index af9dc034c2..d220a4c728 100644
--- a/cpu/arm926ejs/davinci/i2c.c
+++ b/cpu/arm926ejs/davinci/i2c.c
@@ -104,7 +104,7 @@ void i2c_init(int speed, int slaveadd)
}
psc = 2;
- div = (CFG_HZ_CLOCK / ((psc + 1) * speed)) - 10; /* SCLL + SCLH */
+ div = (CONFIG_SYS_HZ_CLOCK / ((psc + 1) * speed)) - 10; /* SCLL + SCLH */
REG(I2C_PSC) = psc; /* 27MHz / (2 + 1) = 9MHz */
REG(I2C_SCLL) = (div * 50) / 100; /* 50% Duty */
REG(I2C_SCLH) = div - REG(I2C_SCLL);
OpenPOWER on IntegriCloud