]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-i801: Support SMBus multiplexing on Asus Z8 series
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Oct 2012 20:23:53 +0000 (22:23 +0200)
committerJean Delvare <khali@endymion.delvare>
Fri, 5 Oct 2012 20:23:53 +0000 (22:23 +0200)
commit85d33af669e0effefd7b1a8ca913aecae32ecfbd
tree7d2fca72b185fc7dd985306e9cc16caecdbdad04
parent926fc7f57f42966c2991324ed195d3a490d61496
i2c-i801: Support SMBus multiplexing on Asus Z8 series

Add support for SMBus multiplexing on Asus Z8 motherboard series. On
these boards, the memory slots are behind a GPIO-controlled I2C
multiplexer. Models with 6 or 12 memory slots have 2 segments behind
the multiplexer, while models with 18 memory slots have 3 such
segments.

On these boards, only the memory slots are behind the multiplexer,
so it is possible to keep the autodetection mechanism.

The code is generic enough so it could work on other boards as long as
the multiplexer is controlled by GPIO pins. For other forms of
multiplexing (for example using an I2C device) additional code will be
needed.

Thanks to Asus for providing a board to develop and test this feature,
as well as all the technical information required.

At the moment, the GPIO driver must be loaded before the i2c-i801
driver, but I hope to solve this soon, using deferred probing on
the i2c-mux-gpio side.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-i801.c