diff options
author | Haiying Wang <Haiying.Wang@freescale.com> | 2010-12-01 10:35:31 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-01-19 22:58:22 -0600 |
commit | fc0c2b6fc929f1d4038c4f0de1b631170b8f397c (patch) | |
tree | 180b29ff47efa502ef8b7f83a481b301bd9a6b07 /arch/powerpc/cpu/mpc8xxx/ddr/ddr.h | |
parent | e1ccf97c5d7651664d37c0c5aa243874b8851b2d (diff) | |
download | u-boot-imx-fc0c2b6fc929f1d4038c4f0de1b631170b8f397c.zip u-boot-imx-fc0c2b6fc929f1d4038c4f0de1b631170b8f397c.tar.gz u-boot-imx-fc0c2b6fc929f1d4038c4f0de1b631170b8f397c.tar.bz2 |
8xxx/ddr: add support to only compute the ddr sdram size
This patch adds fsl_ddr_sdram_size to only calculate the ddr sdram size, in
case that the DDR SDRAM is initialized in the 2nd stage uboot and should not
be intialized again in the final stage uboot.
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx/ddr/ddr.h')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/ddr/ddr.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h b/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h index 98acb8d..35b60a0 100644 --- a/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h +++ b/arch/powerpc/cpu/mpc8xxx/ddr/ddr.h @@ -1,5 +1,5 @@ /* - * Copyright 2008 Freescale Semiconductor, Inc. + * Copyright 2008-2011 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -55,7 +55,8 @@ typedef struct { #define STEP_ALL 0xFFF extern unsigned long long -fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step); +fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step, + unsigned int size_only); extern const char * step_to_string(unsigned int step); @@ -64,7 +65,8 @@ compute_fsl_memctl_config_regs(const memctl_options_t *popts, fsl_ddr_cfg_regs_t *ddr, const common_timing_params_t *common_dimm, const dimm_params_t *dimm_parameters, - unsigned int dbw_capacity_adjust); + unsigned int dbw_capacity_adjust, + unsigned int size_only); extern unsigned int compute_lowest_common_dimm_parameters(const dimm_params_t *dimm_params, common_timing_params_t *outpdimm, |