[U-Boot] [PATCH v2 5/7] i2c: dm: Record maximum id of devices before probing devices

Heiko Schocher hs at denx.de
Mon Feb 11 15:54:14 UTC 2019


Hello Michal,

Am 31.01.2019 um 16:31 schrieb Michal Simek:
> 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.
> 
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
> 
> Changes in v2:
> - Use dev_read_alias_highest_id()
> - Use uclass private data
> 
>   drivers/i2c/i2c-uclass.c | 22 ++++++++++++++++++++++
>   1 file changed, 22 insertions(+)

Applied to u-boot-i2c.git master

with a fix for build error for omap based boards as discussed.

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list