Author: uwe Date: 2007-07-12 03:26:43 +0200 (Thu, 12 Jul 2007) New Revision: 448
Modified: LinuxBIOSv3/arch/x86/geodelx/cpu.c LinuxBIOSv3/arch/x86/geodelx/geodelx.c LinuxBIOSv3/arch/x86/geodelx/stage1.c LinuxBIOSv3/include/arch/x86/amd_geodelx.h LinuxBIOSv3/northbridge/amd/geodelx/geodelx.c LinuxBIOSv3/northbridge/amd/geodelx/geodelxinit.c LinuxBIOSv3/northbridge/amd/geodelx/raminit.c LinuxBIOSv3/northbridge/amd/geodelx/raminit.h LinuxBIOSv3/southbridge/amd/cs5536/cs5536.c LinuxBIOSv3/southbridge/amd/cs5536/smbus_initram.c LinuxBIOSv3/southbridge/amd/cs5536/stage1.c Log: Remove some include files which are not required (and add some which are).
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de Acked-by: Peter Stuge peter@stuge.se
Modified: LinuxBIOSv3/arch/x86/geodelx/cpu.c =================================================================== --- LinuxBIOSv3/arch/x86/geodelx/cpu.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/arch/x86/geodelx/cpu.c 2007-07-12 01:26:43 UTC (rev 448) @@ -29,7 +29,6 @@ */
#include <console.h> -#include <string.h> #include <device/device.h> #include <lib.h> #include <io.h> @@ -103,5 +102,6 @@ /* TODO: This is incorrect, these are _not_ PCI IDs! */ .u = {.pci = {.vendor = X86_VENDOR_AMD,.device = 0x05A2}}}, .ops = &geodelx_cpuops}, + {.ops = 0}, };
Modified: LinuxBIOSv3/arch/x86/geodelx/geodelx.c =================================================================== --- LinuxBIOSv3/arch/x86/geodelx/geodelx.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/arch/x86/geodelx/geodelx.c 2007-07-12 01:26:43 UTC (rev 448) @@ -23,9 +23,6 @@ #include <types.h> #include <lib.h> #include <console.h> -#include <device/device.h> -#include <device/pci.h> -#include <string.h> #include <msr.h> #include <io.h> #include <hlt.h>
Modified: LinuxBIOSv3/arch/x86/geodelx/stage1.c =================================================================== --- LinuxBIOSv3/arch/x86/geodelx/stage1.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/arch/x86/geodelx/stage1.c 2007-07-12 01:26:43 UTC (rev 448) @@ -20,14 +20,8 @@
#include <types.h> #include <lib.h> -#include <console.h> -#include <device/device.h> -#include <device/pci.h> -#include <string.h> #include <msr.h> -#include <io.h> #include <amd_geodelx.h> -#include <spd.h>
static struct msrinit { u32 msrnum;
Modified: LinuxBIOSv3/include/arch/x86/amd_geodelx.h =================================================================== --- LinuxBIOSv3/include/arch/x86/amd_geodelx.h 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/include/arch/x86/amd_geodelx.h 2007-07-12 01:26:43 UTC (rev 448) @@ -25,6 +25,11 @@ #ifndef CPU_AMD_LXDEF_H #define CPU_AMD_LXDEF_H
+#ifndef __ASSEMBLER__ +#include <types.h> +#include <io.h> +#endif + #define CPU_ID_1_X 0x00000560 /* Stepping ID 1.x CPUbug fix to change it to 5A0 */ #define CPU_ID_2_0 0x000005A1 #define CPU_ID_3_0 0x000005A2
Modified: LinuxBIOSv3/northbridge/amd/geodelx/geodelx.c =================================================================== --- LinuxBIOSv3/northbridge/amd/geodelx/geodelx.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/northbridge/amd/geodelx/geodelx.c 2007-07-12 01:26:43 UTC (rev 448) @@ -19,15 +19,11 @@ */
#include <types.h> -#include <lib.h> #include <console.h> -#include <post_code.h> #include <device/device.h> #include <device/pci.h> #include <device/pci_ids.h> -#include <string.h> #include <msr.h> -#include <io.h> #include <amd_geodelx.h>
/* Here is programming for the various MSRs. */
Modified: LinuxBIOSv3/northbridge/amd/geodelx/geodelxinit.c =================================================================== --- LinuxBIOSv3/northbridge/amd/geodelx/geodelxinit.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/northbridge/amd/geodelx/geodelxinit.c 2007-07-12 01:26:43 UTC (rev 448) @@ -19,14 +19,9 @@ */
#include <types.h> -#include <lib.h> #include <console.h> #include <post_code.h> -#include <device/device.h> -#include <device/pci.h> -#include <string.h> #include <msr.h> -#include <io.h> #include <cpu.h> #include <amd_geodelx.h>
Modified: LinuxBIOSv3/northbridge/amd/geodelx/raminit.c =================================================================== --- LinuxBIOSv3/northbridge/amd/geodelx/raminit.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/northbridge/amd/geodelx/raminit.c 2007-07-12 01:26:43 UTC (rev 448) @@ -22,9 +22,6 @@ #include <lib.h> #include <console.h> #include <post_code.h> -#include <device/device.h> -#include <device/pci.h> -#include <string.h> #include <msr.h> #include <spd.h> #include <io.h>
Modified: LinuxBIOSv3/northbridge/amd/geodelx/raminit.h =================================================================== --- LinuxBIOSv3/northbridge/amd/geodelx/raminit.h 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/northbridge/amd/geodelx/raminit.h 2007-07-12 01:26:43 UTC (rev 448) @@ -18,6 +18,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef NORTHBRIDGE_AMD_GEODELX_RAMINIT_H +#define NORTHBRIDGE_AMD_GEODELX_RAMINIT_H + +#include <types.h> + void sdram_set_registers(void); void sdram_set_spd_registers(u8 dimm0, u8 dimm1); void sdram_enable(u8 dimm0, u8 dimm1); + +#endif /* NORTHBRIDGE_AMD_GEODELX_RAMINIT_H */
Modified: LinuxBIOSv3/southbridge/amd/cs5536/cs5536.c =================================================================== --- LinuxBIOSv3/southbridge/amd/cs5536/cs5536.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/southbridge/amd/cs5536/cs5536.c 2007-07-12 01:26:43 UTC (rev 448) @@ -21,13 +21,10 @@ #include <lib.h> #include <console.h> #include <post_code.h> -#include <device/device.h> #include <device/pci.h> -#include <string.h> #include <msr.h> -#include <io.h> #include <amd_geodelx.h> -#include <cpu.h> +#include <cpu.h> // TODO: Move rtc_init() etc. to legacy.h #include <device/pci_ids.h> #include <statictree.h> #include "cs5536.h"
Modified: LinuxBIOSv3/southbridge/amd/cs5536/smbus_initram.c =================================================================== --- LinuxBIOSv3/southbridge/amd/cs5536/smbus_initram.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/southbridge/amd/cs5536/smbus_initram.c 2007-07-12 01:26:43 UTC (rev 448) @@ -17,6 +17,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#include <types.h> #include <console.h> #include <io.h> #include "cs5536.h"
Modified: LinuxBIOSv3/southbridge/amd/cs5536/stage1.c =================================================================== --- LinuxBIOSv3/southbridge/amd/cs5536/stage1.c 2007-07-12 01:03:05 UTC (rev 447) +++ LinuxBIOSv3/southbridge/amd/cs5536/stage1.c 2007-07-12 01:26:43 UTC (rev 448) @@ -17,8 +17,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
-#include <console.h> -#include <io.h> +#include <types.h> #include <msr.h> #include <amd_geodelx.h> #include "cs5536.h"