dm: i2c: Add a uclass for I2C
The uclass implements the same operations as the current I2C framework but makes some changes to make it fit driver model better: - Remove the chip address from API calls - Remove the address length from API calls - Remove concept of 'current' I2C bus - Drop all existing init functions Acked-by:Heiko Schocher <hs@denx.de> Reviewed-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
Showing
- drivers/i2c/Makefile 1 addition, 0 deletionsdrivers/i2c/Makefile
- drivers/i2c/i2c-uclass.c 466 additions, 0 deletionsdrivers/i2c/i2c-uclass.c
- include/config_fallbacks.h 6 additions, 0 deletionsinclude/config_fallbacks.h
- include/dm/uclass-id.h 2 additions, 0 deletionsinclude/dm/uclass-id.h
- include/i2c.h 352 additions, 0 deletionsinclude/i2c.h
Loading
Please register or sign in to comment