Miscellaneous AMD F14 warning fixes
authorefdesign98 <efdesign98@gmail.com>
Thu, 4 Aug 2011 22:18:16 +0000 (16:18 -0600)
committerPatrick Georgi <patrick@georgi-clan.de>
Mon, 12 Sep 2011 12:55:24 +0000 (14:55 +0200)
This commit adds in some more fixes to AMD F14 compile
warnings.  The change in the mtrr.c file is in prep-
aration for changes yet to com, but it is currently
innocuous.

Change-Id: I6b204fe0af16a97d982f46f0dfeaccc4b8eb883e
Signed-off-by: Frank Vibrans <frank.vibrans@amd.com>
Signed-off-by: efdesign98 <efdesign98@gmail.com>
Reviewed-on: http://review.coreboot.org/133
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/cpu/x86/Kconfig
src/include/cpu/amd/amdfam14.h
src/include/cpu/amd/mtrr.h
src/include/pc80/i8254.h

index ec559b504314b1556c74c603554e3c84b77a38e0..eed7d8f26f3233cf779e76067306c82f9e34ec4d 100644 (file)
@@ -19,6 +19,10 @@ config UDELAY_TSC
        bool
        default n
 
+config UDELAY_TIMER2
+       bool
+       default n
+
 config TSC_CALIBRATE_WITH_IO
        bool
        default n
index c4b7e6d14335e77c5ab127f0efbd2ba2732585a9..a732219a299d6c8767749c41c6347eee9575568c 100644 (file)
@@ -42,5 +42,7 @@ void wait_all_other_cores_started(u32 bsp_apicid);
 void wait_all_aps_started(u32 bsp_apicid);
 void allow_all_aps_stop(u32 bsp_apicid);
 #endif
+void get_bus_conf(void);
+u32 get_initial_apicid(void);
 
 #endif /* CPU_AMD_FAM14_H */
index c0d6b51c36b6d9229194263a3b0b2c61974e8e46..3637dd937d0728a99e2a6bfb79ff00abed770377 100644 (file)
 
 #define TOP_MEM_MSR                    0xC001001A
 #define TOP_MEM2_MSR                   0xC001001D
-#define TOP_MEM                                TOP_MEM_MSR
-#define TOP_MEM2                       TOP_MEM2_MSR
+#ifndef TOP_MEM
+  #define TOP_MEM                      TOP_MEM_MSR
+#endif
+#ifndef TOP_MEM2
+  #define TOP_MEM2                     TOP_MEM2_MSR
+#endif
 
 #define TOP_MEM_MASK                   0x007fffff
 #define TOP_MEM_MASK_KB                        (TOP_MEM_MASK >> 10)
index b0d3a93fb3ba79030d1bdef47265a8e9fb4424ca..82f31e6ff3043d104287c4676b23f51133c431ee 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef PC80_I8254_H
 #define PC80_I8254_H
 
+void setup_i8254(void);
+
 /* Ports for the 8254 timer chip */
 #define TIMER0_PORT    0x40
 #define TIMER1_PORT    0x41