]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
i.MX31: Start the I2C clock on driver initialisation
authorGuennadi Liakhovetski <lg@denx.de>
Fri, 13 Feb 2009 08:23:36 +0000 (09:23 +0100)
committerHeiko Schocher <hs@denx.de>
Sat, 14 Feb 2009 09:00:51 +0000 (10:00 +0100)
commite7de18afe8ecf96a51ef981d06066eeb6b1254e7
tree7bea693fa69e5ed7cab9d1fe7ae96c6c31ece3eb
parent15208ac9eae1c340c4bc11f70cbf5c9da78a57ba
i.MX31: Start the I2C clock on driver initialisation

i.MX31 powers on with most clocks running, so, after a power on this explicit
clock start up is not required. However, as Linux boots it disables most clocks
to save power. This includes the I2C clock. If we then soft reboot from Linux
the I2C clock stays off. This breaks the phycore, which has its environment in
I2C EEPROM. Fix the problem by explicitly starting the clock in I2C driver
initialisation routine.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Ack-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
drivers/i2c/mxc_i2c.c