aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/omap24xx_i2c.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-01-23 11:48:22 -0700
committerHeiko Schocher <hs@denx.de>2020-01-27 07:24:02 +0100
commitf3d461521a8ef6540dbcb2314802eae5790a9408 (patch)
treece6d8f74e77beb84779c63718de19065f7d1a25d /drivers/i2c/omap24xx_i2c.c
parentb0a22d0fa9507baa8b3782b392471df94974d831 (diff)
downloadu-boot-f3d461521a8ef6540dbcb2314802eae5790a9408.zip
u-boot-f3d461521a8ef6540dbcb2314802eae5790a9408.tar.gz
u-boot-f3d461521a8ef6540dbcb2314802eae5790a9408.tar.bz2
i2c: Update drivers to use enum for speed
Convert the obvious uses of i2c bus speeds to use the enum. Use livetree access for code changes. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/omap24xx_i2c.c')
-rw-r--r--drivers/i2c/omap24xx_i2c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
index 7e6e3c4..6e7d24d 100644
--- a/drivers/i2c/omap24xx_i2c.c
+++ b/drivers/i2c/omap24xx_i2c.c
@@ -1066,7 +1066,8 @@ static int omap_i2c_ofdata_to_platdata(struct udevice *bus)
struct omap_i2c_platdata *plat = dev_get_platdata(bus);
plat->base = devfdt_get_addr(bus);
- plat->speed = dev_read_u32_default(bus, "clock-frequency", 100000);
+ plat->speed = dev_read_u32_default(bus, "clock-frequency",
+ I2C_SPEED_STANDARD_RATE);
plat->ip_rev = dev_get_driver_data(bus);
return 0;