AMD boards: Fix includes for microcode updates
No ROMCC involved, no need to include .c files in romstage.c. Change-Id: I8a2aaf84276f2931d0a0557ba29e359fa06e2fba Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/4501 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
ramstage-y += microcode.c
|
||||
romstage-$(CONFIG_UPDATE_CPU_MICROCODE) += microcode.c
|
||||
|
@@ -17,17 +17,10 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef __ROMCC__
|
||||
#include <stdint.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/microcode.h>
|
||||
#endif
|
||||
|
||||
#ifndef __PRE_RAM__
|
||||
#include <cpu/cpu.h>
|
||||
#include <cpu/x86/cache.h>
|
||||
#endif
|
||||
|
||||
struct microcode {
|
||||
u32 date_code;
|
||||
|
@@ -1,3 +1,4 @@
|
||||
ramstage-y += model_10xxx_init.c
|
||||
ramstage-$(CONFIG_UPDATE_CPU_MICROCODE) += update_microcode.c
|
||||
ramstage-y += processor_name.c
|
||||
|
||||
romstage-$(CONFIG_UPDATE_CPU_MICROCODE) += update_microcode.c
|
||||
|
@@ -325,9 +325,8 @@ static u32 init_cpus(u32 cpu_init_detectedx)
|
||||
* This happens after HTinit.
|
||||
* The BSP runs this code in it's own path.
|
||||
*/
|
||||
#if CONFIG_UPDATE_CPU_MICROCODE
|
||||
update_microcode(cpuid_eax(1));
|
||||
#endif
|
||||
|
||||
cpuSetAMDMSR();
|
||||
|
||||
#if CONFIG_SET_FIDVID
|
||||
|
@@ -17,17 +17,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __PRE_RAM__
|
||||
#include <stdint.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#ifndef __ROMCC__
|
||||
#include <cpu/amd/microcode.h>
|
||||
#endif
|
||||
|
||||
static const u8 microcode_updates[] __attribute__ ((aligned(16))) = {
|
||||
|
||||
|
@@ -20,9 +20,6 @@
|
||||
*/
|
||||
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
#include <cpu/amd/microcode.h>
|
||||
|
||||
static uint8_t microcode_updates[] __attribute__ ((aligned(16))) = {
|
||||
|
Reference in New Issue
Block a user