summaryrefslogtreecommitdiff
path: root/src/northbridge/via
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-04-07 03:40:37 +0000
committerStefan Reinauer <stepan@openbios.org>2010-04-07 03:40:37 +0000
commit8a9268451423da1648a4454aaf3b76c2989ee3b4 (patch)
treed3e232cbf4bc4a27cd80749e5ef1fc21e8a7dd16 /src/northbridge/via
parent3dfd03f8878679902927748e305643b6000d0e5b (diff)
clean up age old via epia target.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5368 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/via')
-rw-r--r--src/northbridge/via/vt8601/raminit.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/northbridge/via/vt8601/raminit.c b/src/northbridge/via/vt8601/raminit.c
index 2042d62d27..c898453ed1 100644
--- a/src/northbridge/via/vt8601/raminit.c
+++ b/src/northbridge/via/vt8601/raminit.c
@@ -47,7 +47,7 @@ it with the version available from LANL.
#define DIMM_CL2 0
#endif
-void dimms_read(unsigned long x)
+static void dimms_read(unsigned long x)
{
uint8_t c;
unsigned long eax;
@@ -59,7 +59,7 @@ void dimms_read(unsigned long x)
}
}
-void dimms_write(int x)
+static void dimms_write(int x)
{
uint8_t c;
unsigned long eax = x;
@@ -69,7 +69,8 @@ void dimms_write(int 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) {
@@ -84,11 +85,11 @@ void dumpnorth(device_t north)
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);
@@ -175,7 +176,7 @@ static unsigned long spd_module_size(unsigned char slot)
* 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;
@@ -213,9 +214,9 @@ static unsigned long spd_module_size(unsigned char slot)
}
print_info("\n");
return value;
-
}
+#if 0
static int spd_num_chips(unsigned char slot)
{
unsigned int module = 0x50 + slot;
@@ -226,6 +227,7 @@ static int spd_num_chips(unsigned char slot)
width = 8;
return 64 / width;
}
+#endif
static void sdram_set_spd_registers(const struct mem_controller *ctrl)
{
@@ -275,7 +277,6 @@ static void set_ma_mapping(device_t north, int slot, int type)
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
};