]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: Add enums for i2c speed and address size
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2020 18:48:16 +0000 (11:48 -0700)
committerHeiko Schocher <hs@denx.de>
Mon, 27 Jan 2020 06:22:23 +0000 (07:22 +0100)
commit2f32a68e42b16cd6cff68b8ae824db1af90d38c4
treed564d6f10bf4c3227cecaaf8f38e2527ef439968
parent1f37490c6945b2a435d8625ad1d1103507fc2da3
i2c: Add enums for i2c speed and address size

Some drivers define their own speed enums and use their own constants for
speed. It makes sense to have a unified defition of the different speeds.

Since many controllers have to do different things for fast/high speed, it
is a good idea to have an enum for the mode.

Add these as well as an enum for the address mode.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
include/i2c.h