Author: stepan Date: Fri Apr 9 13:34:59 2010 New Revision: 5389 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5389
Log: zero warning days.
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/src/northbridge/intel/i440bx/raminit.c trunk/src/northbridge/intel/i440lx/raminit.c trunk/src/northbridge/intel/i82810/raminit.c trunk/src/northbridge/intel/i82830/raminit.c trunk/src/northbridge/via/cn400/raminit.c trunk/src/northbridge/via/cn700/raminit.c trunk/src/northbridge/via/cx700/raminit.c trunk/src/northbridge/via/vx800/raminit.c trunk/src/southbridge/amd/rs690/rs690_gfx.c trunk/src/southbridge/amd/sb600/sb600_reset.c trunk/src/southbridge/amd/sb700/sb700_early_setup.c
Modified: trunk/src/northbridge/intel/i440bx/raminit.c ============================================================================== --- trunk/src/northbridge/intel/i440bx/raminit.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/northbridge/intel/i440bx/raminit.c Fri Apr 9 13:34:59 2010 (r5389) @@ -20,7 +20,6 @@ */
#include <spd.h> -#include <sdram_mode.h> #include <delay.h> #include <stdlib.h> #include "i440bx.h"
Modified: trunk/src/northbridge/intel/i440lx/raminit.c ============================================================================== --- trunk/src/northbridge/intel/i440lx/raminit.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/northbridge/intel/i440lx/raminit.c Fri Apr 9 13:34:59 2010 (r5389) @@ -20,7 +20,6 @@ */
#include <spd.h> -#include <sdram_mode.h> #include <delay.h> #include <stdlib.h> #include "i440lx.h"
Modified: trunk/src/northbridge/intel/i82810/raminit.c ============================================================================== --- trunk/src/northbridge/intel/i82810/raminit.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/northbridge/intel/i82810/raminit.c Fri Apr 9 13:34:59 2010 (r5389) @@ -21,7 +21,6 @@ */
#include <spd.h> -#include <sdram_mode.h> #include <delay.h> #include "i82810.h"
Modified: trunk/src/northbridge/intel/i82830/raminit.c ============================================================================== --- trunk/src/northbridge/intel/i82830/raminit.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/northbridge/intel/i82830/raminit.c Fri Apr 9 13:34:59 2010 (r5389) @@ -20,7 +20,6 @@ */
#include <spd.h> -#include <sdram_mode.h> #include <delay.h> #include "lib/debug.c" #include "i82830.h"
Modified: trunk/src/northbridge/via/cn400/raminit.c ============================================================================== --- trunk/src/northbridge/via/cn400/raminit.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/northbridge/via/cn400/raminit.c Fri Apr 9 13:34:59 2010 (r5389) @@ -29,7 +29,6 @@ /* ported from Via VT8263 Code*/
#include <spd.h> -#include <sdram_mode.h> #include <delay.h> #include <cpu/x86/mtrr.h> #include "cn400.h"
Modified: trunk/src/northbridge/via/cn700/raminit.c ============================================================================== --- trunk/src/northbridge/via/cn700/raminit.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/northbridge/via/cn700/raminit.c Fri Apr 9 13:34:59 2010 (r5389) @@ -21,7 +21,6 @@ */
#include <spd.h> -#include <sdram_mode.h> #include <delay.h> #include "cn700.h"
Modified: trunk/src/northbridge/via/cx700/raminit.c ============================================================================== --- trunk/src/northbridge/via/cx700/raminit.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/northbridge/via/cx700/raminit.c Fri Apr 9 13:34:59 2010 (r5389) @@ -20,7 +20,6 @@ #include <types.h> #include <spd.h> #include <spd_ddr2.h> -#include <sdram_mode.h> #include <delay.h> #include "cx700_registers.h"
Modified: trunk/src/northbridge/via/vx800/raminit.c ============================================================================== --- trunk/src/northbridge/via/vx800/raminit.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/northbridge/via/vx800/raminit.c Fri Apr 9 13:34:59 2010 (r5389) @@ -18,7 +18,6 @@ */
#include <spd.h> -#include <sdram_mode.h> #include <delay.h>
#if CONFIG_DEBUG_RAM_SETUP
Modified: trunk/src/southbridge/amd/rs690/rs690_gfx.c ============================================================================== --- trunk/src/southbridge/amd/rs690/rs690_gfx.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/southbridge/amd/rs690/rs690_gfx.c Fri Apr 9 13:34:59 2010 (r5389) @@ -34,6 +34,7 @@ #define CLK_CNTL_INDEX 0x8 #define CLK_CNTL_DATA 0xC
+#if 0 static u32 clkind_read(device_t dev, u32 index) { u32 gfx_bar2 = pci_read_config32(dev, 0x18) & ~0xF; @@ -41,6 +42,7 @@ *(u32*)(gfx_bar2+CLK_CNTL_INDEX) = index & 0x7F; return *(u32*)(gfx_bar2+CLK_CNTL_DATA); } +#endif
static void clkind_write(device_t dev, u32 index, u32 data) { @@ -73,8 +75,6 @@ static void internal_gfx_pci_dev_init(struct device *dev) { u16 deviceid, vendorid; - struct southbridge_amd_rs690_config *cfg = - (struct southbridge_amd_rs690_config *)dev->chip_info; deviceid = pci_read_config16(dev, PCI_DEVICE_ID); vendorid = pci_read_config16(dev, PCI_VENDOR_ID); printk(BIOS_INFO, "internal_gfx_pci_dev_init device=%x, vendor=%x.\n",
Modified: trunk/src/southbridge/amd/sb600/sb600_reset.c ============================================================================== --- trunk/src/southbridge/amd/sb600/sb600_reset.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/southbridge/amd/sb600/sb600_reset.c Fri Apr 9 13:34:59 2010 (r5389) @@ -18,39 +18,10 @@ */
#include <arch/io.h> +#include <arch/romcc_io.h> +#include <reset.h>
-#define PCI_DEV(BUS, DEV, FN) ( \ - (((BUS) & 0xFFF) << 20) | \ - (((DEV) & 0x1F) << 15) | \ - (((FN) & 0x7) << 12)) - -typedef u32 device_t; - -static void pci_write_config8(device_t dev, unsigned where, unsigned char value) -{ - unsigned addr; - addr = (dev>>4) | where; - outl(0x80000000 | (addr & ~3), 0xCF8); - outb(value, 0xCFC + (addr & 3)); -} - -static void pci_write_config32(device_t dev, unsigned where, unsigned value) -{ - unsigned addr; - addr = (dev>>4) | where; - outl(0x80000000 | (addr & ~3), 0xCF8); - outl(value, 0xCFC); -} - -static unsigned pci_read_config32(device_t dev, unsigned where) -{ - unsigned addr; - addr = (dev>>4) | where; - outl(0x80000000 | (addr & ~3), 0xCF8); - return inl(0xCFC); -} - -#include "../../../northbridge/amd/amdk8/reset_test.c" +#include "northbridge/amd/amdk8/reset_test.c"
void hard_reset(void) {
Modified: trunk/src/southbridge/amd/sb700/sb700_early_setup.c ============================================================================== --- trunk/src/southbridge/amd/sb700/sb700_early_setup.c Fri Apr 9 13:10:25 2010 (r5388) +++ trunk/src/southbridge/amd/sb700/sb700_early_setup.c Fri Apr 9 13:34:59 2010 (r5389) @@ -20,6 +20,7 @@ #ifndef _SB700_EARLY_SETUP_C_ #define _SB700_EARLY_SETUP_C_
+#include <reset.h> #include <arch/cpu.h> #include "sb700.h" #include "sb700_smbus.c" @@ -214,7 +215,7 @@ pmio_write(0x89, 0x10); }
-static void hard_reset(void) +void hard_reset(void) { set_bios_reset();
@@ -223,7 +224,7 @@ outb(0x0e, 0x0cf9); }
-static void soft_reset(void) +void soft_reset(void) { set_bios_reset(); /* link reset */