Commit a132f4f3 authored by Vaibhav Gupta's avatar Vaibhav Gupta

software: kernel: i2c: Define Endianess

The Endianess of the i2c controller depends on the svec/spec platform.
Thus, define it accordingly.
Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 5f77f6c6
......@@ -66,6 +66,8 @@ int fa_si570_i2c_init(struct fa_dev *fa) {
si570_i2c_master_res.end = si570_i2c_master_res.start +
SI570_I2C_MASTER_SIZE - 1;
si570_i2c_master_data.big_endian = fa_is_flag_set(fa, FMC_ADC_BIG_ENDIAN);
pdev = platform_device_alloc("ocores-i2c", PLATFORM_DEVID_AUTO);
if (!pdev ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment