projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of git://git.denx.de/u-boot-socfpga
[oweals/u-boot.git]
/
drivers
/
i2c
/
i2c-uniphier.c
diff --git
a/drivers/i2c/i2c-uniphier.c
b/drivers/i2c/i2c-uniphier.c
index e427415e7ed72b18bb2bc479982269b797909240..07a7e03033d9cbe5432c61cd2ab554716154f99a 100644
(file)
--- a/
drivers/i2c/i2c-uniphier.c
+++ b/
drivers/i2c/i2c-uniphier.c
@@
-177,7
+177,7
@@
static int uniphier_i2c_set_bus_speed(struct udevice *bus, unsigned int speed)
struct uniphier_i2c_priv *priv = dev_get_priv(bus);
/* max supported frequency is 400 kHz */
- if (speed >
400000
)
+ if (speed >
I2C_SPEED_FAST_RATE
)
return -EINVAL;
/* bus reset: make sure the bus is idle when change the frequency */