i2c: ocores: support big-endian register layout
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 6 Oct 2015 23:45:11 +0000 (02:45 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 20 Oct 2015 15:47:45 +0000 (17:47 +0200)
commitb299167652fe58f1ebadb3e3ac84a5a0b74e534e
tree3d5fadc9c77224cf8b2ee5388f0b788b688bd030
parent8a5e3d472e04a19a47de41cbe4856169ade11af2
i2c: ocores: support big-endian register layout

This allows using OpenCores I2C controller attached to its host in
native-endian mode with bi-endian CPUs. Example of such system is Xtensa
XTFPGA platform.

Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-ocores.c
include/linux/i2c-ocores.h