]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ppc4xx: Fix 440EPx bug in reconfigure_pll()
authorStefan Roese <sr@denx.de>
Thu, 26 Aug 2010 15:14:51 +0000 (17:14 +0200)
committerStefan Roese <sr@denx.de>
Fri, 3 Sep 2010 09:14:21 +0000 (11:14 +0200)
commitc1ab75c7d4e5d080c630335b78681c50aa3569a5
tree61e5c6b109fb5ed73257663dfb92aca36a34891f
parent38570b2ff3b618892b7b7f2d4c80f5b79d49018f
ppc4xx: Fix 440EPx bug in reconfigure_pll()

This patch fixes a bug in reconfigure_pll(), where the detection of
the current bootstrap option is wrong. The ICS bits where incorrectly
shifted. This bug was found on the lwmon5 board, which uses bootstrap
option H (I2C bootstrap EEPROM).

Additionally a bit of code was moved into the if statement, since its
only used after later on. No need to run this code all the time.

Also, a few empty lines are added to make the code better readable.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Rupjyoti Sarmah <rsarmah@amcc.com>
Cc: Victor Gallardo <vgallardo@appliedmicro.com>
arch/powerpc/cpu/ppc4xx/cpu_init.c
include/ppc440.h