From: York Sun Date: Mon, 14 Mar 2011 11:34:07 -0700 Subject: [U-Boot] [PATCH v5 1/3] mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements In-Reply-To: <1300120696-9146-2-git-send-email-Kyle.D.Moffett@boeing.com> References: <1300120696-9146-1-git-send-email-Kyle.D.Moffett@boeing.com> <1300120696-9146-2-git-send-email-Kyle.D.Moffett@boeing.com> Message-ID: <1300127647.23720.31.camel@oslab-l1> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 2011-03-14 at 12:38 -0400, Kyle Moffett wrote: > The numeric constants in the switch statements are replaced by #defines > added to the common ddr_spd.h header. This dramatically improves the > readability of the switch statments. > > In addition, a few of the longer lines were cleaned up, and the DDR2 > type for an SO-RDIMM module was added to the DDR2 switch statement. > > Signed-off-by: Kyle Moffett > Cc: Andy Fleming > Cc: Kumar Gala > Cc: Kim Phillips > --- > arch/powerpc/cpu/mpc8xxx/ddr/ddr2_dimm_params.c | 23 +++++++----- > arch/powerpc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c | 43 ++++++++++------------ > common/ddr_spd.c | 2 +- > include/ddr_spd.h | 28 ++++++++++----- > 4 files changed, 53 insertions(+), 43 deletions(-) > Acked-by: York Sun