From: Marek Vasut Date: Tue, 26 Sep 2017 12:33:06 +0200 Subject: [U-Boot] [PATCH v2 10/19] arm: socfpga: Rename the gen5 sdram driver to more specific name In-Reply-To: <1506414197.27760.23.camel@intel.com> References: <1506328815-23733-1-git-send-email-tien.fong.chee@intel.com> <1506328815-23733-11-git-send-email-tien.fong.chee@intel.com> <800f086c-9879-3d13-d0f3-f478ac98446e@denx.de> <1506414197.27760.23.camel@intel.com> Message-ID: <902a4d12-9c8e-3cb5-0101-e7d7f05bcbb1@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 09/26/2017 10:23 AM, Chee, Tien Fong wrote: > On Isn, 2017-09-25 at 11:15 +0200, Marek Vasut wrote: >> On 09/25/2017 10:40 AM, tien.fong.chee at intel.com wrote: >>> >>> From: Tien Fong Chee >>> >>> Current sdram driver is only applied to gen5 device, hence it is >>> better >>> to rename sdram driver to more specific name which is related to >>> gen5 >>> device. >>> >>> Signed-off-by: Tien Fong Chee >>> --- >>>  arch/arm/mach-socfpga/include/mach/sdram.h         | 434 +------ >>> -------------- >>>  .../include/mach/{sdram.h => sdram_gen5.h}         |   6 +- >>>  drivers/ddr/altera/Makefile                        |   2 +- >>>  drivers/ddr/altera/{sdram.c => sdram_gen5.c}       |   0 >>>  4 files changed, 8 insertions(+), 434 deletions(-) >>>  copy arch/arm/mach-socfpga/include/mach/{sdram.h => sdram_gen5.h} >>> (99%) >>>  rename drivers/ddr/altera/{sdram.c => sdram_gen5.c} (100%) >>> >>> diff --git a/arch/arm/mach-socfpga/include/mach/sdram.h >>> b/arch/arm/mach-socfpga/include/mach/sdram.h >>> index b11228f..4a9754e 100644 >>> --- a/arch/arm/mach-socfpga/include/mach/sdram.h >>> +++ b/arch/arm/mach-socfpga/include/mach/sdram.h >>> @@ -1,5 +1,5 @@ >>>  /* >>> - * Copyright Altera Corporation (C) 2014-2015 >>> + * Copyright (C) 2017 Intel Corporation >> Retain the old copyright ? >> > Okay. >>> >>>   * >>>   * SPDX-License-Identifier: GPL-2.0+ >>>   */ >>> @@ -8,435 +8,9 @@ >>>   >>>  #ifndef __ASSEMBLY__ >> What's with this massive deletion here ? >> > Move to sdram_gen5.h . This header should contain common stuff. Then where did the + part go ? >>> >>> -unsigned long sdram_calculate_size(void); >>> -int sdram_mmr_init_full(unsigned int sdr_phy_reg); >>> -int sdram_calibration_full(void); >>> - >>> -const struct socfpga_sdram_config *socfpga_get_sdram_config(void); >>> - >>> -void socfpga_get_seq_ac_init(const u32 **init, unsigned int >>> *nelem); >>> -void socfpga_get_seq_inst_init(const u32 **init, unsigned int >>> *nelem); >>> -const struct socfpga_sdram_rw_mgr_config >>> *socfpga_get_sdram_rwmgr_config(void); >> [...] -- Best regards, Marek Vasut