]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: designware_i2c: Correct the selection of speed mode
authorSimon Glass <sjg@chromium.org>
Thu, 13 Feb 2020 20:24:55 +0000 (13:24 -0700)
committerHeiko Schocher <hs@denx.de>
Tue, 18 Feb 2020 07:16:45 +0000 (08:16 +0100)
commitb09f4dd4a134d993e19f11a4a8f42e5665531865
treeab51d2e21217e4a56847d09e186796815f05a943
parentb9a24387717ecae1817a5af61b2a56acd8e3a2af
i2c: designware_i2c: Correct the selection of speed mode

Unfortunately a recent change adjusted the order of the checks here such
that 400MHz now shows up as fast-plus speed (1Mbps). Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 13632e641b ("i2c: designware_i2c: Add support for fast-plus speed")
drivers/i2c/designware_i2c.c