zero warning days.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5389 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
7488e049df
commit
6a445e8126
|
@ -20,7 +20,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <sdram_mode.h>
|
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "i440bx.h"
|
#include "i440bx.h"
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <sdram_mode.h>
|
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "i440lx.h"
|
#include "i440lx.h"
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <sdram_mode.h>
|
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include "i82810.h"
|
#include "i82810.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <sdram_mode.h>
|
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include "lib/debug.c"
|
#include "lib/debug.c"
|
||||||
#include "i82830.h"
|
#include "i82830.h"
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
/* ported from Via VT8263 Code*/
|
/* ported from Via VT8263 Code*/
|
||||||
|
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <sdram_mode.h>
|
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
#include "cn400.h"
|
#include "cn400.h"
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <sdram_mode.h>
|
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include "cn700.h"
|
#include "cn700.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <spd_ddr2.h>
|
#include <spd_ddr2.h>
|
||||||
#include <sdram_mode.h>
|
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include "cx700_registers.h"
|
#include "cx700_registers.h"
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <sdram_mode.h>
|
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
|
||||||
#if CONFIG_DEBUG_RAM_SETUP
|
#if CONFIG_DEBUG_RAM_SETUP
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#define CLK_CNTL_INDEX 0x8
|
#define CLK_CNTL_INDEX 0x8
|
||||||
#define CLK_CNTL_DATA 0xC
|
#define CLK_CNTL_DATA 0xC
|
||||||
|
|
||||||
|
#if 0
|
||||||
static u32 clkind_read(device_t dev, u32 index)
|
static u32 clkind_read(device_t dev, u32 index)
|
||||||
{
|
{
|
||||||
u32 gfx_bar2 = pci_read_config32(dev, 0x18) & ~0xF;
|
u32 gfx_bar2 = pci_read_config32(dev, 0x18) & ~0xF;
|
||||||
|
@ -41,6 +42,7 @@ static u32 clkind_read(device_t dev, u32 index)
|
||||||
*(u32*)(gfx_bar2+CLK_CNTL_INDEX) = index & 0x7F;
|
*(u32*)(gfx_bar2+CLK_CNTL_INDEX) = index & 0x7F;
|
||||||
return *(u32*)(gfx_bar2+CLK_CNTL_DATA);
|
return *(u32*)(gfx_bar2+CLK_CNTL_DATA);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void clkind_write(device_t dev, u32 index, u32 data)
|
static void clkind_write(device_t dev, u32 index, u32 data)
|
||||||
{
|
{
|
||||||
|
@ -73,8 +75,6 @@ static void rs690_gfx_read_resources(device_t dev)
|
||||||
static void internal_gfx_pci_dev_init(struct device *dev)
|
static void internal_gfx_pci_dev_init(struct device *dev)
|
||||||
{
|
{
|
||||||
u16 deviceid, vendorid;
|
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);
|
deviceid = pci_read_config16(dev, PCI_DEVICE_ID);
|
||||||
vendorid = pci_read_config16(dev, PCI_VENDOR_ID);
|
vendorid = pci_read_config16(dev, PCI_VENDOR_ID);
|
||||||
printk(BIOS_INFO, "internal_gfx_pci_dev_init device=%x, vendor=%x.\n",
|
printk(BIOS_INFO, "internal_gfx_pci_dev_init device=%x, vendor=%x.\n",
|
||||||
|
|
|
@ -18,39 +18,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
|
#include <arch/romcc_io.h>
|
||||||
|
#include <reset.h>
|
||||||
|
|
||||||
#define PCI_DEV(BUS, DEV, FN) ( \
|
#include "northbridge/amd/amdk8/reset_test.c"
|
||||||
(((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"
|
|
||||||
|
|
||||||
void hard_reset(void)
|
void hard_reset(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#ifndef _SB700_EARLY_SETUP_C_
|
#ifndef _SB700_EARLY_SETUP_C_
|
||||||
#define _SB700_EARLY_SETUP_C_
|
#define _SB700_EARLY_SETUP_C_
|
||||||
|
|
||||||
|
#include <reset.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include "sb700.h"
|
#include "sb700.h"
|
||||||
#include "sb700_smbus.c"
|
#include "sb700_smbus.c"
|
||||||
|
@ -214,7 +215,7 @@ static void enable_fid_change_on_sb(u32 sbbusn, u32 sbdn)
|
||||||
pmio_write(0x89, 0x10);
|
pmio_write(0x89, 0x10);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hard_reset(void)
|
void hard_reset(void)
|
||||||
{
|
{
|
||||||
set_bios_reset();
|
set_bios_reset();
|
||||||
|
|
||||||
|
@ -223,7 +224,7 @@ static void hard_reset(void)
|
||||||
outb(0x0e, 0x0cf9);
|
outb(0x0e, 0x0cf9);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void soft_reset(void)
|
void soft_reset(void)
|
||||||
{
|
{
|
||||||
set_bios_reset();
|
set_bios_reset();
|
||||||
/* link reset */
|
/* link reset */
|
||||||
|
|
Loading…
Reference in New Issue