Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D478C433EF for ; Sat, 18 Dec 2021 13:44:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2F7858303B; Sat, 18 Dec 2021 14:44:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1639835086; bh=SUHAfBTKHGs53I7UbcrZhGe1Ve81dlhqngEOPwAWphE=; h=Date:Subject:From:To:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=OpNxAMaxlzLbRozy2IH2fIemeVbY2C5RVg2XIBGzj858KeYIZSgR3H+e9mJaJUJlv cquWL2aumgFI0StaEs5lvVIqffxRUpbYx+bASfhs1SnMST0Q25B9F507ZalYb+K1dS +XZoyz52t0PLWvC0nRxa1+HfZGv+q/GDZuLU5GTcBRcJRtjILgDZpSAamOpa6RPjWt +rmw7MwdMoPlr8mXjV1agWJwfQMASf7dOamkeXJUSxuAE09qIiNc2YBznF0H7hbzyP 1e4d6HfJ7sauZU3vtkgEwOSJ6Wt2UKeh1api2JbHVt0WkNSCD4W9lONu0Ee8TWbRH7 157Tt2ap18nyg== Received: by phobos.denx.de (Postfix, from userid 109) id 3F62F830B4; Sat, 18 Dec 2021 14:44:44 +0100 (CET) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 71427830F5 for ; Sat, 18 Dec 2021 14:44:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4JGRsy75VfzQkGd for ; Sat, 18 Dec 2021 14:44:38 +0100 (CET) Message-ID: Date: Sat, 18 Dec 2021 14:44:34 +0100 MIME-Version: 1.0 Subject: Re: [PATCH 7/9] arm: mvebu: axp: Remove unreferenced ddr3_get_eprom_fabric() function Content-Language: en-US From: Stefan Roese To: u-boot@lists.denx.de References: <20211118081939.861407-1-sr@denx.de> <20211118081939.861407-7-sr@denx.de> In-Reply-To: <20211118081939.861407-7-sr@denx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 11/18/21 09:19, Stefan Roese wrote: > This function is not referenced in mainline U-Boot. Let's remove now. > > Signed-off-by: Stefan Roese Applied to u-boot-marvell/next Thanks, Stefan > --- > drivers/ddr/marvell/axp/ddr3_hw_training.h | 1 - > drivers/ddr/marvell/axp/ddr3_init.c | 24 ---------------------- > drivers/ddr/marvell/axp/ddr3_init.h | 1 - > 3 files changed, 26 deletions(-) > > diff --git a/drivers/ddr/marvell/axp/ddr3_hw_training.h b/drivers/ddr/marvell/axp/ddr3_hw_training.h > index 30daaa9831b9..fcdef792c76a 100644 > --- a/drivers/ddr/marvell/axp/ddr3_hw_training.h > +++ b/drivers/ddr/marvell/axp/ddr3_hw_training.h > @@ -373,7 +373,6 @@ int ddr3_load_dqs_patterns(MV_DRAM_INFO *dram_info); > > void ddr3_static_training_init(void); > > -u8 ddr3_get_eprom_fabric(void); > void ddr3_set_performance_params(MV_DRAM_INFO *dram_info); > int ddr3_dram_sram_burst(u32 src, u32 dst, u32 len); > void ddr3_save_training(MV_DRAM_INFO *dram_info); > diff --git a/drivers/ddr/marvell/axp/ddr3_init.c b/drivers/ddr/marvell/axp/ddr3_init.c > index 607f3e12c3ae..c5aa1ac18f51 100644 > --- a/drivers/ddr/marvell/axp/ddr3_init.c > +++ b/drivers/ddr/marvell/axp/ddr3_init.c > @@ -943,30 +943,6 @@ int ddr3_check_config(u32 twsi_addr, MV_CONFIG_TYPE config_type) > return 0; > } > > -#if defined(DB_88F78X60_REV2) > -/* > - * Name: ddr3_get_eprom_fabric - Get Fabric configuration from EPROM > - * Desc: > - * Args: twsi Address > - * Notes: Only Available for ArmadaXP DB Rev2 boards > - * Returns: None. > - */ > -u8 ddr3_get_eprom_fabric(void) > -{ > -#ifdef AUTO_DETECTION_SUPPORT > - u8 data = 0; > - int ret; > - > - ret = i2c_read(NEW_FABRIC_TWSI_ADDR, 1, 1, (u8 *)&data, 1); > - if (!ret) > - return data & 0x1F; > -#endif > - > - return 0; > -} > - > -#endif > - > /* > * Name: ddr3_cl_to_valid_cl - this return register matching CL value > * Desc: > diff --git a/drivers/ddr/marvell/axp/ddr3_init.h b/drivers/ddr/marvell/axp/ddr3_init.h > index 569a14b7184f..9a21886ac3e7 100644 > --- a/drivers/ddr/marvell/axp/ddr3_init.h > +++ b/drivers/ddr/marvell/axp/ddr3_init.h > @@ -98,7 +98,6 @@ int ddr3_hw_training(u32 target_freq, u32 ddr_width, > > void ddr3_print_version(void); > void fix_pll_val(u8 target_fab); > -u8 ddr3_get_eprom_fabric(void); > u32 ddr3_get_fab_opt(void); > u32 ddr3_get_cpu_freq(void); > u32 ddr3_get_vco_freq(void); > Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de