]> 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)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:29 +0000 (09:04 -0500)
commit012f51e7c1412b2e38b7e8f541889607154b6777
tree61ac072c247f40afbaac1d6903fc71d8b628d265
parentdc69d41571ff4448e2f7cd24d3f54a37aed22656
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