v3 patch
The following is the v3 patch. Since the last version, the change to hwconfig has been dropped. Adding SPD registers has been dropped as well. Interactive debugging DDR will be submitted later after cleaning up.
York Sun
PATCH v3 1/7 mpc8xxx: Display RDIMM if detected
Print a message when a RDIMM is detected.
--- .../cpu/mpc8xxx/ddr/lc_common_dimm_params.c | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-)
arch/powerpc/cpu/mpc8xxx/ddr/lc_common_dimm_params.c +7 -11
@@ -98,7 +98,7 @@ compute_lowest_common_dimm_parameters(const dimm_params_t *dimm_params,unsigned int tDQSQ_max_ps =0 ;unsigned int tQHS_ps =0 ; -unsigned int temp1, temp2, temp3; +unsigned int temp1, temp2;unsigned int additive_latency =0 ;#if !defined(CONFIG_FSL_DDR3 )const unsigned int mclk_ps =get_memory_clk_period_ps ();
@@ -215,18 +215,14 @@ compute_lowest_common_dimm_parameters(const dimm_params_t *dimm_params, } outpdimm->all_DIMMs_registered =0 ; + outpdimm->all_DIMMs_unbuffered =0 ;if (temp1 && !temp2) { outpdimm->all_DIMMs_registered =1 ; - } - - outpdimm->all_DIMMs_unbuffered =0 ; -if (!temp1 && temp2) { +printf ("Detected RDIMM(s)\n" ); + }else if (!temp1 && temp2) { outpdimm->all_DIMMs_unbuffered =1 ; - } - -/* CHECKME: */ -if (!outpdimm->all_DIMMs_registered - && !outpdimm->all_DIMMs_unbuffered) { +printf ("Detected UDIMM(s)\n" ); + }else {printf ("ERROR: Mix of registered buffered and unbuffered " "DIMMs detected!\n" ); }
@@ -237,7 +233,7 @@ compute_lowest_common_dimm_parameters(const dimm_params_t *dimm_params, outpdimm->rcw[j] = dimm_params[0 ].rcw[j];for (i =1 ; i < number_of_dimms; i++)if (dimm_params[i].rcw[j] != dimm_params[0 ].rcw[j]) { - temp3 =1 ; + temp1 =1 ;break ; } }
Signature · 1 line
1.7.0.4
Kumar Gala
AppliedPATCH v3 1/7 mpc8xxx: Display RDIMM if detected
Quoted 6 lines · York Sun
Print a message when a RDIMM is detected.
Signed-off-by York Sun <[email protected]>---
.../cpu/mpc8xxx/ddr/lc_common_dimm_params.c| 18 +++++++-----------1 files changed, 7 insertions(+), 11 deletions(-)
applied to 85xx
- k
PATCH v3 2/7 mpc8xxx: Enable ECC on/off control in hwconfig
In reply to York SunAdd fsl_ddr:ecc=on in hwconfig. If ECC is enabled in board configuration file, ECC can be turned on/off by this switch. If this switch is omitted, it is ON by default.
Updated hwconfig calls to use local buffer.
Syntax is
hwconfig=fsl_ddr:ecc=on
--- arch/powerpc/cpu/mpc8xxx/ddr/options.c | 9 ++++++--- doc/README.fsl-ddr | 7 +++++++ 2 files changed, 13 insertions(+), 3 deletions(-)
arch/powerpc/cpu/mpc8xxx/ddr/options.c +6 -3
@@ -98,10 +98,13 @@ unsigned int populate_memctl_options(int all_DIMMs_registered,/* Operational Mode Paramters */ /* Pick ECC modes */ -#ifdef CONFIG_DDR_ECC - popts->ECC_mode =1 ;/* 0 = disabled, 1 = enabled */ -#else popts->ECC_mode =0 ;/* 0 = disabled, 1 = enabled */ +#ifdef CONFIG_DDR_ECC +if (hwconfig_sub_f ("fsl_ddr" ,"ecc" , buf)) { +if (hwconfig_subarg_cmp_f ("fsl_ddr" ,"ecc" ,"on" , buf)) + popts->ECC_mode =1 ; + }else + popts->ECC_mode =1 ;#endif popts->ECC_init_using_memctl =1 ;/* 0 = use DMA, 1 = use memctl */
doc/README.fsl-ddr +7 -0
@@ -78,6 +78,13 @@ If the DDR controller supports address hashing, it can be enabled by hwconfig. Syntax is: hwconfig=fsl_ddr:addr_hash=true +Memory controller ECC on/off +============================ +If ECC is enabled in board configuratoin file, i.e. #define CONFIG_DDR_ECC, +ECC can be turned on/off by hwconfig. + +Syntax is +hwconfig=fsl_ddr:ecc=off Memory testing options for mpc85xx ==================================
Signature · 1 line
1.7.0.4
Kumar Gala
AppliedPATCH v3 2/7 mpc8xxx: Enable ECC on/off control in hwconfig
Quoted 6 lines · York Sun
Add fsl_ddr:ecc=on in hwconfig. If ECC is enabled in board configuration file, ECC can be turned on/off by this switch. If this switch is omitted, it is ON by default.
Updated hwconfig calls to use local buffer.
Quoted 8 lines
Syntax is
hwconfig=fsl_ddr:ecc=onSigned-off-by York Sun <[email protected]>---
arch/powerpc/cpu/mpc8xxx/ddr/options.c | 9 ++++++--- doc/README.fsl-ddr | 7 +++++++ 2 files changed, 13 insertions(+), 3 deletions(-)
applied to 85xx
- k
PATCH v3 3/7 corenet_ds: Enable ECC for corenet_ds
In reply to York SunECC can be turned on/off by hwconfig without recompiling. So enable it by default.
--- include/configs/corenet_ds.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/configs/corenet_ds.h +1 -1
@@ -76,7 +76,7 @@#define CONFIG_BACKSIDE_L2_CACHE #define CONFIG_SYS_INIT_L2CSR0 L2CSR0_L2E#define CONFIG_BTB /* toggle branch predition */ -/*#define CONFIG_DDR_ECC*/ +#define CONFIG_DDR_ECC #ifdef CONFIG_DDR_ECC #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER #define CONFIG_MEM_INIT_VALUE 0xdeadbeef
Signature · 1 line
1.7.0.4
Kumar Gala
AppliedPATCH v3 3/7 corenet_ds: Enable ECC for corenet_ds
Quoted 7 lines · York Sun
ECC can be turned on/off by hwconfig without recompiling. So enable it by default.
Signed-off-by York Sun <[email protected]>---
include/configs/corenet_ds.h| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)
applied to 85xx
- k
PATCH v3 4/7 mpc85xx: Adding more registers and options
In reply to York SunThis patch exposes more registers which can be used by the DDR drivers or interactive debugging. U-boot doesn't use all the registers in DDRC. When advanced tuning is required, writing to those registers is needed.
Add writing to cdr1, cdr2, err_disable, err_int_en and debug registers Add options to override rcw, address parity to RDIMMs.
Use array for debug registers.
--- arch/powerpc/cpu/mpc85xx/ddr-gen3.c | 10 ++++++++-- arch/powerpc/include/asm/fsl_ddr_sdram.h | 12 ++++++++++++ arch/powerpc/include/asm/immap_85xx.h | 21 ++------------------- board/tqc/tqm85xx/sdram.c | 8 ++++---- 4 files changed, 26 insertions(+), 25 deletions(-)
arch/powerpc/cpu/mpc85xx/ddr-gen3.c +8 -2
@@ -9,6 +9,7 @@#include <common.h> #include <asm/io.h> #include <asm/fsl_ddr_sdram.h> +#include <asm/processor.h> #if (CONFIG_CHIP_SELECTS_PER_CTRL >4 )#error Invalid setting for CONFIG_CHIP_SELECTS_PER_CTRL
@@ -79,6 +80,12 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,out_be32 (&ddr->ddr_sr_cntr, regs->ddr_sr_cntr);out_be32 (&ddr->ddr_sdram_rcw_1, regs->ddr_sdram_rcw_1);out_be32 (&ddr->ddr_sdram_rcw_2, regs->ddr_sdram_rcw_2); +out_be32 (&ddr->ddr_cdr1, regs->ddr_cdr1); +out_be32 (&ddr->ddr_cdr2, regs->ddr_cdr2); +out_be32 (&ddr->err_disable, regs->err_disable); +out_be32 (&ddr->err_int_en, regs->err_int_en); +for (i =0 ; i <32 ; i++) +out_be32 (&ddr->debug[i], regs->debug[i]);/* Set, but do not enable the memory */ temp_sdram_cfg = regs->ddr_sdram_cfg;
@@ -93,8 +100,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,if ((((in_be32 (&ddr->sdram_cfg) >>24 ) &0x7 ) ==SDRAM_TYPE_DDR2 ) &&in_be32 (&ddr->sdram_cfg) &0x80000 ) {/* set DEBUG_1[31] */ -u32 temp =in_be32 (&ddr->debug_1); -out_be32 (&ddr->debug_1, temp |1 ); +setbits_be32 (&ddr->debug[0 ],1 ); }#endif
arch/powerpc/include/asm/fsl_ddr_sdram.h +12 -0
@@ -120,6 +120,11 @@ typedef struct fsl_ddr_cfg_regs_s {unsigned int ddr_sdram_rcw_1;unsigned int ddr_sdram_rcw_2;unsigned int ddr_eor; +unsigned int ddr_cdr1; +unsigned int ddr_cdr2; +unsigned int err_disable; +unsigned int err_int_en; +unsigned int debug[32 ]; } fsl_ddr_cfg_regs_t; typedef struct memctl_options_partial_s {
@@ -175,6 +180,7 @@ typedef struct memctl_options_s {/* mirrior DIMMs for DDR3 */ unsigned int mirrored_dimm;unsigned int quad_rank_present; +unsigned int ap_en;/* address parity enable for RDIMM */ /* Global Timing Parameters */ unsigned int cas_latency_override;
@@ -210,6 +216,12 @@ typedef struct memctl_options_s {unsigned int zq_en;/* Write leveling */ unsigned int wrlvl_en; +/* RCW override for RDIMM */ +unsigned int rcw_override; +unsigned int rcw_1; +unsigned int rcw_2; +/* control register 1 */ +unsigned int ddr_cdr1; } memctl_options_t;extern phys_size_t fsl_ddr_sdram (void );
arch/powerpc/include/asm/immap_85xx.h +2 -19
@@ -222,25 +222,8 @@ typedef struct ccsr_ddr {u32 capture_ext_address;/* Error Extended Addr Capture */ u32 err_sbe;/* Single-Bit ECC Error Management */ u8 res11[164 ]; -u32 debug_1; -u32 debug_2; -u32 debug_3; -u32 debug_4; -u32 debug_5; -u32 debug_6; -u32 debug_7; -u32 debug_8; -u32 debug_9; -u32 debug_10; -u32 debug_11; -u32 debug_12; -u32 debug_13; -u32 debug_14; -u32 debug_15; -u32 debug_16; -u32 debug_17; -u32 debug_18; -u8 res12[184 ]; +u32 debug[32 ];/* debug_1 to debug_32 */ +u8 res12[128 ]; } ccsr_ddr_t;#define DDR_EOR_RD_BDW_OPT_DIS 0x80000000/* Read BDW Opt. disable */
board/tqc/tqm85xx/sdram.c +4 -4
@@ -220,7 +220,7 @@ long int sdram_setup (int casl)* 4. Before DDR_SDRAM_CFG[MEM_EN] set, write D3[21] to disable data * training */ - ddr->debug_3 |=0x00000400 ; + ddr->debug[2 ] |=0x00000400 ;/* * 5. Wait 200 micro-seconds
@@ -262,18 +262,18 @@ long int sdram_setup (int casl)/* * 8. Clear D3[21] to re-enable data training */ - ddr->debug_3 &= ~0x00000400 ; + ddr->debug[2 ] &= ~0x00000400 ;/* * 9. Set D2(21) to force data training to run */ - ddr->debug_2 |=0x00000400 ; + ddr->debug[1 ] |=0x00000400 ;/* * 10. Poll on D2[21] until it is cleared by hardware */ asm ("sync;isync;msync" ); -while (ddr->debug_2 &0x00000400 ) +while (ddr->debug[1 ] &0x00000400 ) asm ("eieio" );/*
Signature · 1 line
1.7.0.4
Kumar Gala
AppliedPATCH v3 4/7 mpc85xx: Adding more registers and options
Quoted 8 lines · York Sun
This patch exposes more registers which can be used by the DDR drivers or interactive debugging. U-boot doesn't use all the registers in DDRC. When advanced tuning is required, writing to those registers is needed.
Add writing to cdr1, cdr2,
err_disable,err_int_enand debug registers Add options to override rcw, address parity to RDIMMs.
Use array for debug registers.
Quoted 7 lines
Signed-off-by York Sun <[email protected]>---
arch/powerpc/cpu/mpc85xx/ddr-gen3.c | 10 ++++++++-- arch/powerpc/include/asm/fsl_ddr_sdram.h | 12 ++++++++++++ arch/powerpc/include/asm/immap_85xx.h | 21 ++------------------- board/tqc/tqm85xx/sdram.c | 8 ++++---- 4 files changed, 26 insertions(+), 25 deletions(-)
applied to 85xx
- k
PATCH v3 5/7 mpc85xx: Enable unique mode registers and dynamic ODT for DDR3
In reply to York SunAdded fsl_ddr_get_version() function to for DDR3 to poll DDRC IP version (major, minor, errata) to determine if unique mode registers are available. If true, always use unique mode registers. Dynamic ODT is enabled if needed. The table is documented in doc/README.fsl-ddr. This function may also need to be extend for future other platforms if such a feature exists.
Enable address parity and RCW by default for RDIMMs.
Change default output driver impedance from 34 ohm to 40ohm. Make it 34ohm for quad-rank RDIMMs.
Use a formula to calculate rodt_on for timing_cfg_5.
--- arch/powerpc/cpu/mpc85xx/ddr-gen3.c | 6 + arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c | 250 ++++++++++++++++++++----- arch/powerpc/cpu/mpc8xxx/ddr/options.c | 308 +++++++++++++++++++++++++++++- arch/powerpc/include/asm/fsl_ddr_sdram.h | 18 ++ doc/README.fsl-ddr | 67 +++++++- 5 files changed, 595 insertions(+), 54 deletions(-)
arch/powerpc/cpu/mpc85xx/ddr-gen3.c +6 -0
@@ -66,6 +66,12 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,out_be32 (&ddr->sdram_cfg_2, regs->ddr_sdram_cfg_2);out_be32 (&ddr->sdram_mode, regs->ddr_sdram_mode);out_be32 (&ddr->sdram_mode_2, regs->ddr_sdram_mode_2); +out_be32 (&ddr->sdram_mode_3, regs->ddr_sdram_mode_3); +out_be32 (&ddr->sdram_mode_4, regs->ddr_sdram_mode_4); +out_be32 (&ddr->sdram_mode_5, regs->ddr_sdram_mode_5); +out_be32 (&ddr->sdram_mode_6, regs->ddr_sdram_mode_6); +out_be32 (&ddr->sdram_mode_7, regs->ddr_sdram_mode_7); +out_be32 (&ddr->sdram_mode_8, regs->ddr_sdram_mode_8);out_be32 (&ddr->sdram_md_cntl, regs->ddr_sdram_md_cntl);out_be32 (&ddr->sdram_interval, regs->ddr_sdram_interval);out_be32 (&ddr->sdram_data_init, regs->ddr_data_init);
arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c +203 -47
455 lines not on this page · raw message
arch/powerpc/cpu/mpc8xxx/ddr/options.c +302 -6
335 lines not on this page · raw message
arch/powerpc/include/asm/fsl_ddr_sdram.h +18 -0
@@ -24,6 +24,7 @@#define DDR_OTF 6/* on-the-fly BC4 and BL8 */ #define DDR_BL8 8/* burst length 8 */ +#define DDR3_RTT_OFF 0#define DDR3_RTT_60_OHM 1/* RTT_Nom = RZQ/4 */ #define DDR3_RTT_120_OHM 2/* RTT_Nom = RZQ/2 */ #define DDR3_RTT_40_OHM 3/* RTT_Nom = RZQ/6 */
@@ -50,6 +51,15 @@ typedef ddr3_spd_eeprom_t generic_spd_eeprom_t;#endif #endif /* #if defined(CONFIG_FSL_DDR1) */ +#define FSL_DDR_ODT_NEVER 0x0 +#define FSL_DDR_ODT_CS 0x1 +#define FSL_DDR_ODT_ALL_OTHER_CS 0x2 +#define FSL_DDR_ODT_OTHER_DIMM 0x3 +#define FSL_DDR_ODT_ALL 0x4 +#define FSL_DDR_ODT_SAME_DIMM 0x5 +#define FSL_DDR_ODT_CS_AND_OTHER_DIMM 0x6 +#define FSL_DDR_ODT_OTHER_CS_ONSAMEDIMM 0x7 +/* define bank(chip select) interleaving mode */ #define FSL_DDR_CS0_CS1 0x40#define FSL_DDR_CS2_CS3 0x20
@@ -106,6 +116,12 @@ typedef struct fsl_ddr_cfg_regs_s {unsigned int ddr_sdram_cfg_2;unsigned int ddr_sdram_mode;unsigned int ddr_sdram_mode_2; +unsigned int ddr_sdram_mode_3; +unsigned int ddr_sdram_mode_4; +unsigned int ddr_sdram_mode_5; +unsigned int ddr_sdram_mode_6; +unsigned int ddr_sdram_mode_7; +unsigned int ddr_sdram_mode_8;unsigned int ddr_sdram_md_cntl;unsigned int ddr_sdram_interval;unsigned int ddr_data_init;
@@ -156,6 +172,8 @@ typedef struct memctl_options_s {unsigned int auto_precharge;unsigned int odt_rd_cfg;unsigned int odt_wr_cfg; +unsigned int odt_rtt_norm; +unsigned int odt_rtt_wr; } cs_local_opts[CONFIG_CHIP_SELECTS_PER_CTRL ];/* Special configurations for chip select */
doc/README.fsl-ddr +66 -1
70 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Kumar Gala
AppliedPATCH v3 5/7 mpc85xx: Enable unique mode registers and dynamic ODT for DDR3
Quoted 13 lines · York Sun
Added
fsl_ddr_get_version()function to for DDR3 to poll DDRC IP version (major, minor, errata) to determine if unique mode registers are available. If true, always use unique mode registers. Dynamic ODT is enabled if needed. The table is documented in doc/README.fsl-ddr. This function may also need to be extend for future other platforms if such a feature exists.Enable address parity and RCW by default for RDIMMs.
Change default output driver impedance from 34 ohm to 40ohm. Make it 34ohm for quad-rank RDIMMs.
Use a formula to calculate
rodt_onfortiming_cfg_5.
Quoted 8 lines
Signed-off-by York Sun <[email protected]>---
arch/powerpc/cpu/mpc85xx/ddr-gen3.c | 6 + arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c | 250 ++++++++++++++++++++----- arch/powerpc/cpu/mpc8xxx/ddr/options.c | 308 +++++++++++++++++++++++++++++- arch/powerpc/include/asm/fsl_ddr_sdram.h | 18 ++ doc/README.fsl-ddr | 67 +++++++- 5 files changed, 595 insertions(+), 54 deletions(-)
applied to 85xx
- k
PATCH v3 6/7 mpc85xx: Implement workaround for erratum DDR-A003
In reply to York SunErratum DDR-A003 requires workaround to correctly set RCW10 for registered DIMM. Also adding polling after enabling DDR controller to ensure completion.
--- arch/powerpc/cpu/mpc85xx/cmd_errata.c | 4 ++ arch/powerpc/cpu/mpc85xx/ddr-gen3.c | 81 +++++++++++++++++++++++++++++- arch/powerpc/include/asm/fsl_ddr_sdram.h | 19 +++++++ include/configs/P4080DS.h | 1 + 4 files changed, 104 insertions(+), 1 deletions(-)
arch/powerpc/cpu/mpc85xx/cmd_errata.c +4 -0
@@ -47,6 +47,10 @@ static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])#if defined(CONFIG_SYS_P4080_ERRATUM_CPU22 )puts ("Work-around for Erratum CPU22 enabled\n" );#endif +#ifdef CONFIG_SYS_FSL_ERRATUM_DDR_A003 +puts ("Work-around for Erratum DDR-A003 enabled\n" ); +#endif +return 0 ; }
arch/powerpc/cpu/mpc85xx/ddr-gen3.c +80 -1
94 lines not on this page · raw message
arch/powerpc/include/asm/fsl_ddr_sdram.h +19 -0
@@ -101,6 +101,25 @@ typedef ddr3_spd_eeprom_t generic_spd_eeprom_t;#define WR_DATA_DELAY_SHIFT 10#endif +/* DDR_MD_CNTL */ +#define MD_CNTL_MD_EN 0x80000000 +#define MD_CNTL_CS_SEL_CS0 0x00000000 +#define MD_CNTL_CS_SEL_CS1 0x10000000 +#define MD_CNTL_CS_SEL_CS2 0x20000000 +#define MD_CNTL_CS_SEL_CS3 0x30000000 +#define MD_CNTL_CS_SEL_CS0_CS1 0x40000000 +#define MD_CNTL_CS_SEL_CS2_CS3 0x50000000 +#define MD_CNTL_MD_SEL_MR 0x00000000 +#define MD_CNTL_MD_SEL_EMR 0x01000000 +#define MD_CNTL_MD_SEL_EMR2 0x02000000 +#define MD_CNTL_MD_SEL_EMR3 0x03000000 +#define MD_CNTL_SET_REF 0x00800000 +#define MD_CNTL_SET_PRE 0x00400000 +#define MD_CNTL_CKE_CNTL_LOW 0x00100000 +#define MD_CNTL_CKE_CNTL_HIGH 0x00200000 +#define MD_CNTL_WRCW 0x00080000 +#define MD_CNTL_MD_VALUE (x) (x & 0x0000FFFF) +/* Record of register values computed */ typedef struct fsl_ddr_cfg_regs_s { struct {
include/configs/P4080DS.h +1 -0
@@ -37,5 +37,6 @@#define CONFIG_SYS_P4080_ERRATUM_CPU22 #define CONFIG_SYS_P4080_ERRATUM_SERDES8 +#define CONFIG_SYS_FSL_ERRATUM_DDR_A003 #include "corenet_ds.h"
Signature · 1 line
1.7.0.4
Kumar Gala
AppliedPATCH v3 6/7 mpc85xx: Implement workaround for erratum DDR-A003
Quoted 10 lines · York Sun
Erratum DDR-A003 requires workaround to correctly set RCW10 for registered DIMM. Also adding polling after enabling DDR controller to ensure completion.
Signed-off-by York Sun <[email protected]>---
arch/powerpc/cpu/mpc85xx/cmd_errata.c | 4 ++ arch/powerpc/cpu/mpc85xx/ddr-gen3.c | 81 +++++++++++++++++++++++++++++- arch/powerpc/include/asm/fsl_ddr_sdram.h | 19 +++++++ include/configs/P4080DS.h | 1 + 4 files changed, 104 insertions(+), 1 deletions(-)
applied to 85xx [with minor updates for other patches to move #define of ERRATA into config_mpc85xx.h]
- k
PATCH v3 7/7 corenet_ds: Extend board specific parameters
In reply to York SunExtend board specific parameters to include cpo, write leveling override Extend write leveling sample to 0xf
Adding rcw overrid for quad-rank RDIMMs
--- arch/powerpc/include/asm/fsl_ddr_sdram.h | 3 + board/freescale/corenet_ds/ddr.c | 159 +++++++++++++++--------------- 2 files changed, 84 insertions(+), 78 deletions(-)
arch/powerpc/include/asm/fsl_ddr_sdram.h +3 -0
@@ -120,6 +120,9 @@ typedef ddr3_spd_eeprom_t generic_spd_eeprom_t;#define MD_CNTL_WRCW 0x00080000#define MD_CNTL_MD_VALUE (x) (x & 0x0000FFFF) +/* DDR_CDR1 */ +#define DDR_CDR1_DHC_EN 0x80000000 +/* Record of register values computed */ typedef struct fsl_ddr_cfg_regs_s { struct {
board/freescale/corenet_ds/ddr.c +81 -78
210 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Kumar Gala
AppliedPATCH v3 7/7 corenet_ds: Extend board specific parameters
Quoted 9 lines · York Sun
Extend board specific parameters to include cpo, write leveling override Extend write leveling sample to
0xf
Adding rcw overrid for quad-rank RDIMMsSigned-off-by York Sun <[email protected]>---
arch/powerpc/include/asm/fsl_ddr_sdram.h| 3 +board/freescale/corenet_ds/ddr.c| 159 +++++++++++++++---------------2 files changed, 84 insertions(+), 78 deletions(-)
applied to 85xx
- k