diff options
author | Simon Glass <sjg@chromium.org> | 2020-01-23 11:48:17 -0700 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2020-01-27 07:22:41 +0100 |
commit | 642400ced6b5947f8f7aa80558fdbdf1b173a735 (patch) | |
tree | 3d28b11b21f2f912117a7d0ca94cbe6a1178488e /drivers/i2c/ast_i2c.c | |
parent | 7bd21b626477ea2e3c45e8fa2bf16e8d86a0e5fa (diff) | |
download | u-boot-642400ced6b5947f8f7aa80558fdbdf1b173a735.zip u-boot-642400ced6b5947f8f7aa80558fdbdf1b173a735.tar.gz u-boot-642400ced6b5947f8f7aa80558fdbdf1b173a735.tar.bz2 |
i2c: ast_i2c: Update to use standard enums for speed
Update this driver to use the new standard enums for speed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/ast_i2c.c')
-rw-r--r-- | drivers/i2c/ast_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index 763183d..35dc234 100644 --- a/drivers/i2c/ast_i2c.c +++ b/drivers/i2c/ast_i2c.c @@ -314,7 +314,7 @@ static int ast_i2c_set_speed(struct udevice *dev, unsigned int speed) divider = i2c_rate / speed; priv->speed = speed; - if (speed > I2C_HIGHSPEED_RATE) { + if (speed > I2C_SPEED_FAST_RATE) { debug("Enable High Speed\n"); setbits_le32(®s->fcr, I2CD_M_HIGH_SPEED_EN | I2CD_M_SDA_DRIVE_1T_EN |