i2c: mux: Add register-based mux i2c-mux-reg
authorYork Sun <yorksun@freescale.com>
Mon, 17 Aug 2015 18:53:48 +0000 (11:53 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 24 Aug 2015 12:05:18 +0000 (14:05 +0200)
commitb3fdd32799d834e2626fae087906e886037350c6
tree38d3df37fe04e8631ba955a3dfd6ed2a80dd7ff8
parent7a59b00a0906945f7fe25a10332ac0820491a0c3
i2c: mux: Add register-based mux i2c-mux-reg

Based on i2c-mux-gpio driver, similarly the register-based mux
switch from one bus to another by setting a single register.
The register can be on PCIe bus, local bus, or any memory-mapped
address. The endianness of such register can be specified in device
tree if used, or in platform data.

Signed-off-by: York Sun <yorksun@freescale.com>
Acked-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/devicetree/bindings/i2c/i2c-mux-reg.txt [new file with mode: 0644]
drivers/i2c/muxes/Kconfig
drivers/i2c/muxes/Makefile
drivers/i2c/muxes/i2c-mux-reg.c [new file with mode: 0644]
include/linux/platform_data/i2c-mux-reg.h [new file with mode: 0644]