commit | e4dafff86f289b5677143a3e41da7b45c6d27fc7 | [log] [tgz] |
---|---|---|
author | Timur Tabi <timur@freescale.com> | Mon Jul 21 14:26:23 2008 -0500 |
committer | Wolfgang Denk <wd@denx.de> | Wed Jul 30 00:10:13 2008 +0200 |
tree | 1a2d1c412f50be0566768a7d5ec745cbe4d1302f | |
parent | 1953d128fd07f07d1c3810a28c0863ea64dae1b6 [diff] |
fsl-i2c: fix writes to data segment before relocation Prevent i2c_init() in fsl_i2c.c from writing to the data segment before relocation. Commit d8c82db4 added the ability for i2c_init() to program the I2C bus speed and save the value in i2c_bus_speed[], which is a global variable. It is an error to write to the data segment before relocation, which is what i2c_init() does when it stores the bus speed in i2c_bus_speed[]. Signed-off-by: Timur Tabi <timur@freescale.com>