commit | 70c01a8b8a5c6ac3b62481402992b4ebfe9cfc67 | [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 | adf146e3cbddcfd89135eda8be48dc48bdab4b75 [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>