|| NORTHBRIDGE_VIA_VX800 \
|| NORTHBRIDGE_VIA_CX700 \
|| NORTHBRIDGE_AMD_AMDK8 \
- || NORTHBRIDGE_AMD_AMDFAM10)
+ || NORTHBRIDGE_AMD_AMDFAM10 \
+ || SOUTHBRIDGE_VIA_VT8231)
help
This option enables additional SMBus (and SPD) debug messages.
}
#endif
-static void cache_lbmem(int type)
+static inline void cache_lbmem(int type)
{
/* Enable caching for 0 - 1MB using variable mtrr */
disable_cache();
enable_cache();
}
-static int early_mtrr_init_detected(void)
+static inline int early_mtrr_init_detected(void)
{
msr_t msr;
/* See if MTRR's are enabled.
static void main(unsigned long bist)
{
- unsigned long x;
device_t dev;
/*
#include "cpu/x86/bist.h"
#include "pc80/udelay_io.c"
#include "lib/delay.c"
-#include "cpu/x86/lapic/boot_cpu.c"
#include "lib/debug.c"
#include "southbridge/via/vt8231/vt8231_early_smbus.c"
#include "southbridge/via/vt8231/vt8231_early_serial.c"
pci_write_config8(dev, 0x63, shadowreg);
}
-static void main(unsigned long bist)
+void main(unsigned long bist)
{
- unsigned long x;
-
if (bist == 0) {
early_mtrr_init();
}
#define DIMM_CL2 0
#endif
-void dimms_read(unsigned long x)
+static void dimms_read(unsigned long x)
{
uint8_t c;
unsigned long eax;
}
}
-void dimms_write(int x)
+static void dimms_write(int x)
{
uint8_t c;
unsigned long eax = x;
}
}
-void dumpnorth(device_t north)
+#ifdef CONFIG_DEBUG_RAM_SETUP
+static void dumpnorth(device_t north)
{
unsigned int r, c;
for (r = 0;; r += 16) {
break;
}
}
+#endif
static void sdram_set_registers(const struct mem_controller *ctrl)
{
device_t north = (device_t) PCI_DEV(0, 0, 0);
- uint8_t c, r;
print_err("vt8601 init starting\n");
print_debug_hex32(north);
* module. This is just a very early first cut at sizing.
*/
/* we may run out of registers ... */
- unsigned int banks, rows, cols, reg;
+ unsigned int banks, rows, cols;
unsigned int value = 0;
/* unsigned int module = ((0x50 + slot) << 1) + 1; */
unsigned int module = 0x50 + slot;
}
print_info("\n");
return value;
-
}
+#if 0
static int spd_num_chips(unsigned char slot)
{
unsigned int module = 0x50 + slot;
width = 8;
return 64 / width;
}
+#endif
static void sdram_set_spd_registers(const struct mem_controller *ctrl)
{
static void sdram_enable(int controllers, const struct mem_controller *ctrl)
{
- unsigned char i;
static const uint8_t ramregs[] = {
0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x56, 0x57
};
/* Base 8231 controller */
static device_t lpc_dev;
-void hard_reset(void)
-{
- printk(BIOS_ERR, "NO HARD RESET ON VT8231! FIX ME!\n");
-}
-
static void keyboard_on(void)
{
unsigned char regval;
static void enable_vt8231_serial(void)
{
- unsigned long x;
uint8_t c;
device_t dev;
outb(6, 0x80);
return loops ? 0 : -3;
}
+#if 0
void smbus_reset(void)
{
outb(HOST_RESET, SMBUS_IO_BASE + SMBHSTSTAT);
print_debug_hex8(inb(SMBUS_IO_BASE + SMBHSTSTAT));
print_debug("\n");
}
+#endif
+#if CONFIG_DEBUG_SMBUS
static void smbus_print_error(unsigned char host_status_register)
{
print_err("Host Busy\n");
}
}
+#endif
/*
* Copied from intel/i82801dbm early smbus code - suggested by rgm.
*/
static int smbus_read_byte(unsigned device, unsigned address)
{
- unsigned char global_control_register;
unsigned char global_status_register;
unsigned char byte;
/* PIRQ init
*/
-void pci_assign_irqs(unsigned bus, unsigned slot, const unsigned char pIntAtoD[4]);
static const unsigned char southbridgeIrqs[4] = { 11, 5, 10, 12 };
static const unsigned char enetIrqs[4] = { 11, 5, 10, 12 };
static const unsigned char slotIrqs[4] = { 5, 10, 12, 11 };
static void vt8231_init(struct device *dev)
{
unsigned char enables;
- struct southbridge_via_vt8231_config *conf = dev->chip_info;
printk(BIOS_DEBUG, "vt8231 init\n");
rtc_init(0);
}
-void vt8231_read_resources(device_t dev)
+static void vt8231_read_resources(device_t dev)
{
struct resource *res;