diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2015-10-07 02:45:11 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-10-20 17:47:45 +0200 |
commit | b299167652fe58f1ebadb3e3ac84a5a0b74e534e (patch) | |
tree | 3d5fadc9c77224cf8b2ee5388f0b788b688bd030 /include/linux/i2c-ocores.h | |
parent | 8a5e3d472e04a19a47de41cbe4856169ade11af2 (diff) | |
download | blackbird-op-linux-b299167652fe58f1ebadb3e3ac84a5a0b74e534e.tar.gz blackbird-op-linux-b299167652fe58f1ebadb3e3ac84a5a0b74e534e.zip |
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>
Diffstat (limited to 'include/linux/i2c-ocores.h')
-rw-r--r-- | include/linux/i2c-ocores.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c-ocores.h b/include/linux/i2c-ocores.h index 1c06b5c7c308..01edd96fe1f7 100644 --- a/include/linux/i2c-ocores.h +++ b/include/linux/i2c-ocores.h @@ -15,6 +15,7 @@ struct ocores_i2c_platform_data { u32 reg_shift; /* register offset shift value */ u32 reg_io_width; /* register io read/write width */ u32 clock_khz; /* input clock in kHz */ + bool big_endian; /* registers are big endian */ u8 num_devices; /* number of devices in the devices list */ struct i2c_board_info const *devices; /* devices connected to the bus */ }; |