diff options
author | wdenk <wdenk> | 2005-04-03 22:35:21 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2005-04-03 22:35:21 +0000 |
commit | 384cc687445b34241fcc8b31bbb7aa9fc252dd90 (patch) | |
tree | 4ef26b0022805188ea5b7b4bf13a14973c5c4d70 /cpu/mpc85xx/spd_sdram.c | |
parent | c1a11c19ecbfb390c09ad1ef9800412235ec1708 (diff) | |
download | u-boot-384cc687445b34241fcc8b31bbb7aa9fc252dd90.tar.gz u-boot-384cc687445b34241fcc8b31bbb7aa9fc252dd90.tar.xz u-boot-384cc687445b34241fcc8b31bbb7aa9fc252dd90.zip |
Patches by Josef Wagner, 29 Oct 2004:
- Add support for MicroSys CPU87 board
- Add support for MicroSys PM854 board
Diffstat (limited to 'cpu/mpc85xx/spd_sdram.c')
-rw-r--r-- | cpu/mpc85xx/spd_sdram.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/cpu/mpc85xx/spd_sdram.c b/cpu/mpc85xx/spd_sdram.c index 3d7d003e94..5a1dbe2b53 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 */ |