]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ppc4xx: Consolidate get_OPB_freq()
authorStefan Roese <sr@denx.de>
Mon, 14 Sep 2009 09:13:34 +0000 (11:13 +0200)
committerStefan Roese <sr@denx.de>
Thu, 17 Sep 2009 12:08:32 +0000 (14:08 +0200)
commite67af44d0167d8237dd2c2ddf8e301d19ca12914
tree99de56bbabdeea9917b31031d90d3118adfeac0e
parent84a45d33c2cc261dbd5411f7c2ad45f6003025b6
ppc4xx: Consolidate get_OPB_freq()

All 4xx variants had their own, mostly identical get_OPB_freq()
function. Some variants even only had the OPB frequency calculated
in this routine and not supplied the sys_info.freqOPB variable
correctly (e.g. 405EZ). This resulted in incorrect OPB values passed
via the FDT to Linux.

This patch now removes all those copies and only uses one function
for all 4xx variants (except for IOP480 which doesn't have an OPB).

Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/speed.c