This patch fixes the processor name string for Rev F. CPUs.
authorSven Kapferer <skapfere@rumms.uni-mannheim.de>
Sat, 26 May 2007 13:56:34 +0000 (13:56 +0000)
committerUwe Hermann <uwe@hermann-uwe.de>
Sat, 26 May 2007 13:56:34 +0000 (13:56 +0000)
commit4834a4f2063509cbdb2ab20114f18664d5e9caf2
treea78788a0e9b8aacd31005a3c3f3f4dc19b8ce994
parentcd3afc052492e577774b1978f47f2ed28cea7d01
This patch fixes the processor name string for Rev F. CPUs.
It moves the complete naming functionality to
src/cpu/amd/model_fxx/processor_name.c.

The current code sets the processor name string twice for Rev. F CPUs.

In src/cpu/amd/model_fxx/model_fxx_init.c the function
amd_set_name_string_f is called first. Several lines later
init_processor_name is called which doesn't recognize newer CPUs and
actually programs incorrect values, thus overwriting the previously set
CPU name. For example, this resulted in identifying an Opteron 2218 as a
Turion processor.

This patch removes the amd_set_name_string_f function from
src/cpu/amd/model_fxx/model_fxx_init.c and adds support for Rev. F CPUs
to src/cpu/amd/model_fxx/processor_name.c as described in the Revision
Guide for AMD NPT Family 0Fh Processors, AMD Document ID 33610 Rev 3.00,
October 2006.

Signed-off-by: Sven Kapferer <skapfere@rumms.uni-mannheim.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2699 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
src/cpu/amd/model_fxx/model_fxx_init.c
src/cpu/amd/model_fxx/processor_name.c