Skip to content
Snippets Groups Projects
Commit fa86d1c0 authored by Torsten Fleischer's avatar Torsten Fleischer Committed by Heiko Schocher
Browse files

mxs-i2c: Fix internal address byte order


Large EEPROMs, e.g. 24lc32, need 2 byte to address the internal memory.
These devices require that the high byte of the internal address has to be
written first.
The mxs_i2c driver currently writes the address' low byte first.

The following patch fixes the byte order of the internal address that should
be written to the I2C device.

Signed-off-by: default avatarTorsten Fleischer <to-fleischer@t-online.de>

CC: Marek Vasut <marex@denx.de>
CC: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarStefano Babic <sbabic@denx.de>
parent 9ca37d78
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment