#include <arch/io.h>
#include <cbfs.h>
-u32 VSA_vrRead(u16 classIndex);
void do_vsmbios(void);
#define VSA2_BUFFER 0x60000
/* andrei: Some VSA virtual register helpers: raw read and MSR read. */
-u32 VSA_vrRead(u16 classIndex)
+static u32 VSA_vrRead(u16 classIndex)
{
unsigned eax, ebx, ecx, edx;
asm volatile (
return eax;
}
-u32 VSA_msrRead(u32 msrAddr)
+static u32 VSA_msrRead(u32 msrAddr)
{
unsigned eax, ebx, ecx, edx;
asm volatile (
#endif
#ifndef __ROMCC__
+void console_init(void);
+void post_code(u8 value);
+void __attribute__ ((noreturn)) die(const char *msg);
int do_printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
#undef WE_CLEANED_UP_ALL_SIDE_EFFECTS
0x1078, /* Vendor */
0x2, /* Device */
0, /* Crap (miniport) */
- // { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
0xde, /* Checksum */
{
/* bus, dev | fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
#include <device/pnp_def.h>
#include <arch/hlt.h>
#include "pc80/serial.c"
+#include <console/console.h>
#include "console/console.c"
#include "lib/ramtest.c"
#include "cpu/x86/bist.h"
return;
}
+#if 0 // Unused
static unsigned int CPUSpeed(void)
{
unsigned int speed;
}
return (speed);
}
+#endif
+
static unsigned int GeodeLinkSpeed(void)
{
unsigned int speed;
}
return (speed);
}
+
+#if 0 // Unused
static unsigned int PCISpeed(void)
{
msr_t msr;
return (33);
}
}
+#endif
wrmsr(MC_CF07_DATA, msr);
}
+#undef TLA_MEMORY_DEBUG
+#ifdef TLA_MEMORY_DEBUG
static void EnableMTest(void)
{
msr_t msr;
print_info("Enabled MTest for TLA debug\n");
}
+#endif
static void sdram_set_registers(const struct mem_controller *ctrl)
{
;********************************************************************/
post_code(POST_MEM_ENABLE); // post_76h
+#ifdef TLA_MEMORY_DEBUG
/* Only enable MTest for TLA memory debug */
- /*EnableMTest(); */
+ EnableMTest();
+#endif
/* If both Page Size = "Not Installed" we have a problems and should halt. */
msr = rdmsr(MC_CF07_DATA);
{PMS_IO_BASE + PM_SIDD, 0x000008C02},
{PMS_IO_BASE + PM_WKD, 0x0000000A0},
{PMS_IO_BASE + PM_WKXD, 0x0000000A0},
- {0, 0, 0}
+ {0, 0}
};
struct FLASH_DEVICE {
/* Run after VSA init to enable the flash PCI device header */
/* **/
/* ***************************************************************************/
-static void enable_ide_nand_flash_header()
+static void enable_ide_nand_flash_header(void)
{
/* Tell VSA to use FLASH PCI header. Not IDE header. */
outl(0x80007A40, 0xCF8);
*
* See page 412 of the AMD Geode CS5536 Companion Device data book.
*/
-void cs5536_setup_onchipuart1(void)
+static void cs5536_setup_onchipuart1(void)
{
msr_t msr;
wrmsr(MDD_UART1_CONF, msr);
}
-void cs5536_setup_onchipuart2(void)
+static void cs5536_setup_onchipuart2(void)
{
msr_t msr;