mlxsw: Introduce support for I2C bus
authorVadim Pasternak <vadimp@mellanox.com>
Wed, 16 Nov 2016 14:20:44 +0000 (15:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2016 04:29:04 +0000 (23:29 -0500)
commit6882b0aee180f2797b8803bdf699aa45c2e5f2d6
treef34b058a0743fba6001a9e4a4a04d4d1c762303c
parentc711e27a1851c5efe9eb43365d6a3ffaf6d5f37f
mlxsw: Introduce support for I2C bus

Add I2C bus implementation for Mellanox Technologies Switch ASICs.
This includes command interface implementation using input / out mailboxes,
whose location is retrieved from the firmware during probe time.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/Kconfig
drivers/net/ethernet/mellanox/mlxsw/Makefile
drivers/net/ethernet/mellanox/mlxsw/i2c.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlxsw/i2c.h [new file with mode: 0644]