summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h
diff options
context:
space:
mode:
authoryork <yorksun@freescale.com>2010-07-02 22:25:52 +0000
committerKumar Gala <galak@kernel.crashing.org>2010-07-26 13:16:09 -0500
commit076bff8f4746baf7c83b96049d97e9dd4454dace (patch)
tree8a55f11be0a24163a7c6e59686b72b91ae4ea3d8 /arch/powerpc/cpu/mpc8xxx/ddr/ddr.h
parent79e4e6480b359cb28129cecfa2cae0ef9cccf803 (diff)
downloadu-boot-imx-076bff8f4746baf7c83b96049d97e9dd4454dace.zip
u-boot-imx-076bff8f4746baf7c83b96049d97e9dd4454dace.tar.gz
u-boot-imx-076bff8f4746baf7c83b96049d97e9dd4454dace.tar.bz2
powerpc/8xxx: Fix bug in memctrl interleaving & bank interleaving on cs0~cs4
Verified on MPC8641HPCN with four DDR2 dimms. Each dimm has dual rank with 512MB each rank. Also check dimm size and rank size for memory controller interleaving Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx/ddr/ddr.h')
-rw-r--r--arch/powerpc/cpu/mpc8xxx/ddr/ddr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h b/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h
index f122075..98acb8d 100644
--- a/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h
+++ b/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h
@@ -73,6 +73,7 @@ extern unsigned int populate_memctl_options(int all_DIMMs_registered,
memctl_options_t *popts,
dimm_params_t *pdimm,
unsigned int ctrl_num);
+extern void check_interleaving_options(fsl_ddr_info_t *pinfo);
extern unsigned int mclk_to_picos(unsigned int mclk);
extern unsigned int get_memory_clk_period_ps(void);