summaryrefslogtreecommitdiffstats
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)
downloadblackbird-obmc-uboot-076bff8f4746baf7c83b96049d97e9dd4454dace.tar.gz
blackbird-obmc-uboot-076bff8f4746baf7c83b96049d97e9dd4454dace.zip
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 f1220750df..98acb8dd52 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);
OpenPOWER on IntegriCloud