From 384cc687445b34241fcc8b31bbb7aa9fc252dd90 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 3 Apr 2005 22:35:21 +0000 Subject: Patches by Josef Wagner, 29 Oct 2004: - Add support for MicroSys CPU87 board - Add support for MicroSys PM854 board --- cpu/mpc85xx/spd_sdram.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'cpu/mpc85xx/spd_sdram.c') diff --git a/cpu/mpc85xx/spd_sdram.c b/cpu/mpc85xx/spd_sdram.c index 3d7d003..5a1dbe2 100644 --- a/cpu/mpc85xx/spd_sdram.c +++ b/cpu/mpc85xx/spd_sdram.c @@ -28,21 +28,18 @@ #include #include -#ifdef CONFIG_SPD_EEPROM - - #if defined(CONFIG_DDR_ECC) -extern void dma_init(void); +extern void dma_init (void); extern uint dma_check(void); -extern int dma_xfer(void *dest, uint count, void *src); +extern int dma_xfer (void *dest, uint count, void *src); #endif +#ifdef CONFIG_SPD_EEPROM #ifndef CFG_READ_SPD #define CFG_READ_SPD i2c_read #endif - /* * Convert picoseconds into clock cycles (rounding up if needed). */ @@ -60,14 +57,12 @@ picos_to_clk(int picos) return clks; } - unsigned int banksize(unsigned char row_dens) { return ((row_dens >> 2) | ((row_dens & 3) << 6)) << 24; } - long int spd_sdram(void) { @@ -404,7 +399,6 @@ spd_sdram(void) return memsize * 1024 * 1024; } - #endif /* CONFIG_SPD_EEPROM */ @@ -412,7 +406,6 @@ spd_sdram(void) /* * Initialize all of memory for ECC, then enable errors. */ - void ddr_enable_ecc(unsigned int dram_size) { @@ -464,5 +457,4 @@ ddr_enable_ecc(unsigned int dram_size) ddr->err_disable = 0x00000000; asm("sync;isync;msync"); } - #endif /* CONFIG_DDR_ECC */ -- cgit v1.1