diff options
Diffstat (limited to 'src/northbridge/motorola')
-rw-r--r-- | src/northbridge/motorola/mpc107/Config.lb | 5 | ||||
-rw-r--r-- | src/northbridge/motorola/mpc107/mpc107.c | 22 |
2 files changed, 2 insertions, 25 deletions
diff --git a/src/northbridge/motorola/mpc107/Config.lb b/src/northbridge/motorola/mpc107/Config.lb index c5eb4256ac..78fc99e85f 100644 --- a/src/northbridge/motorola/mpc107/Config.lb +++ b/src/northbridge/motorola/mpc107/Config.lb @@ -2,10 +2,9 @@ # Objects linked with linuxbios # +config chip.h # We need sdram_init() in ppc_main() initobject meminfo.o initobject mpc107.o -# We need sizeram() in hardwaremain() -object meminfo.o -object mpc107.o +object mpc107_northbridge.c diff --git a/src/northbridge/motorola/mpc107/mpc107.c b/src/northbridge/motorola/mpc107/mpc107.c index e7e75b9af5..ec91a675d7 100644 --- a/src/northbridge/motorola/mpc107/mpc107.c +++ b/src/northbridge/motorola/mpc107/mpc107.c @@ -25,7 +25,6 @@ #include <arch/pciconf.h> #include <timer.h> #include <clock.h> -#include <mem.h> #include "i2c.h" #include "mpc107.h" @@ -45,27 +44,6 @@ memory_init(void) (void)mpc107_config_memory(NUM_BANKS, banks, 2); } -struct mem_range * -sizeram(void) -{ - int i; - struct sdram_dimm_info dimms[NUM_DIMMS]; - struct sdram_bank_info banks[NUM_BANKS]; - static struct mem_range meminfo; - - meminfo.basek = 0; - meminfo.sizek = 0; - - mpc107_probe_dimms(NUM_DIMMS, dimms, banks); - - for (i = 0; i < NUM_BANKS; i++) - meminfo.sizek += banks[i].size; - - meminfo.sizek >>= 10; - - return &meminfo; -} - /* * Configure the MPC107 with the most pessimistic settings. These * are modified by reading the SPD EEPROM and adjusting accordingly. |