]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit3ad7ea18ae8c7ddda46b7276e0bda73e707ea9c1
tree7d2fca72b185fc7dd985306e9cc16caecdbdad04
parent01d56a6aa1c3a506426c8f3ff87c8d698023f336
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