]> git.ipfire.org Git - thirdparty/u-boot.git/commit
i2c: dm: Record maximum id of devices before probing devices
authorMichal Simek <michal.simek@xilinx.com>
Thu, 31 Jan 2019 15:31:01 +0000 (16:31 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 12 Feb 2019 08:42:59 +0000 (09:42 +0100)
commite779fd0d9c2dd1c0bc5358e1a37762aca86fe445
treeba06f766c4f90b99511b98bd01655a6d405a2045
parentc6fbe21e2da12d08f3ae85dd122d524181186171
i2c: dm: Record maximum id of devices before probing devices

There is a need to find out the first free i2c ID which can be used for
i2s buses (including i2c buses connected to i2c mux). Do it early in
init and share this variable with other i2c classes for uniq bus
identification.

add from hs:
fix build problem in i2c-uclass.c for omap devices

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-uclass.c