summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc85xx/spd_sdram.c14
1 files changed, 3 insertions, 11 deletions
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 <spd.h>
#include <asm/mmu.h>
-#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 */