diff options
author | Wolfgang Denk <wd@denx.de> | 2009-10-04 22:56:08 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-10-08 00:23:12 +0200 |
commit | da01f53404f99db185d196867af79371725d4683 (patch) | |
tree | 0cdf0d758bb985df06aa8c9c8adb493c38ee2da5 /include/asm-ppc/mpc512x.h | |
parent | dbcc357166bed20df13450e93a501f30b197efd1 (diff) | |
download | u-boot-imx-da01f53404f99db185d196867af79371725d4683.zip u-boot-imx-da01f53404f99db185d196867af79371725d4683.tar.gz u-boot-imx-da01f53404f99db185d196867af79371725d4683.tar.bz2 |
mpc512x: fix fixed_sdram() init code.
Commit 054197ba and later fixes used an array to initialize some of
the MDDRC parameters; however, the use of an array turned out to be a
bad idea as it was not possible to correlate structure entries to
array indices in readable and reliable way. Now we use a struct
instead, which makes this self-explanatory.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/asm-ppc/mpc512x.h')
-rw-r--r-- | include/asm-ppc/mpc512x.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-ppc/mpc512x.h b/include/asm-ppc/mpc512x.h index 8ef0d9c..960e229 100644 --- a/include/asm-ppc/mpc512x.h +++ b/include/asm-ppc/mpc512x.h @@ -50,7 +50,8 @@ static inline void sync_law(volatile void *addr) /* * Prototypes */ -extern long int fixed_sdram(u32 *mddrc_config, u32 *dram_init_seq, int seq_sz); +extern long int fixed_sdram(ddr512x_config_t *mddrc_config, + u32 *dram_init_seq, int seq_sz); extern int mpc5121_diu_init(void); extern void ide_set_reset(int idereset); |