i2c: omap24xx_i2c: Use platdata to probe the device
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Fri, 7 Dec 2018 13:50:42 +0000 (14:50 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 10 Dec 2018 05:11:18 +0000 (06:11 +0100)
commit5f97ae681428f5623503e3e4b6d8d2c34b76ea3d
tree6f74bd607623586d1ff2ea5b20f4f2218188219f
parentbca09ce4b044b3a517f18e40902b0a399ffab361
i2c: omap24xx_i2c: Use platdata to probe the device

This allows the driver to be used without OF_CONTROL.
AM335x support DM_SPL but does not use SPL_OF_CONTROL. Enabling DM_I2C in
SPL thus requires that the omap I2C can be passed platdata.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
arch/arm/include/asm/arch-am33xx/i2c.h
arch/arm/include/asm/omap_i2c.h [new file with mode: 0644]
drivers/i2c/omap24xx_i2c.c